Time difference expression


#1

1) Give a description of the problem
How do I calculate a time difference from a global variable

2) What is the expected behaviour?
I want my test test routine to run if 30 minutes have elapsed since the global variable time stamp. So if there has been no motion for 30 minutes and the time is equal to XXX, then turn on the test test switch

3) What is happening/not happening?
I don’t know how to write this routine, I have no knowledge of expressions

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

IF $now is after addminutes(@myglobal,30)

Maybe review the webcore wiki


#3

I’ve managed to get this working thanks for your help :+1:


#4

I know you are new, but a Solution is supposed to point to a helpful post.