A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
MMM-Traffic config error
-
@bocapie
Hi, that’s a part of my config.js with the trafic module for you as an example.{ "module": "MMM-Traffic", "position": "top_left", "header": "YourHeaderName", "classes": "bright small", "config": { "api_key": "xxxxxxxxxYourApiKeyxxxxxxxxxx", "mode": "driving", "language": "de", "show_summary": "true", "origin": "YourStartLocation", "destination": "YourDestinationLocation", "arrival_time": "0700", "route_name": "YourRouteName", "changeColor": true, "showGreen": false, "limitYellow": 5, "limitRed": 20, "traffic_model": "pessimistic", "interval": 120000 } },
-
Thank you for that I figured out where I messed up. It loads now but, just says loading commute… now.
-
Quick question on apikey and origin,destination. Do I need to put them in both the config.js and module MMM-Traffic.js file?
-
@bocapie no only in the config file.
Everything you put in the config file will overwrite the values in the module
-
@strawberry-3.141 okay, I ran a npm start dev and get a error
Error: ENOENT, open "/home/pi/MagicMirror/node_modules/dev/package.json -
@bocapie you are in the wrong directory do
cd ~/MagicMirror
first -
@strawberry-3.141 Yes I am in that directory.
-
I think i figured it out. Debug says my node is out of date.