# Set timer with payload

**URL:** <https://discourse.nodered.org/t/set-timer-with-payload/62808>\
**Category:** General\
**Created:** [18 May 2022 15:39 UTC](https://discourse.nodered.org/t/set-timer-with-payload/62808 "2022-05-18T15:39:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![matisok](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/matisok/32/3445_2.png) [@matisok](https://discourse.nodered.org/u/matisok)\
**Post date:** [18 May 2022 15:39 UTC](https://discourse.nodered.org/t/set-timer-with-payload/62808/1 "2022-05-18T15:39:56Z")

</div>

Hi  
I am making my own morning alarm clock with a analogue rotary dial with 5 different time presest and a 6th that's off, and a push that's snooze.

I can detect the dials positions and channel each as a 1 or 0 signal that I can then convert to a number (like 6, 7, 8 9, 10 and 0). But I want to get this sent into a Timer like node (like timeswitch) but where I can set the time value via an input from the dials.

Doesn't look like timerswitch allows this, any ideas? I am happy to post the not finished flow I have as well as a photo of the functionality.

 ![IMG-6515](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/5/e50dbdcad7e6eb0c35b2ea3ef8c90322d694886a.jpeg)

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [18 May 2022 15:50 UTC](https://discourse.nodered.org/t/set-timer-with-payload/62808/2 "2022-05-18T15:50:26Z")

</div>

There are several programmable timer nodes . I use mytimeout, node-red-contrib-mytimeout

---

<div class="post-metadata">

**Author:** ![matisok](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/matisok/32/3445_2.png) [@matisok](https://discourse.nodered.org/u/matisok)\
**Post date:** [18 May 2022 18:56 UTC](https://discourse.nodered.org/t/set-timer-with-payload/62808/3 "2022-05-18T18:56:59Z")

</div>

I tried mytimeout as you suggested - but I am missing the option of sending a "time" to the node where the action should start. The timer I have found so far including mytimeout is more a "send an on/off with a countdown time" through the payload.

I want to send a specific time to "start action at [payload]" if that makes sense.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [18 May 2022 19:00 UTC](https://discourse.nodered.org/t/set-timer-with-payload/62808/4 "2022-05-18T19:00:30Z")

</div>

Cron plus is programmable on time

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [18 May 2022 19:04 UTC](https://discourse.nodered.org/t/set-timer-with-payload/62808/5 "2022-05-18T19:04:01Z")

</div>

See [Dynamic inject node options...?](https://discourse.nodered.org/t/dynamic-inject-node-options/62589)

Towards the bottom of that topic, I posted an example flow which may help.

---

<div class="post-metadata">

**Author:** ![matisok](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/matisok/32/3445_2.png) [@matisok](https://discourse.nodered.org/u/matisok)\
**Post date:** [19 May 2022 08:28 UTC](https://discourse.nodered.org/t/set-timer-with-payload/62808/6 "2022-05-19T08:28:25Z")

</div>

Thanks guys. All worked perfectly. I ended up using the schedex node and sending "ontime 9:00" and so forth from my dials. Brilliant.

Now on to the hardware finish and installation in the teenage kids rooms.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [19 May 2022 10:33 UTC](https://discourse.nodered.org/t/set-timer-with-payload/62808/7 "2022-05-19T10:33:11Z")

</div>

> [@matisok](#):
>
> Now on to the hardware finish and installation in the teenage kids rooms.

Is this what you are developing?

[![]( " - YouTube") ](https://www.youtube.com/watch?v=6Ew8vc6RjfA)

---

<div class="post-metadata">

**Author:** ![matisok](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/matisok/32/3445_2.png) [@matisok](https://discourse.nodered.org/u/matisok)\
**Post date:** [20 May 2022 11:04 UTC](https://discourse.nodered.org/t/set-timer-with-payload/62808/8 "2022-05-20T11:04:04Z")

</div>

Absolutely! 😃 I should make a video of the installation we have at home. I love having controlpanels round the house to notify and commicate with simple push of buttons.

---

<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:** [19 July 2022 11:04 UTC](https://discourse.nodered.org/t/set-timer-with-payload/62808/9 "2022-07-19T11:04:35Z")

</div>

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