Read the statement by Michael Teeuw here.
MMM-CountEvents - ignoreBefore/ignoreAfter
-
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!
