MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    MMM-MyCommute

    Transport
    80
    286
    154453
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      j.e.f.f Project Sponsor Module Developer last edited by j.e.f.f

      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!

      1 Reply Last reply Reply Quote 1
      • joela85
        joela85 last edited by

        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?

        J 1 Reply Last reply Reply Quote 0
        • J
          j.e.f.f Project Sponsor Module Developer @joela85 last edited by j.e.f.f

          @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.

          1 Reply Last reply Reply Quote 0
          • joela85
            joela85 last edited by

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

            J 1 Reply Last reply Reply Quote 0
            • J
              j.e.f.f Project Sponsor Module Developer @joela85 last edited by j.e.f.f

              @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

              Sandy2503 1 Reply Last reply Reply Quote 2
              • joela85
                joela85 last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • Sandy2503
                  Sandy2503 @j.e.f.f last edited by

                  @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

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    j.e.f.f Project Sponsor Module Developer @Sandy2503 last edited by j.e.f.f

                    @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
                      }
                    },
                    
                    
                    Sandy2503 1 Reply Last reply Reply Quote 0
                    • Sandy2503
                      Sandy2503 @j.e.f.f last edited by

                      @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 …

                      1 Reply Last reply Reply Quote 0
                      • F
                        Fonfon last edited by Fonfon

                        I think that module is really good it lacks one thing it would have that the journey time changes color according to the traffic

                        B J 2 Replies Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 28
                        • 29
                        • 1 / 29
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy