Read the statement by Michael Teeuw here.
MMM-MyCommute
-
im Moment i use 2 instances of the traffic module. so my wife can see how how long is my driving time back home …
-
I think that module is really good it lacks one thing it would have that the journey time changes color according to the traffic
-
@Fonfon I agree that would make this Module perfect!
-
@Fonfon @BlackTalon I’ve made an update that adds this capability, plus a whole lot more:
- added the config
showSummary
to toggle a brief route summary. For transit, this gives you the route names (bus, streetcar, subway numbers, etc). - added the config
colorCodeTravelTime
to colour the travel red, yellow or green depending on traffic conditions. Only works formode : 'driving'
. - added two configs
moderateTimeThreshold
andpoorTimeThreshold
to adjust the threshold for red (i.e.: poor) and yellow (i.e.: moderate) traffic. Defaults to1.1
and1.3
respectively for 10% and 30% time delays. - for destinations where
mode : 'transit'
, you can specify an additional configtransitMode
to instruct which transit modes you would like Google to use when calculating your route. Can bebus
,subway
,train
,tram
, orrail
. Multiple choices allowed, separated by the|
character (e.g.:transitMode : 'bus|subway'
). Specifyingrail
is equivalent to specifyingsubway|train|tram
. - added more icons to support the various modes of transit.
It’s still possible to use the old compact mode, by specifying
showSummary : false
. e.g.: - added the config
-
@j.e.f.f This update is fantastic! Thank you very much!
-
Do you need to do anything special with the google api key?
I can’t get this module to show up on my MM. Doesn’t look like it is picking any info up through the API key. -
@joela85 When you say nothing shows up, do you mean the module just doesn’t appear at all? Or you can get the module to show but the travel times never fill in (i.e.: you see the spinning circle forever?)
Can you post your config? Hide your API key of course.
-
The module doesn’t show up at all, looks like it doesn’t load the module. I’ll post config file when I get home tonight or tomorrow. Module doesn’t load even with standard commute config part.
Not sure if it has something to do with my other modules (remote module maybe) -
I saw the updates this morning at the office and updated. Looks great! Thanks for the work.
-
I re-installed the module and it works fine now.