# Display remaining trigger flow time and extend trigger time

**URL:** <https://discourse.nodered.org/t/display-remaining-trigger-flow-time-and-extend-trigger-time/74179>\
**Category:** General\
**Created:** [25 January 2023 16:15 UTC](https://discourse.nodered.org/t/display-remaining-trigger-flow-time-and-extend-trigger-time/74179 "2023-01-25T16:15:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmollow](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@tmollow](https://discourse.nodered.org/u/tmollow)\
**Post date:** [25 January 2023 16:15 UTC](https://discourse.nodered.org/t/display-remaining-trigger-flow-time-and-extend-trigger-time/74179/1 "2023-01-25T16:15:56Z")

</div>

A small electric heater is to be controlled with Node-Red.

A gate flow is used and the runtime is controlled via a trigger node.

I am still missing 2 properties:

The trigger is controlled via a button and then runs for e.g. 15 minutes. Now I want to extend the runtime by 15 minutes with each kick, so 3 kicks = 45 minutes.

I would also like to display the remaining runtime on the desktop. E This has been described on [https://discourse.nodered.org/t/time-remaining-on-trigger-node-debug-or-msg-property/343](https://time-remaining-on-trigger-node), but I don't know how to display the remaining time on the desktop.

I would be grateful for any tips.  
Many greetings  
Thomas

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [25 January 2023 17:33 UTC](https://discourse.nodered.org/t/display-remaining-trigger-flow-time-and-extend-trigger-time/74179/2 "2023-01-25T17:33:55Z")

</div>

Would there ever be a need to shut it off before the timer ends?  
How are you actually controlling the heater?

I posted a [thread](https://discourse.nodered.org/t/coffee-pot-timer/4743) awhile ago to control a coffee pot (I’m still using it) you might be able to adapt

- it has a count down timer displayed
- a button on the dashboard
- it turns a smart plug on/off

I’m the button turn it on for 20 minutes and - this is something you would need to change - the button can shut it off too.

In your case I would have a second button to add more time so the original button still could shut it off if needed.

---

<div class="post-metadata">

**Author:** ![tmollow](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@tmollow](https://discourse.nodered.org/u/tmollow)\
**Post date:** [26 January 2023 08:35 UTC](https://discourse.nodered.org/t/display-remaining-trigger-flow-time-and-extend-trigger-time/74179/3 "2023-01-26T08:35:30Z")

</div>

Hello, thanks for your reply. I find some of your ideas worth emulating, but would have to rewrite everything.  
My e-heater is controlled by a wireless socket with an Exec Node './raspberry-remote/send 11011 3 1' or '...0'.  
Switching on and off is done via one input of a gate node and the other input is then used to switch the temperature between 22° and 26°.  
The trigger node should switch on the gate node and after dealy a switch off command is issued directly.  
Therefore I want to be able to extend the trigger delay and display the remaining time.  
To the view here my unfinished flow:

[e-heizung.json](https://discourse.nodered.org/uploads/short-url/hbt6XuLCCGJNxqovdeN2dpzomay.json) (24.8 KB)

---

<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:** [27 March 2023 08:35 UTC](https://discourse.nodered.org/t/display-remaining-trigger-flow-time-and-extend-trigger-time/74179/4 "2023-03-27T08:35:35Z")

</div>

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