# Stop and reset countdown clock instead of restart

**URL:** <https://discourse.nodered.org/t/stop-and-reset-countdown-clock-instead-of-restart/81468>\
**Category:** General\
**Created:** [21 September 2023 06:31 UTC](https://discourse.nodered.org/t/stop-and-reset-countdown-clock-instead-of-restart/81468 "2023-09-21T06:31:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [21 September 2023 15:08 UTC](https://discourse.nodered.org/t/stop-and-reset-countdown-clock-instead-of-restart/81468/5 "2023-09-21T15:08:05Z")

</div>

> [@Observatory\_Gromme](#):
>
> Clicking ABORT will stop the (separated) process, but only resets the dashboard countdown, not stopping it.  
> How to stop / reset it?

If you send  
`{ "payload": "cancel", "timeout": 0 }`  
to the node, it will stop the timer but will set the counter to `-1` (I think it should be `0`).

If you want the counter to go to 0 you have a couple options:

1. open an issue at the node's GitHub issues and ask the author to make the change (explaining what you think it should be)
2. edit the code yourself (`.node-red/node_module/node-red-contrib-mytimeout/mytimeout.js`) and change all the -1's to 0 (there are 9 locations. Note: if you update the node, you. will have to make the changes again)
3. Do it the way I got around it in my [Coffee Pot Timer](https://discourse.nodered.org/t/coffee-pot-timer/4743) project. What I did was to add a text node and send the time to text node and overlayed that over the mytimeout display

![Sep-21-2023 11-06-20](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/2/e2cb41fe61190ca141acee05091ffa88db21a8c5.gif)

---

_[View the full topic](https://discourse.nodered.org/t/stop-and-reset-countdown-clock-instead-of-restart/81468)._
