what I mean is I want the script to be run form 23:00:00 pm to 05:00:00 am with 00:15:00 interval after that I don't want it to be run utile 23:00:00 pm the next day. can I do it withBe more clear, also on topic title: "script scheduler", what?
Set it to 3am do not suffice?
/system scheduler
False, and overcomplicate,The only thing random in ROS is OTP in Certificates.
Why you do not provide this details at start?what I mean is I want the script to be run form 23:00:00 pm to 05:00:00 am with 00:15:00 interval after that I don't want it to be run utile 23:00:00 pm the next day.
Thank you so much for your fast replies, would you please check if this script is correct because I don't have much experience in writing scripts:Why you do not provide this details at start?what I mean is I want the script to be run form 23:00:00 pm to 05:00:00 am with 00:15:00 interval after that I don't want it to be run utile 23:00:00 pm the next day.
Schedule a scheduler al 23:00 than schedule the activation of the other scheduler, scheduled every 15 min,
and schedule another scheduler at 05:00 to disable the scheduled scheduler every 15 min.
Or more simply check at the start, inside the scheduled script, if the time are between 23:00 and 05:00
global tm 23:00:00;;
global nt [system clock get time];
if ($nt >= 23:00:00 || $nt <= 05:00:00) do={system scheduler enable [find where name=night];system scheduler disable [find where name=sharing] } else={system scheduler disable [find where name=night];system scheduler enable [find where name=sharing]}
/system scheduler
disable sharing
enable night
/system scheduler
disable night
enable sharing