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.

LM5 lite: CPU info
#4
Try this as event based on the TAG "cancello":
Code:
if event.getvalue() == true then
  previouspid = storage.get('PID:' .. _SCRIPTNAME)
  storage.set('PID:' .. _SCRIPTNAME, os.getpid())
  if previouspid then
    os.kill(previouspid, signal.SIGKILL)
  end
  night = grp.getvalue('32/1/6')
  if night == true then
    grp.checkwrite('0/0/84', true)
    os.sleep(600)
    grp.checkwrite('0/0/84', false)
  end
  storage.delete('PID:' .. _SCRIPTNAME)
end
Reply


Messages In This Thread
LM5 lite: CPU info - by Domoticatorino - 09.10.2020, 09:23
RE: LM5 lite: CPU info - by admin - 09.10.2020, 09:49
RE: LM5 lite: CPU info - by Domoticatorino - 09.10.2020, 13:22
RE: LM5 lite: CPU info - by Erwin van der Zwart - 09.10.2020, 21:33
RE: LM5 lite: CPU info - by Domoticatorino - 12.10.2020, 14:53
RE: LM5 lite: CPU info - by AlexLV - 14.10.2020, 07:39
RE: LM5 lite: CPU info - by Daniel - 14.10.2020, 07:41

Forum Jump: