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.

Resending timer script
#1
I am looking for a script that i can use to send a value every xx minutes. 

Found this that could work. But this is once, and i need it to resend for example every 30 minutes to pulse an output. 

Could anyone help me with such a script.

Code:
-- group address or name
addr = '1/1/1'

-- find required object
obj = grp.find(addr)

-- object exists and current state is "on"
if obj and obj.data then
  -- delta is in seconds
  delta = os.time() - obj.updatetime

  -- switch off when timer expires
  if delta >= 50 * 60 then
    grp.write(addr, false)
  end
end
Reply


Messages In This Thread
Resending timer script - by Tokatubs - 06.04.2020, 20:37
RE: Resending timer script - by Tokatubs - 06.04.2020, 23:33
RE: Resending timer script - by davidchispas - 25.01.2021, 08:54
RE: Resending timer script - by admin - 25.01.2021, 09:08
RE: Resending timer script - by davidchispas - 25.01.2021, 17:01
RE: Resending timer script - by admin - 25.01.2021, 17:04
RE: Resending timer script - by davidchispas - 26.01.2021, 10:54
RE: Resending timer script - by davidchispas - 27.01.2021, 08:47
RE: Resending timer script - by admin - 27.01.2021, 08:50
RE: Resending timer script - by davidchispas - 27.01.2021, 08:53

Forum Jump: