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

Display request

crazyanageek opened this issue · comments

Hello !

First I would like to thank you for this amazing module ! We use it every day with my wife and it is super handy.

I would like to know if it would be possible to display the address set for the current day. To be clearer, I have set a different address for each day of the week and I would like it to appear under "Home to work".

Is it possible/easy to do that ?

Cheers !

Glad you like the module! This shouldn't be too hard to implement, I'll try to take a look at it this week. Thanks for the idea!

That would be amazing ! Thank you so much !

I just committed a new version with two new options: showAddress and showAddressText which will let you customize the way the address is displayed. It will be displayed underneath the route name as you requested. Give it a try and let me know what you think!

The code for specific destinations on specific days was contributed by another user and they didn't support saturdays and sundays. I just pushed another update that adds support for those days. Enjoy! 😃

Of course not! This was a fun project for me just before I finished my undergraduate degree and I'm happy to support it moving forward. Now that I work full time I don't have as much time to contribute but the changes you requested weren't too complex to implement. As long as you enjoy the module that's all the thanks I need! 😁

Sounds great to me!

Hey Jonathan, I just fixed a bug with sun_destination so you'll want to update to make sure it works correctly. I also added in day-specific route names, in case you'd rather use that instead of the address to show which route you're seeing.