MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-MyCommute

    Scheduled Pinned Locked Moved Transport
    286 Posts 80 Posters 655.0k Views 77 Watching
    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.
    • T Offline
      thoeng
      last edited by thoeng

      This is great and very practical module! Everything is working on me but i would like to remain below USD200 (40K calls)/mo API call request. This means staying below 1.3K calls/day

      However, after installed I can see 570+ request call in 2 hours on Google API dashboard. This is despite setting pollFrequency: 1200000 (20mins interval) on MM config.

      Any help please?

      I 1 Reply Last reply Reply Quote 1
      • C Offline
        charp07
        last edited by charp07

        MM is only loading the “loading…” text for this module. All my other modules are showing right. I am getting request on the Google API Console under the Directions API. So I believe that I must have the module installed correctly. Does anyone know why this would be happening?

        1 Reply Last reply Reply Quote 0
        • C Offline
          charp07
          last edited by

          	{
          		module: 'MMM-MyCommute',
          		position: 'bottom_right',
          		config: {
          			apikey: 'my api key from google',
          			origin: '65 Front St W, Toronto, ON M5J 1E6',
          			startTime: '00:00',
          			endTime: '23:59',
          			hideDays: [0,6],
          			destinations: [
            {
          				destination: '14 Duncan St Toronto, ON M5H 3G8',
          				label: 'Air Canada Centre',
          				mode: 'walking',
          				color: '#82E5AA'
            },
            ]
            }
          

          },

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil
            last edited by

            in the MagicMirror folder do

            npm check:config
            

            fix 1st error, repeat
            I think it is the comma after the only destination

            				color: '#82E5AA'
              },   //< ---
            

            loading …

            is the default message many modules put up while getting their data
            but it failed to get the data

            so, this means there was an internal error in the module code
            open the developers window
            (either npm start dev, or use ctrl-shift-i when mirror is running)
            select the console tab, and scroll up to locate any errors, usually red text

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            C 3 Replies Last reply Reply Quote 1
            • C Offline
              charp07 @sdetweil
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • C Offline
                charp07 @sdetweil
                last edited by

                @sdetweil okay, I’m new but the check:config command is not valid. So tried npm config and it brought up 10 errors.

                Usage:
                Npm config set
                Npm config get …
                Etc
                Etc…

                What does this mean?

                S 1 Reply Last reply Reply Quote 0
                • C Offline
                  charp07 @sdetweil
                  last edited by

                  @sdetweil also added comma to that location with no success. Then moved to behind bracket and nothing there either.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @charp07
                    last edited by

                    @charp07 sorry, I get that command backwards

                    npm config:check
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • I Offline
                      interman @thoeng
                      last edited by

                      @thoeng I ran into the same problem. there a few things you can do.

                      1. Set the time that the module comes on and goes off. For example, I set my mine from 5:00 am to 8:00 am.
                        startTime and endTime
                      2. Hide the module on weekends. Mine does not come up on the weekends. hideDays
                      3. Change how many times it goes to google with a request. pollFrequency
                      4. add a cheap motion sensor to turn the display on and off (getting one now).

                      Hope that helps.

                      Dn

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        charp07
                        last edited by

                        I swapped to a newer branch of “MMM-MyCommute”. After install, it booted up on the first try. Happy that it is now working. Thanks to all the authors of this module.

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          JRB1988
                          last edited by

                          Will this module still be updating in the background during the hidden times? With the Google API, I wouldn’t want it updating when I am not needing it. Thanks!

                          T 1 Reply Last reply Reply Quote 0
                          • T Offline
                            trawson
                            last edited by

                            Is anyone else having issues with the MyCommute module hiding itself but then not re-appearing.
                            I have EndTime setup for 8pm and also HideDays on certain days, however, once it hides, it stays hidden. Until I force it to show using the Remote module.
                            Otherwise, this Module works great, showing all the traffic times as it should.

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              trawson @JRB1988
                              last edited by

                              @JRB1988 From my experiences, I don’t believe it does.

                              1 Reply Last reply Reply Quote 1
                              • S Offline
                                smoysauce
                                last edited by smoysauce

                                Hi I have gotten this module setup and working with destinations (see below), but am trying to get it to show times based on locations of calendar events setup like at the end of the help page but it doesn’t seem to want to show. Am I missing something? My calendar shows my events and locations but not sure if MyCommute is pulling it. I even used the example code from the module Git page and it still didn’t pull anything. Does this not work anymore? Any insight would be much appreciated!

                                {
                                        module: 'MMM-MyCommute',
                                        position: 'bottom_left',
                                        header: 'Traffic',
                                        config: {
                                                apikey: 'XXX',
                                                origin: 'XXX',
                                                startTime: '06:00',
                                                endTime: '20:00',
                                                destinations: [
                                                {
                                                        destination: 'XXX',
                                                        label: 'XXX',
                                                        hideDays: [0,6],
                                                        mode: 'driving',
                                                        alternatives: true,
                                                        showSummary: true,
                                                        color: '#82E5AA'
                                                },
                                                {
                                                        destination: 'XXX',
                                                        label: 'XXX',
                                                        mode: 'driving',
                                                        alternatives: false,
                                                        showSummary: false,
                                                        color: 'lightblue'
                                                }
                                                ],
                                                maxCalendarEvents: 2,
                                                calendarOptions: [
                                                        {
                                                        mode: 'driving'
                                                        }
                                                ]
                                }
                                },
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • W Offline
                                  wagon40
                                  last edited by

                                  everything else is working time, personnel calendar and weather. my commute shows error in red on the side. does show that it is continuing to update. any suggestion?

                                  {
                                  			module: "MMM-MyCommute",
                                  			position: "bottom_bar",
                                  			config: {
                                      				apikey: 'google api key',
                                      				origin: ' Rd, city, state zip',
                                      				startTime: '00:00',
                                      				endTime: '23:59',
                                      				destinations: [
                                        					{
                                         				 	destination: ' Ave, city, state zip',
                                         				 	label: ' Work1',
                                         				 	mode: 'driving',
                                          				color: '#82E5AA'
                                        					},
                                  					{
                                         				 	destination: ' Ave, city, state zip',
                                         				 	label: ' Work2',
                                         				 	mode: 'driving',
                                          				color: '#82E5AA'
                                        					},
                                  				]
                                  			}
                                  		},
                                  
                                  W 1 Reply Last reply Reply Quote 0
                                  • W Offline
                                    wagon40 @wagon40
                                    last edited by

                                    @wagon40
                                    I checked the apikey and Google is showing a count of apikey request. So that leads me to believe that it is a MM issue or module issue. Any help would be be great.

                                    E 1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      Egnos @wagon40
                                      last edited by Egnos

                                      @wagon40 said in MMM-MyCommute:

                                      @wagon40
                                      I checked the apikey and Google is showing a count of apikey request. So that leads me to believe that it is a MM issue or module issue. Any help would be be great.

                                      Hello to all,
                                      I have the same problem as @wagon40 , can you help us?

                                      The log of the MM shows:

                                      [13:48:15.263] [LOG]    MMM-MyCommute: This API project is not authorized to use this API.
                                      [13:48:15.268] [LOG]    MMM-MyCommute: This API project is not authorized to use this API.
                                      
                                      

                                      I use the same Google API that uses “MMM-GoogleMapsTraffic” … could it be the cause of the problem?

                                      Thanks a lot!

                                      My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                                      1 Reply Last reply Reply Quote 0
                                      • E Offline
                                        Egnos
                                        last edited by Egnos

                                        Is anybody there? 🤔

                                        My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          sdetweil @Egnos
                                          last edited by

                                          @Egnos

                                          This API project is not authorized to use this API.

                                          seems pretty clear… the api Project you selected, doesn’t authorize use of the API…

                                          open the google developers console, find the api project and check for the api… maybe Javascript

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          E 1 Reply Last reply Reply Quote 0
                                          • E Offline
                                            Egnos @sdetweil
                                            last edited by Egnos

                                            @sdetweil said in MMM-MyCommute:

                                            @Egnos

                                            This API project is not authorized to use this API.

                                            seems pretty clear… the api Project you selected, doesn’t authorize use of the API…

                                            open the google developers console, find the api project and check for the api… maybe Javascript

                                            Dear @sdetweil.
                                            Thee same behavior also has it @wagon40, I thought it was something about the module…but if you’re sure it’s just an API problem … I’ll do a check!

                                            Thanks.

                                            My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 14 / 15
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy