Read the statement by Michael Teeuw here.
MMM-Traffic 2.0
-
@robertybob if you check out this example in the README, you can actually do exactly that! Just add 2 MMM-Traffic modules and set the hours accordingly for each route.
-
@SamLewis0602 : I have the module 2 times (00:00-24:00) with 2 different destinations. The module shows me the same duration to arrive the destination. Is there a workaround?
-
@ostfilinchen Do you expect them to be the same duration? If you are just wondering how to tell the difference between the two, look at the
firstLine
andsecondLine
options in theREADME.md
and you can customize what you see in the module. Check out the examples in the README as well -
Hello Sam
I’m pretty new to MagicMirror configuration. I tried installing the MM-Traffic 2.0 module.I believe I have followed the steps but all I get is “Loading…” on my display.
I think the problem lies in the API key which i created at MapBox. I don’t really know if I created it correctly on the Mapbox website as there was no information to go by.
I created a project and created a key for it. is there any special steps, linkings, or guidance on the creation of the Mapbox API key?
I literally copied your basic module code into the config.js script and pasted my key to see if it works, but it doesn’t.
just an FYI I tried with both ’ and "
{
module: ‘MMM-Traffic’,
position: ‘top_left’,
config: {
accessToken: ‘sk.eyXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.X_XXXXXXXXXXXXXXXXXXXX’,
originCoords: ‘-84.398848,33.755165’,
destinationCoords: ‘-84.504259,33.88210’,
}
},Any advise would be appreciated.
-
Hi Modie
Did you get this module working?
If so, what did you do to fix it as I’m also having issues with it saying “Loading…”Thanks
-
Same here, I don’t even see any loading text, mirror seems to just ignore this module. I think I set it up correctly, any idea?
-
Hi Modie,
Check you have the dependencies set up correctly. I think that’s what was causing my issues. I reinstalled node-fetch and it started working.
Guilleam, if its not showing anything on the screen i’d check your install and your config files
-
Same for me and the reason seems to be this:
Will not show MMM-Traffic. LockStrings active: module_3_MMM-pages
I have MMM-pages activated btw.
-
@jimus888 Thanks for your reply, but it was just my mistake. I had it configured to show travel duration on weekdays, and I was trying to check if it worked on Saturday :man_facepalming_light_skin_tone: .
On the other hand, @sammay I suggest some color coded text feature? Like duration time turns red if it’s higher than usual, or green if it’s lower, something like that
-
@Guilleam95 You could check out MMM-MyCommute that uses the google api. It has this exact feature.