11.06.2018, 21:59
(This post was last modified: 11.06.2018, 21:59 by Erwin van der Zwart.)
Hi,
Try this:
For enable/disable script above from 1 bit use this: (sample is assuming event script script above is called 'timebasedevent')
BR,
Erwin
Try this:
Code:
now = os.date('*t')
if now.hour >= 8 and now.hour < 13 then
grp.write('1/1/1', true)
elseif now.hour >= 13 and now.hour < 14 then
grp.write('1/1/1', false)
end
Code:
if event.getvalue() == true then
script.enable('timebasedevent')
else
script.disable('timebasedevent')
end
Erwin