# Trigger Question and trigger reset question

**URL:** <https://discourse.nodered.org/t/trigger-question-and-trigger-reset-question/38969>\
**Category:** General\
**Created:** [11 January 2021 18:29 UTC](https://discourse.nodered.org/t/trigger-question-and-trigger-reset-question/38969 "2021-01-11T18:29:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [11 January 2021 18:29 UTC](https://discourse.nodered.org/t/trigger-question-and-trigger-reset-question/38969/1 "2021-01-11T18:29:22Z")

</div>

Hello  
first i have a trigger to avoid to get to many telegram so the Trigger 180Min will wait this time, this part work. But is there a way in the node config part to check how long the 180min are going on?

Second,  
the waiting for 180min have to be interupted at 5:30 AM and will get the next message as soon there is one.  
How to check if the reset injection did work? Or how the reset-injection-node have to be configured?

have a nice day  
vinc

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 January 2021 18:52 UTC](https://discourse.nodered.org/t/trigger-question-and-trigger-reset-question/38969/2 "2021-01-11T18:52:01Z")

</div>

Not sure about the first, the question confused me

The second you could have a debug that show time last triggered as below.

```auto
[{"id":"564c0344.615fe4","type":"inject","z":"6524ce52.cafd2","name":"","props":[{"p":"reset","v":"true","vt":"bool"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"30 17 * * *","once":false,"onceDelay":0.1,"topic":"","x":150.00001525878906,"y":1063.9999389648438,"wires":[["7e9720ad.01208","c3724858.a919d8"]]},{"id":"7e9720ad.01208","type":"trigger","z":"6524ce52.cafd2","name":"","op1":"1","op2":"0","op1type":"val","op2type":"val","duration":"250","extend":"false","units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":380.00001525878906,"y":1103.9999389648438,"wires":[[]]},{"id":"c3724858.a919d8","type":"debug","z":"6524ce52.cafd2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"$moment().format(\"ddd HH:mm:ss\")\t\t\t","statusType":"jsonata","x":320.00001525878906,"y":1043.9999389648438,"wires":[]}]

```

 ![Screenshot_20210111-184949](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/8/f8720638f87d045ae775a9b39c9d946b0a1dea6c.png)

---

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [11 January 2021 19:10 UTC](https://discourse.nodered.org/t/trigger-question-and-trigger-reset-question/38969/3 "2021-01-11T19:10:17Z")

</div>

@E1cid  
your Trigger-Reset-Node works Merci  
the other - would be nice there would be a counddown below the trigger button to see how long it have to go.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 January 2021 19:22 UTC](https://discourse.nodered.org/t/trigger-question-and-trigger-reset-question/38969/4 "2021-01-11T19:22:04Z")

</div>

You could put in a feature request here

> **[node-red/node-red-nodes](https://github.com/node-red/node-red-nodes/issues)**
>
> s

---

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [11 January 2021 19:32 UTC](https://discourse.nodered.org/t/trigger-question-and-trigger-reset-question/38969/5 "2021-01-11T19:32:01Z")

</div>

at least it is not a point I missed 😉

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 January 2021 19:39 UTC](https://discourse.nodered.org/t/trigger-question-and-trigger-reset-question/38969/6 "2021-01-11T19:39:10Z")

</div>

You could use the debug again to show when trigger will send. It's not a count down but will give you a time.

```auto
[{"id":"564c0344.615fe4","type":"inject","z":"6524ce52.cafd2","name":"","props":[{"p":"reset","v":"true","vt":"bool"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"30 17 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":150.00001525878906,"y":1063.9999389648438,"wires":[["7e9720ad.01208","c3724858.a919d8","20a26fcd.f2d89"]]},{"id":"7e9720ad.01208","type":"trigger","z":"6524ce52.cafd2","name":"","op1":"","op2":"","op1type":"pay","op2type":"payl","duration":"180","extend":true,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":410,"y":1120,"wires":[["ddcb339c.d115b"]]},{"id":"c3724858.a919d8","type":"debug","z":"6524ce52.cafd2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"$moment().format(\"ddd HH:mm:ss\")\t\t\t","statusType":"jsonata","x":320.00001525878906,"y":1043.9999389648438,"wires":[]},{"id":"20a26fcd.f2d89","type":"trigger","z":"6524ce52.cafd2","name":"","op1":"","op2":"","op1type":"pay","op2type":"payl","duration":"180","extend":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":2,"x":410,"y":1280,"wires":[["1b645571.e1b01b","ddcb339c.d115b"],["ddcb339c.d115b"]]},{"id":"ddcb339c.d115b","type":"change","z":"6524ce52.cafd2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1140,"wires":[[]]},{"id":"da171be6.24f9b","type":"inject","z":"6524ce52.cafd2","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":1120,"wires":[["7e9720ad.01208","ce38cc84.62ab","20a26fcd.f2d89"]]},{"id":"1b645571.e1b01b","type":"debug","z":"6524ce52.cafd2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"$moment().add(180, 'minutes').format(\"ddd HH:mm:ss\")\t","statusType":"jsonata","x":430,"y":1320,"wires":[]},{"id":"ce38cc84.62ab","type":"debug","z":"6524ce52.cafd2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"$moment().add(180, 'minutes').format(\"ddd HH:mm:ss\")\t","statusType":"jsonata","x":430,"y":1160,"wires":[]}]

```

Two examples one for a resetting trigger when another message is received and one for when that option is not set.

---

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [11 January 2021 19:46 UTC](https://discourse.nodered.org/t/trigger-question-and-trigger-reset-question/38969/7 "2021-01-11T19:46:18Z")

</div>

there is a small blue dot below when activ and counting down

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 January 2021 19:58 UTC](https://discourse.nodered.org/t/trigger-question-and-trigger-reset-question/38969/8 "2021-01-11T19:58:43Z")

</div>

Yes, the other debug adds 180 minutes and gives a time when the countdown will end.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 March 2021 19:58 UTC](https://discourse.nodered.org/t/trigger-question-and-trigger-reset-question/38969/9 "2021-03-12T19:58:45Z")

</div>

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