Trigger node question about "reset"

Say I have this flow - as an example:

[{"id":"20773d9f.d36e6a","type":"inject","z":"68e3655f.b606b4","name":"Normal thing","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1850,"y":1500,"wires":[["f82eae40.7b13d8"]]},{"id":"f82eae40.7b13d8","type":"trigger","z":"68e3655f.b606b4","name":"Nominal time","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"20","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":2040,"y":1500,"wires":[["9d77928.108d9f"]]},{"id":"9d77928.108d9f","type":"debug","z":"68e3655f.b606b4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":2230,"y":1500,"wires":[]},{"id":"dd881de1.7049e8","type":"inject","z":"68e3655f.b606b4","name":"\"Abort\"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"(unknown)","payloadType":"str","x":1840,"y":1580,"wires":[["f82eae40.7b13d8"]]}]

Screenshot from 2021-01-15 07-12-48

The idea being that "Normal thing" happens.
The first message is sent and a time period is then waited before the second signal.

I want to stop waiting and get the second signal sent.

msg.reset won't work.

Is there a solution?

Sorry if this has been asked before - and even more so if I asked it. :wink:

Thanks.

Like this may be

[{"id":"20773d9f.d36e6a","type":"inject","z":"e8af3254.77f7e","name":"Normal thing","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":330,"y":740,"wires":[["f82eae40.7b13d8"]]},{"id":"f82eae40.7b13d8","type":"trigger","z":"e8af3254.77f7e","name":"Nominal time","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"3","extend":false,"overrideDelay":false,"units":"s","reset":"0","bytopic":"all","topic":"topic","outputs":1,"x":520,"y":740,"wires":[["9d77928.108d9f"]]},{"id":"9d77928.108d9f","type":"debug","z":"e8af3254.77f7e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":800,"wires":[]},{"id":"dd881de1.7049e8","type":"inject","z":"e8af3254.77f7e","name":"\"Abort\"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"str","x":350,"y":800,"wires":[["f82eae40.7b13d8","9d77928.108d9f"]]}]
1 Like

I guess all I need in the inject it to actually set the msg.reset.
(or maybe use a change node to the trigger node to do that.)

Thanks.

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