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-CountEvents - ignoreBefore/ignoreAfter

    Scheduled Pinned Locked Moved Utilities
    3 Posts 2 Posters 232 Views 2 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.
    • B Offline
      benhmin
      last edited by

      Re: MMM-CountEvents (2.0.0 - Revamped)

      I have been working on integrating this module in order to show a daily countdown for when my kids need to leave the house. It should show the module only between 730am to 8am on weekdays, with 745 being the targetTime.

      I initially was trying to set up a function to dynamically change the targetTime to support weekdays only, but I couldn’t get it to update the value for the module except when it was loaded. I seemed to be able to get around that by scheduling a browser refresh every morning using MMM-ModuleScheduler along with MMM-Remote-Control.

      The challenge I am having is that the module doesn’t seem to be clearly responding dynamically to the ignoreBefore and ignoreAfter config parameters. I have them set to “15601000”. When 730 rolls around nothing happens. Then I refreshed after a couple minutes and the count events module showed up. Around 16 minutes after 8am the event was still showing, but when I refreshed the browser it went away.

      • I have the refresh time set to 1000 and show showSeconds is true.

      Is this expected behavior? I had anticipated that the event would appear at 730 and disappear at 8 automatically without having to refresh. Am I configuring it wrong somehow (probably). Thank you!

      B 1 Reply Last reply Reply Quote 0
      • B Offline
        benhmin @benhmin
        last edited by

        Sorry, markdown thought I meant to italicize rather than use asterisks. The ignoreBefore and ignoreAfter values are “15 * 16 * 1000” (15 minutes).

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

          @benhmin no, that is different

          15 minutes is 15 x 60 x 1000
          1000 ms/second
          60 seconds/minute

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          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 / 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