26.12.2021, 08:28
Thanks admin
The Script work fine for me and I add last run interval when value become false instead of nothing
The Script work fine for me and I add last run interval when value become false instead of nothing
Code:
value = event.getvalue()
key = 'ontime'
out = '40/1/7'
if value then
if not storage.get(key) then
storage.set(key, os.time())
grp.update(out, '0m')
end
else
Last_Run = grp.getvalue(out)
time = os.date(' %a, %d/%m',time)
grp.update(out, 'Last Run: '..Last_Run..' In'..time)
storage.delete(key)
end
Best Regards,