09.10.2020, 13:22
(09.10.2020, 09:49)admin Wrote: Anything above 0.7 is high load. Install system load app and check which process is consuming CPU.
Thank you Admin, I have seen that the following "resident Script" which I set to 0 second is too heavy.
night = grp.getvalue('32/1/6')
res = {}
objs = grp.tag('cancello')
for _, obj in ipairs(objs) do
if obj.value and night == true then
grp.write('0/0/84', true)
os.sleep(600)
grp.write('0/0/84', false)
end
end
I should use a event base script but I do not know how manage delay of 600 seconds. What do you suggest please?
Thanks.
Br