arevindh / pihole-speedtest

Pihole Speedtest Mod
https://arevindh.github.io/pihole-speedtest/
MIT License
219 stars 22 forks source link

[Info] Crontab expression in Testing interval #168

Open corasaniti opened 8 months ago

corasaniti commented 8 months ago

Can I enter a crontab expression in the Testing interval field? For example I would like to run my speedtest every 2 hours at minute 10 10 */2 * * *

With the latest versions the scheduling has been changed at minute 30. This isn't good for me because I have another JOB running and I would like to be able to change the scheduling

Thanks in advance

ipitio commented 8 months ago

Currently in docker, the testing interval starts when the last scheduled test was run. This means you can disable the schedule (by setting it to 0), wait until at least 2 hours have elapsed since the last scheduled run, wait until the next 10 minutes past an hour, then set the schedule to 2. The tests will now run every 2 hours at 10 minutes past the hour.

Being able to directly specify the expression is an interesting idea!