commandArray = {} if (uservariables[‘WasmachineBezig’] == 2) then s = uservariables_lastupdate[‘WasmachineBezig’] lastUpdate = os.time{ year=string.sub(s, 1, 4), month=string.sub(s, 6, 7), day=string.sub(s, 9, 10), hour=string.sub(s, 12, 13), min=string.sub(s, 15, 16), sec=string.sub(s, 18, 19) } difference = os.difftime (os.time(), lastUpdate) if (difference > 300) then commandArray[‘Variable:WasmachineBezig’] = ‘0’ commandArray[‘OpenURL’] = ‘pixel.local/api?command=notify&icon=shirt’ end end return commandArray