09.02.2021, 07:26
Scheduled script that runs once a minute should be enough for this task.
If you want to find a certain event time, you can only do this via database query.
Change scheduler ID as needed. This example assumes that scheduler has only one event with 0/false value.
If you want to find a certain event time, you can only do this via database query.
Change scheduler ID as needed. This example assumes that scheduler has only one event with 0/false value.
Code:
scheduler = 1 -- scheduler ID
query = 'SELECT * FROM scheduler_events WHERE scheduler=? AND (value=0 OR value="false")'
evt = db:getrow(query, scheduler)
log(evt.start_hour, evt.start_min)