boazarad / MMM-CountDown

Magic Mirror Module to count down to a specific date
MIT License
36 stars 24 forks source link

Calculate best interval #8

Open rossburton opened 5 years ago

rossburton commented 5 years ago

If the user is showing seconds, the refresh interval needs to be every second. If they're showing hours, on the hour. etc etc.

By calculating how long until the next refresh is needed the intervals can adapt smoothly.

tim-digitised commented 5 years ago

Hey @rossburton - you can do this by changing the update interval time, the config property is customInterval

rossburton commented 5 years ago

Sure, but I meant that the plugin can do that itself and produce optimal timers.

If I have a countdown showing hours until a specific date/time then the initial timer could be and then every 3600 seconds.