• 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

Scheduled Pinned Locked Moved Transport
286 Posts 80 Posters 506.5k 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.
  • R Offline
    requiemmg
    last edited by Jul 23, 2020, 9:10 AM

    Okay, played around a bit. Set the module to show times only from 5am to 5pm. And I added a “pollFrequency: 15 * 60 * 1000,” to my config.
    While the first one works (the module disappears at night), the second one does not seem to work:

    c4f385b0-8d27-4890-888c-2e4e423b5ae9-grafik.png

    This is the Traffic from the last 2 days. You can see the requests are paused last night. I made changes to the poll frequency yesterday in the afternoon, no change.

    The module used up nearly all of my €300 starting balance. I wonder if this will go on like this.

    API calls in the last 48 hours:
    82b90aa9-a5a6-4e4f-95ed-6247f4df77b0-grafik.png

    API calls in the last ONE hour:
    d0d5561d-77e9-4093-b959-e32335b19ec5-grafik.png

    Which I do not understand: No errors. Poll Frequency of every 15 Minutes. 2 Mirrors with 4 destinations each. So 4*8=24 API calls/hour would be what I expect to see…

    S 1 Reply Last reply Jul 23, 2020, 1:21 PM Reply Quote 0
    • S Offline
      sdetweil @requiemmg
      last edited by Jul 23, 2020, 1:21 PM

      @requiemmg 352/hour is 5.87 per minute, about once every 12 seconds… once every 24 seconds both of 2 machines.

      1 looked at the code, 1 api request per destination.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • R Offline
        requiemmg
        last edited by Jul 23, 2020, 6:33 PM

        Raised an issue. Seems like the problem comes with the use of MMM-Pages, so on every reload of the page, the module is loaded and the requests are sent again, even if the data is still up to date. @qistoph was so nice to make a fork to address this issue.

        S 1 Reply Last reply Jul 23, 2020, 6:58 PM Reply Quote 0
        • S Offline
          sdetweil @requiemmg
          last edited by Jul 23, 2020, 6:58 PM

          @requiemmg yep, separate instance on every page.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • R Offline
            requiemmg
            last edited by Jul 24, 2020, 8:19 AM

            This makes it clear why I had about 50.000 requests, which made my $400 starting balance void…well, with the new fork and some config modifications, this is much better.

            M 1 Reply Last reply Jul 24, 2020, 6:54 PM Reply Quote 0
            • M Offline
              mumblebaj Module Developer @requiemmg
              last edited by Jul 24, 2020, 6:54 PM

              @requiemmg What I have found is if you run the module in the fixed section of MMM-pages it only does the calls every so often as you set them to i.e. the MMM-Openinghours module I run in fixed as I refresh it every 4hrs.

              Check out my modules at: https://github.com/mumblebaj?tab=repositories

              R 1 Reply Last reply Jul 24, 2020, 7:14 PM Reply Quote 0
              • R Offline
                requiemmg @mumblebaj
                last edited by Jul 24, 2020, 7:14 PM

                @mumblebaj Right, but in my design it doesn’t fit in this section. Anyhow, @qistoph made a test fork (https://github.com/qistoph/MMM-MyCommute/tree/issue17) which only makes requests if the data is outdated (=longer than set pollFrequency). See the issue thread (https://github.com/qistoph/MMM-MyCommute/issues/17) for further details

                1 Reply Last reply Reply Quote 0
                • L Offline
                  lavolp3 Module Developer
                  last edited by Sep 4, 2020, 7:47 AM

                  It seems @qistoph 's fork is more up to date than the original repo.

                  I just pushed a PR to the original repo AND to the @qistoph fork.
                  It provides an origin option to every destination so you can show commuting back home.
                  Just set any point as ‘origin’ and your home address as ‘destination’

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

                  L 1 Reply Last reply Sep 4, 2020, 8:18 AM Reply Quote 0
                  • L Offline
                    lavolp3 Module Developer @lavolp3
                    last edited by Sep 4, 2020, 8:18 AM

                    @lavolp3 nevermind, it is already integrated in @qistoph fork it seems :-)
                    Just not documented in the readme.

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

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      matt216
                      last edited by Jul 1, 2021, 12:46 PM

                      Hi all.
                      Wondering if there’s a way to hide the arrival time? Can’t see an option in the config.
                      Thanks

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 25
                      • 26
                      • 27
                      • 28
                      • 29
                      • 27 / 29
                      • 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