Read the statement by Michael Teeuw here.
MMM-GoogleMapsTraffic
-
@aurelsam asked for markers. I built this in a very generic way. Will create a pull request soon.
-
Hi,
I added a pull request to the original module which adds markers and an option for transparent maps.
Have fun.
Regards
Ralf -
This post is deleted! -
Hi,
when I don’t activate this module, all my other modules work and display’s, when I activate this module, some modules are no longer displayed, such as: MMM-TPlink, MMM-CalendarExt, MMM-FreefoxMonitor.
Anyone have an idea why?
Thanks for help.
-
Every time i add this module and try to start the MM it tells me i have a syntax error and wont start any modules on my mirror.
-
Read this for learning purposes:
If you post the config:check output and your MMM-GoogleMapsTraffic part inside config.js, I am sure someone can help you.
Good luck.
-
@evroom thank you i will give this a shot when i get home and post my results
-
@evroom ```here is my code
{ module: "calendar", header: "US Holidays", position: "top_left", config: { calendars: [ { symbol: "calendar-check-o ", url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics" } ] } }, { module: "compliments", position: "lower_third" }, var config = { modules: [ { module: 'MMM-GoogleMapsTraffic', position: 'bottom_left', config: { key: 'YOUR_KEY', lat: 37.8262306, lng: -122.2920096, height: '300px', width: '300px' styledMapType: "transparent", disableDefaultUI: true, backgroundColor: 'hsla(0, 0%, 0%, 0)', markers: [ { lat: 37.8262316, lng: -122.2920196, fillColor: '#9966ff' }, ], }, } ]
}
-
Yes, the README tricked you a bit.
Remove this:
var config = { modules: [
and the last 2 lines:
} ]
Verify with:
cd ~/MagicMirror; npm run config:check
-
did what you said and did the config check and this is what i got
Line 134 col 5 Unexpected ‘]’.
Line 134 col 5 Expected an identifier and instead saw ‘]’.
Line 134 col 6 Missing semicolon.
Line 134 col 5 Unrecoverable syntax error. (95% scanned).
pi@raspberrypi:~/MagicMirror $