Question about the `trigger` node

Code as is now.....

[{"id":"02c0dc2f2282aad5","type":"inject","z":"05319bbbba06da29","g":"35145edebb9cda53","name":"Stop","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"2","topic":"CONTROL","payload":"STOP","payloadType":"str","x":2260,"y":210,"wires":[["4831866784f61877"]],"icon":"node-red/alert.png"},{"id":"4831866784f61877","type":"trigger","z":"05319bbbba06da29","g":"35145edebb9cda53","name":"","op1":"","op2":"GO","op1type":"pay","op2type":"str","duration":"2","extend":false,"overrideDelay":false,"units":"hr","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":2345,"y":210,"wires":[["18f2ed210cd09581"]],"l":false},{"id":"a86f4943d965e417","type":"inject","z":"05319bbbba06da29","g":"35145edebb9cda53","name":"Go","repeat":"","crontab":"","once":false,"onceDelay":"2","topic":"CONTROL","payload":"GO","payloadType":"str","x":2260,"y":250,"wires":[["c4362f2132f0e915"]]},{"id":"18f2ed210cd09581","type":"change","z":"05319bbbba06da29","g":"35145edebb9cda53","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"CONTROL","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2415,"y":210,"wires":[["432d282ef4848fad"]],"l":false},{"id":"c4362f2132f0e915","type":"change","z":"05319bbbba06da29","g":"35145edebb9cda53","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"reset","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"GO","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"CONTROL","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2345,"y":250,"wires":[["18f2ed210cd09581","4831866784f61877"]],"l":false}]

What it does:
I press the Stop and things stop for a given time. (See trigger node)
But I can press the Go button, things start again.

I'm wanting to know if there is a way I can flush the message out of the trigger node rather than resetting it?

No - the trigger node does not have a flush capability.

1 Like

Thanks.

Just wanted to check.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.