Viewon Delay Timer scripting

Hi,

I’m tying to execute a function ( or command ) after 10 minutes delay timer. So basically when a condition comes true, then start a timer for 10 minutes. When the timer is up; execute the command. If the first condition is false then reset the timer. I’m trying to implement this in viewON under java script. I tried several ways from online resources by it didn’t work. Please help !

Thanks,

Tamer

1 Like

Hi @Tamer

I don’t have too much experience in Java Script, but I have some BASIC code you could probably modify to do what you’re asking. I haven’t had the chance to test it yet but feel free to use this as a starting point

10 minute delay off an initialization.txt (751 Bytes)

Thanks for sharing the file . I may use it for the future in the BASIC code. However, I’m trying to get my scripting in java inside viewON . For now I decided to use the interval time of the java section to get close to what I want. Thanks anyway

Ok, this could be something useful for you

Topic closed due to inactivity.