Wow.... Ok.
I am using the change
node and I needed to change things.
This is the part of the flow in question:
[{"id":"7f22aa5b.695bbc","type":"ui_slider","z":"ae12fd.00ef75","name":"Sydney","label":"Frequency (m)","tooltip":"","group":"ebcaab30.c904b","order":2,"width":3,"height":1,"passthru":false,"outs":"end","topic":"","min":"1","max":"30","step":1,"x":420,"y":3820,"wires":[["4acbf31d.4b45b4"]]},{"id":"4acbf31d.4b45b4","type":"change","z":"ae12fd.00ef75","name":"convert to minutes","rules":[{"t":"move","p":"payload","pt":"msg","to":"delay","tot":"msg"},{"t":"set","p":"delay","pt":"msg","to":"msg.delay * 60000","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":525,"y":3820,"wires":[["110b9f17.9c9241"]],"l":false},{"id":"110b9f17.9c9241","type":"trigger","z":"ae12fd.00ef75","name":"Variable","op1":"trigger","op2":"0","op1type":"str","op2type":"str","duration":"-30","extend":false,"overrideDelay":true,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":630,"y":3820,"wires":[["f57d4697.23dda"]]},{"id":"ebcaab30.c904b","type":"ui_group","name":"Sydney weather","tab":"de0f6b36.132fa8","order":2,"disp":true,"width":"8","collapse":false},{"id":"de0f6b36.132fa8","type":"ui_tab","name":"Weather","icon":"dashboard","order":17,"disabled":false,"hidden":false}]
The slider
node outputs msg.payload
and I need it to be msg.delay
to adjust the delay time on the trigger
node.
But I don't want to send numbers that big to control the delay/repeat time from 1 minute to 30 minutes.
So, the change
node moves msg.payload
to msg.delay
. (Line 1)
(Line 2) multiplies msg.delay
by 60000 to make the number for minutes.