# Hourglass Timer Node problem

**URL:** https://discourse.nodered.org/t/hourglass-timer-node-problem/25446
**Category:** General
**Created:** [24 April 2020 21:19 UTC](https://discourse.nodered.org/t/hourglass-timer-node-problem/25446 "2020-04-24T21:19:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![affinite](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@affinite](https://discourse.nodered.org/u/affinite)
#### Post date: [24 April 2020 21:19 UTC](https://discourse.nodered.org/t/hourglass-timer-node-problem/25446/1 "2020-04-24T21:19:21Z")

</div>

Hi  
I'm using the Hourglass node as a timer for engine hours on a boat.  
The node works great if I treat it nicely by issuing it with "start" and stop" commands however if my (RPi) system is shut down with the timer running (ie I haven't issued a "stop" command before the system is shut down,) the timer continues to run.  
Is there a way to automatically issue a "stop" command to the node on system shutdown or is there another node I could use to generate a msg.command stop on system shutdown?  
Thanks

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [24 April 2020 22:12 UTC](https://discourse.nodered.org/t/hourglass-timer-node-problem/25446/2 "2020-04-24T22:12:09Z")

</div>

Good question... I don't know the node is question personally - but that may be the intended behaviour from the author. It may be worth raising an issue on that nodes github page - [https://github.com/eschava/node-red-contrib-hourglass](https://github.com/eschava/node-red-contrib-hourglass) - to ask... and indeed if that is as intended then it could perhaps have an extra option to also self stop during a closedown. Worth an ask.

---

<div class="post-metadata">

### Author: ![affinite](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@affinite](https://discourse.nodered.org/u/affinite)
#### Post date: [25 April 2020 07:23 UTC](https://discourse.nodered.org/t/hourglass-timer-node-problem/25446/3 "2020-04-25T07:23:55Z")

</div>

> [@affinite](#):
>
> Hi  
> I'm using the Hourglass node as a timer for engine hours on a boat.  
> The node works great if I treat it nicely by issuing it with "start" and stop" commands however if my (RPi) system is shut down with the timer running (ie I haven't issued a "stop" command before the system is shut down,) the timer continues to run.  
> Is there a way to automatically issue a "stop" command to the node on system shutdown or is there another node I could use to generate a msg.command stop on system shutdown?  
> Thanks

Thanks - Ive just done that

---

<div class="post-metadata">

### Author: ![eschava](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eschava/32/33_2.png) [@eschava](https://discourse.nodered.org/u/eschava)
#### Post date: [25 May 2020 13:47 UTC](https://discourse.nodered.org/t/hourglass-timer-node-problem/25446/4 "2020-05-25T13:47:36Z")

</div>

Would it work for you if hourglass doesn't persist its state and starts from 00:00 every time when node-red is restarted?

---

<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: [24 July 2020 13:47 UTC](https://discourse.nodered.org/t/hourglass-timer-node-problem/25446/5 "2020-07-24T13:47:40Z")

</div>

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