This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

2 hour timer
#2
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.
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)
Reply


Messages In This Thread
2 hour timer - by benanderson_475 - 09.02.2021, 01:51
RE: 2 hour timer - by admin - 09.02.2021, 07:26

Forum Jump: