11.05.2017, 22:43
(This post was last modified: 11.05.2017, 22:50 by Erwin van der Zwart.)
Hi,
Try this:
BR,
Erwin
Try this:
Code:
-- Settings ------------------------------
output = '1/1/1'
min = 14
max = 16
-- Logic ---------------------------------
now = os.date('*t')
if now.hour >= min and now.hour < max then
if grp.getvalue(output) == false then
grp.write(output, true)
end
else
if grp.getvalue(output) == true then
grp.write(output, false)
end
end
BR,
Erwin