20.10.2019, 18:07
(This post was last modified: 20.10.2019, 21:14 by Erwin van der Zwart.)
Hi,
Try this:
BR,
Erwin
Try this:
Code:
value = event.getvalue()
if value == true then
storage.set(_SCRIPTNAME, os.time())
else
lastupdatetime = storage.get(_SCRIPTNAME)
if lastupdatetime then
difference = os.time() - lastupdatetime
log(difference)
end
end
Erwin