Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

simple.js 310B

123456789101112131415161718192021
  1. 'use strict'
  2. let rawData = require('./data.json')
  3. const simple = []
  4. for (let s of rawData) {
  5. simple.push({
  6. type: 'station',
  7. id: s[0],
  8. name: s[1],
  9. location: {
  10. type: 'location',
  11. latitude: s[3],
  12. longitude: s[4]
  13. },
  14. weight: s[2]
  15. })
  16. }
  17. rawData = null // allow for gc
  18. module.exports = simple