MMM-MyCommute


  • Module Developer

    This is a fork of the great little module mrx-work-traffic created by Dominic Marx. It adds a few extra features, like the ability to specify transport mode for each of your destinations, and the ability to color the transport icons.

    0_1495594933233_MMM-MyCommute.png

    Enjoy!



  • I like this idea. I have 2 different routes to work. Would be good know which way would be best at that time.
    Can you modify the config to either use motorways or avoid motorways? or another way you can specify the actual route to work?


  • Module Developer

    @joela85 yeah that sounds like a good addition. Let me see if that’s available through Google’s API.

    Edit: looks like it’s doable. I’ll see if I can add this today or tomorrow.



  • Ah Cool,
    Ye, that would be great. Nice addition.


  • Module Developer

    @joela85 OK I just published v1.1 with the ability to specify an optional avoid configuration for each destination that can be one of the following options:

    • tolls
    • highways
    • ferries
    • indoor

    Config looks like this:

    destinations: [
        {
            destination: '37 Holland Dr Bolton, ON L7E 5S4',
            label: 'Bolton',
            color: '#ff77d4'
        },
        {
            destination: '37 Holland Dr Bolton, ON L7E 5S4',
            label: 'Bolton (avoid tolls)',
            color: '#ff77d4',
            avoid: 'tolls'
        },
        {
            destination: '37 Holland Dr Bolton, ON L7E 5S4',
            label: 'Bolton (avoid highways)',
            color: '#ff77d4',
            avoid: 'highways
        }
    ]
    

    Here’s my result:

    0_1494976473768_Screen Shot 2017-05-16 at 6.58.43 PM.png



  • That’s ideal. Thanks for the quick turn around. I’ll look at adding that when I get time in the next couple of days.
    Thanks.



  • @j.e.f.f

    is it possible to set a second home adress ?

    I`d like to set my way to work
    and as second the way from work back to home.

    Sandy2503


  • Module Developer

    @Sandy2503 Well the traffic gives you an up to the minute estimate based on current traffic conditions. So the estimate will likely have changed when you’re ready to come home from work. I’m assuming you don’t have your mirror with you at work :)

    That said, there is a Google API that allows exactly this… it’s called their matrix API and it gives you time estimates for multiple origin points to multiple destinations.

    Another idea is you could set up two instances of this module. One set up for your drive to work, and a second setup up for your drive home. That works nicely because each can have their own module header and schedule.

    EDIT I tried this, and it works nicely. Here’s my output:
    0_1495037746268_upload-fcfe1fd9-d0b0-4a30-b320-5d8fac86ca59

    My config looks like this:

    {
      module: 'MMM-MyCommute',
      position: 'top_left',
      config: {
        ... configure for your drive to work
      }
    },
    {
      module: 'MMM-MyCommute',
      position: 'top_left',
      config: {
        ... configure for your drive home
      }
    },
    
    


  • @j.e.f.f

    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


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.