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 - API Calls and Quota

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    9 Posts 6 Posters 2.3k Views 6 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.
    • ooom416354O Offline
      ooom416354 @sdetweil
      last edited by

      @sdetweil that is great, thank you. by chance just for my learning, where is it in the code? thanks again !

      lavolp3L 1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @ooom416354
        last edited by

        @ooom416354 Look into line 173 of the MMM-MyCommute.js

          getData: function() {
        
            //only poll if in window
            if ( this.isInWindow( this.config.startTime, this.config.endTime, this.config.hideDays ) ) {
              //build URLs
        

        Above that you can find the isInWindow()-function that checks if current time is between start and end time.

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        ooom416354O 1 Reply Last reply Reply Quote 1
        • ooom416354O Offline
          ooom416354 @lavolp3
          last edited by

          @lavolp3 Thanks so much for the details!

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

            I’m the author of this plugin and I can confirm that the module will not poll for data outside the window you set. I designed it this way specifically to deal with Google’s quota.

            H 1 Reply Last reply Reply Quote 0
            • H Offline
              hermlam @j.e.f.f
              last edited by

              @j-e-f-f
              Hi, that want I am trying, to reduce the API calls. but I have problem with it.
              My mirror stop showing MMM-Commute in the evening but doesn’t start in the morning… See my config.js:

              Thanks,
              Herman
              module: ‘MMM-MyCommute’,
              position: ‘top_left’,
              header: ‘Verkeer’,
              classes: ‘default everyone’,
              config: {
              apikey: ‘xxx’,
              origin: ‘87 Verisstraat, Hoofddorp, 2132 PC’,
              startTime: ‘05:45’,
              endTime: ‘23:00’,
              // showSummary: true,
              // hideDays: [0,6],
              destinations: [
              {
              destination: ‘116 La Guardiaweg, Amsterdam, 1043 DL’,
              label: ‘UWV’,

              J T 2 Replies Last reply Reply Quote 0
              • J Offline
                j.e.f.f Project Sponsor Module Developer @hermlam
                last edited by

                @hermlam I haven’t looked at this code for a long time and it’s quite possible this module no longer works properly. I believe there are newer forks you can try that are currently under active development.

                Try here:
                https://github.com/jclarke0000/MMM-MyCommute/network/members

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

                  @hermlam I am having this same issue, at least since the most recent MM update. Have you found a solution yet?

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • 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