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!
-
Sorry, markdown thought I meant to italicize rather than use asterisks. The ignoreBefore and ignoreAfter values are “15 * 16 * 1000” (15 minutes).
-
@benhmin no, that is different
15 minutes is 15 x 60 x 1000
1000 ms/second
60 seconds/minute
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