Logic Machine Forum
Special delay - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Special delay (/showthread.php?tid=6057)



Special delay - AndersH - 23.07.2025

Hi.

I think i makes everything more difficult than it has to be.. Rolleyes

I want to have a script (maybe eventbased), when i get 1 on the incoming adress i want to send a 30min delayed
% value to the outgoing adress.

If incoming is 0, nothing will happen.


Best regards


RE: Special delay - Daniel - 23.07.2025

See this:
https://forum.logicmachine.net/showthread.php?tid=3932&pid=26134#pid26134


RE: Special delay - AndersH - 23.07.2025

Think i got it...

--event based
if event.getvalue(1)
  then
 
  --Delay
value = 1
os.sleep(60*30)
value = 11
grp.write('32/1/2', value)
else
end


RE: Special delay - Daniel - 23.07.2025

In this case make sure to set the execution mode to last instance only.


RE: Special delay - AndersH - 23.07.2025

What do you mean with that ?


RE: Special delay - Daniel - 23.07.2025

https://app.screencast.com/Zck27WZ4EUGlj