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.

Recurrent control
#3
Resident script with 0 sleep time. 1/1/1 is valve control, 1/1/2 is on delay and 1/1/3 is off delay. Both delays are specified in minutes.
Code:
grp.write('1/1/1', true)

ondelay = grp.getvalue('1/1/2')
os.sleep(ondelay * 60)

grp.write('1/1/1', false)

offdelay = grp.getvalue('1/1/3')
os.sleep(offdelay * 60)
Reply


Messages In This Thread
Recurrent control - by gtsamis - 30.05.2024, 09:01
RE: Recurrent control - by Daniel - 30.05.2024, 11:55
RE: Recurrent control - by admin - 30.05.2024, 13:07

Forum Jump: