Read the statement by Michael Teeuw here.
MMM-GoogleMapsTraffic : black screen by copying the code in config.js
-
They included too much in their config sample. If you have a backup of your old config, back out and redo it, with this sample instead.
{ module: 'MMM-GoogleMapsTraffic', position: 'top_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' }, ], }, },
-
it’s the same problem… :
... title: "Le Monde, Culture", url: "https://www.lemonde.fr/culture/rss_full.xml" }, ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: true, broadcastNewsUpdates: true, } }, { module: 'MMM-GoogleMapsTraffic', position: 'top_left', config: { key: 'AIzaSyBQnp-WYA1IdK9sZr0lfvrtUcQ5Qu02sNw', lat: 49.182863, lng: -0.370679, height: '300px', width: '300px' styledMapType: "transparent", disableDefaultUI: true, backgroundColor: 'hsla(0, 0%, 0%, 0)', markers: [ { lat: 49.182863, lng: -0.370679, fillColor: '#9966ff' }, ], }, }, /* { module: 'MMM-GoogleMapsTraffic', position: 'top_left', ...
-
@RIKKO14 said in MMM-GoogleMapsTraffic : black screen by copying the code in config.js:
width: ‘300px’
I think you missed a comma at the end of that line.
-
modified, but still the same problem …
broadcastNewsFeeds: true, broadcastNewsUpdates: true, } }, { module: 'MMM-GoogleMapsTraffic', position: 'top_left', config: { key: 'AIzaSyBQnp-WYA1IdK9sZr0lfvrtUcQ5Qu02sNw', lat: 49.182863, lng: -0.370679, height: '300px', width: '300px', styledMapType: "transparent", disableDefaultUI: true, backgroundColor: 'hsla(0, 0%, 0%, 0)', markers: [ { lat: 49.182863, lng: -0.370679, fillColor: '#9966ff' }, ] }, /*{ module: 'MMM-GoogleMapsTraffic', position: 'top_left',
![0_1593336531621_2020-06-28-112809_1920x1080_scrot.png](Uploading 100%)
-
@RIKKO14 https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners?_=1593192855121
take out the addtional stuff u added and read the above post and try again -
@RIKKO14 also, the GoogleMapsTraffic module has a bug, which I fixed, but th e author has not taken,
you can use my repo instead of the original
https://github.com/sdetweil/MMM-GoogleMapsTraffic -
II have read the post : https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners?_=1593192855121
I don’t anderstand what you say : "take out the addtional stuff u added ", I added nothing…
And I d’ont anderstand what is your “repo instead”,and this my config.js, I had already installed modules where I had encountered the problem of} and not}, but there everything seems good, I do not see the error … :
-
-
@RIKKO14 the last thing you said was
modified, but still the same problem …
"take out the addtional stuff u added ", I added nothing…
you added a new module definition (that is additional stuff)
repo, the site on github is a repository, repo for short
the original u are trying to use is
https://github.com/vicmora/MMM-GoogleMapsTrafficmine is
https://github.com/sdetweil/MMM-GoogleMapsTrafficnote that the userids are different.
so, instead of git cloning vic’s repo, do that with mine (instead)
-
This post is deleted!