• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.0k 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.
  • O Offline
    ooom416354 @sdetweil
    last edited by Nov 26, 2019, 5:07 AM

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

    L 1 Reply Last reply Nov 26, 2019, 8:13 AM Reply Quote 0
    • L Offline
      lavolp3 Module Developer @ooom416354
      last edited by Nov 26, 2019, 8:13 AM

      @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

      O 1 Reply Last reply Nov 27, 2019, 5:21 AM Reply Quote 1
      • O Offline
        ooom416354 @lavolp3
        last edited by Nov 27, 2019, 5:21 AM

        @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 Dec 1, 2019, 4:39 PM

          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 Dec 2, 2019, 7:54 AM Reply Quote 0
          • H Offline
            hermlam @j.e.f.f
            last edited by Dec 2, 2019, 7:54 AM

            @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 Dec 8, 2019, 9:34 PM Reply Quote 0
            • J Offline
              j.e.f.f Project Sponsor Module Developer @hermlam
              last edited by Dec 8, 2019, 9:34 PM

              @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 Jan 22, 2020, 2:36 AM

                @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