saml-dev / MMM-Traffic

This a module for the MagicMirror. It displays travel time between two locations, using the Mapbox directions API to factor in current traffic conditions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: commuting option bases on day time

lavolp3 opened this issue · comments

commented

(As discussed on the forum):
MMM-MyCommute already works with config options for time frames (startTime and endTime) for every destination.
That way you can have the module calculate your commuting time (and way) depending of the time of day. In the morning to work/school) in the afternoon back home.
Should be easily implementable also here by making checks with moment which time frame you are in.

This can be done already, by just adding two MMM-Traffic modules to your config and using the hoursStart and hoursEnd as seen in the documentation here:

https://github.com/SamLewis0602/MMM-Traffic#per-daytime-customization

Let me know if there's something you can't accomplish with these options.