Read the statement by Michael Teeuw here.
MMM-GoogleMapsTraffic freezes Magic Mirror
-
I have te same probleem with the error MMM-GoogleMapsTraffic.js:77 Uncaught TypeError: Cannot read property ‘length’ of undefined.
Do some one now what that means
-
I have the same issue. When I boot up the Magic Mirror in debug mode npm start dev & but the Chrome console tab tells me this nasty thing:
"You have included the Google Maps JavaScript API multiple times on this page." "This may cause unexpected errors."
However, everything looks perfectly nice on my MagicMirror.
All modules are successfully loaded, including “MMM-GoogleMapsTraffic”.But on the next day, the latest my screen is entirely black.
It’s exactly the same thing as reported in this thread. -
@drfukc it appears the api had trouble, and the module did not handle the error
-
@sdetweil
yes, that’s the case, the module is running fine until it turns the monitor black (after several hours).
There are more people in different threads having the same issue.
The module author does not seem to respond.
My workaround is a regular cron job restarting the MagicMirror. -
@drfukc I am away til later today. I will look at it. One of my modules gets photos from google
-
Yep same I use cron job but would rather not have too, also this might be where all my ram goes as well, great if someone can look at this module
-
anybody want to try my updates
- load script once, once dom created
- improve process , handle lost config error
https://github.com/sdetweil/MMM-GoogleMapsTraffic
rename your existing folder out of the way
then, from MM/modules folder, git clone my repo, and restart MM
no changes to module config -
@sdetweil I’m getting this when I try to do my that
pi@raspberrypi:~/MagicMirror/modules $ git pull https://github.com/sdetweil/MMM-GoogleMapsTraffic warning: no common commits remote: Enumerating objects: 3, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. remote: Total 123 (delta 0), reused 1 (delta 0), pack-reused 120 Receiving objects: 100% (123/123), 231.52 KiB | 0 bytes/s, done. Resolving deltas: 100% (53/53), done. From https://github.com/sdetweil/MMM-GoogleMapsTraffic * branch HEAD -> FETCH_HEAD fatal: refusing to merge unrelated histories
-
@dazza120 said in MMM-GoogleMapsTraffic freezes Magic Mirror:
no… cannot do that… cannot merge mine with the original
what i said in my prior mostrename your existing folder out of the way then, from MM/modules folder, git clone my repo, and restart MM
u must git clone my repo … so you had to rename the old folder out of the way
from MagicMirror/modules
mv MMM-GoogleMapsTraffic MMM-GoogleMapsTraffic.original
then
git clone https://github.com/sdetweil/MMM-GoogleMapsTraffic.git
-
@sdetweil done mate testing it now