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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login