Read the statement by Michael Teeuw here.
config setup
-
In the weather sections there is " on each end of the comment, but when I added the traffic modules there is ’ on each end, Now I get a syntax error message when I try to start magicmirror. Should the traffic modules be changed to " on each end? I copied everything from the modules page.
},
{
module: “currentweather”,
position: “top_right”,
config: {
location: “Lompoc, US”,
locationID: “”, //ID from http://www.openweathermap.org/help/city_list.txt
appid: “6ed9d867d3ba972c013edecdef1e685a”
}
},
{
module: “weatherforecast”,
position: “top_right”,
header: “Weather Forecast”,
config: {
location: “Lompoc, US”,
locationID: “”, //ID from http://www.openweathermap.org/help/city_list.txt
appid: “6ed9d867d3ba972c013edecdef1e685a”
}
},
{
module: ‘MMM-GoogleMapsTraffic’,
position: ‘top_left’,
config: {
key: ‘AIzaSyBO???4Z_gDUSKUEfLKep0E’,
lat: 3?.??436614,
lng: -1??.???13961,
height: ‘300px’,
width: ‘300px’
}
}
]
},
{
module: ‘MMM-Traffic’,
position: ‘middle_center’,
classes: ‘bright medium’, //optional, default is ‘bright medium’, only applies to commute info not route_name
config: {
api_key: ‘AIzaSyD-WlWr2VySiCj6OnZnVPCAMw5r1qdTBvM’,
mode: ‘driving’,
origin: ‘???’,
destination: ‘???’,
mon_destination: ‘???’,
fri_destination: ‘???’,
arrival_time: ‘0800’, //optional, but needs to be in 24 hour time if used.
route_name: ‘Home to Work’,
changeColor: true,
showGreen: false,
limitYellow: 5, //Greater than 5% of journey time due to traffic
limitRed: 20, //Greater than 20% of journey time due to traffic
traffic_model: ‘pessimistic’,
interval: 120000, //2 minutes
showWeekend: false,
allTime: false
}
}, -
OK i retried it with all the ’ replaced with ", still nothing. When i restart it after saving the config, it startes with a disk chk, then continues. When I replaced with the ", it restarts, but when I try to run node serveronly, it says syntax error.