I have an inject node set to inject once after xx that goes to a change node.
(the flow)
[{"id":"bd9fe1da.4adb68","type":"inject","z":"e2bd5a4e.5597e8","name":"","topic":"","payload":"Lcl Readings","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":4270,"y":60,"wires":[["2652945e.47481c"]]},{"id":"2652945e.47481c","type":"change","z":"e2bd5a4e.5597e8","name":"setup","rules":[{"t":"set","p":"name","pt":"flow","to":"payload","tot":"msg"},{"t":"set","p":"event_paths","pt":"global","to":"/home/pi/.node-red/public/events/","tot":"str"},{"t":"set","p":"log_paths","pt":"global","to":"/home/pi/.node-red/public/logs/","tot":"str"},{"t":"set","p":"threshold","pt":"flow","to":"6000","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":4430,"y":60,"wires":[[]]}]
Not rocket science.
So what happened?
I got home today (about 16:40) and I saw an LED indicating an NTP problem.
I booted up and looked at the machines. Sure enough there seemed to be a problem.
But they were happening every time the times were compared.
Looking further they were within a few seconds of each other.
The difference (as shown to me) was 5959 or there about. Not more than 6000.
The threshold is set to 6000. So 5959 should be under the threshold.
Looking further I noticed the machine had only just rebooted a few minutes ago.
When I opened the context data and looked at the flow context values. threshold was set to 60.
I did a search for threshold = 60 found nothing. Ok, it wouldn't find that in the change node.
But why/how is/was it set to 60 and not 6000?
All the other things were set.