In version 04 I had the problem of a divide by zero error if RefreshHour equals 0.
This is caused by the statement:
I changed this as follows:
This will still do a refresh every four hours at a random hour.
I also made some changes to display large minute values in days and hours as appropriate. I can post this if there is interest.
This is caused by the statement:
Inserted Code
if (FirstRun || (Minute() == RefreshMin && (Hour() % RefreshHour == 0)))
I changed this as follows:
Inserted Code
if (FirstRun || (Minute() == RefreshMin && ((Hour() + RefreshHour) % 4 == 0)))
This will still do a refresh every four hours at a random hour.
I also made some changes to display large minute values in days and hours as appropriate. I can post this if there is interest.