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.

External writing to Scheduler
#4
This is rather complicated task. Scheduler event can be updated by script but all the event parameters must be provided. In BACnet we don't support time object so all values would have to be converted to numeric format and then back.

Example how to modify event start hour and minute
Code:
id = 123
start_hour = 12
start_min = 30

db:update('scheduler_events', {
  start_hour = start_hour,
  start_min = start_min
}, { id = id })

io.writefile('/tmp/lm-scheduler-clear', '')
------------------------------
Ctrl+F5
Reply


Messages In This Thread
External writing to Scheduler - by tomnord - 21.12.2022, 12:20
RE: External writing to Scheduler - by Daniel - 21.12.2022, 14:24
RE: External writing to Scheduler - by Daniel - 22.12.2022, 08:46

Forum Jump: