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.

Change shedulers from a script
#8
If running RC firmware you must call clearschedulers() after making any changes, otherwise all scheduler events until the end of the day will still run even when the scheduler is disabled.

Simplified Erwin's example:
Code:
name = 'Scheduler 1'
active = event.getvalue()

db:update('schedulers', { active = toboolean(active) }, { name = name })
clearschedulers()
Reply


Messages In This Thread
Change shedulers from a script - by buuuudzik - 08.04.2016, 08:50
RE: Change shedulers from a script - by admin - 19.07.2016, 10:03
RE: Change shedulers from a script - by admin - 05.09.2016, 13:21
RE: Change shedulers from a script - by admin - 15.12.2016, 10:53
RE: Change shedulers from a script - by admin - 04.01.2017, 13:53
RE: Change shedulers from a script - by admin - 25.03.2019, 07:01
RE: Change shedulers from a script - by Safar - 29.04.2019, 22:02
RE: Change shedulers from a script - by admin - 25.11.2019, 08:01
RE: Change shedulers from a script - by admin - 31.01.2021, 11:07

Forum Jump: