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
    1 Posts 1 Posters 41 Views 1 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!

      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