# Pull down menu to select delay?

**URL:** <https://discourse.nodered.org/t/pull-down-menu-to-select-delay/38640>\
**Category:** General\
**Created:** [6 January 2021 09:12 UTC](https://discourse.nodered.org/t/pull-down-menu-to-select-delay/38640 "2021-01-06T09:12:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![JGKK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgkk/32/18515_2.png) [@JGKK](https://discourse.nodered.org/u/JGKK)\
**Post date:** [6 January 2021 09:57 UTC](https://discourse.nodered.org/t/pull-down-menu-to-select-delay/38640/3 "2021-01-06T09:57:01Z")

</div>

> [@zenofmud](#):
>
> Not good pratice to just power off a Pi, issue a 'sudo shutdown' (via an `exec` node), wait a minute, then shut off the relay.

I think there is a relay connected to the gpio and that gets turned on or off.

> [@spawnreaper](#):
>
> on a delay node seems to be fixed in the node.

You have to change the fixed delay setting to override with msg.delay in the delay nodes configuration. You can than change the delay by accompanying the input message with the amount of milliseconds it should be delayed in `msg.delay`.

You could also take a look at:

> [@\[ANNOUNCE\] node-red-contrib-ui-countdown-timer-switch](https://discourse.nodered.org/t/announce-node-red-contrib-ui-countdown-timer-switch/38526):
>
> [Ui Countdown Timer Switch](https://github.com/fellinga/node-red-contrib-ui-countdown-timer-switch) It's always nice to automate things but sometimes automation needs some flexibility that can be triggered manually. I've created a UI node that is basically a simple switch but displays the time it was activated and turns itself off after a certain amount of time (it also displays the end time). [cts-demo] What is it for? My personal use case was to activate an irrigation system outside of scheduled times, but you can obviously use it for basically everything. High…

or

> [@\[ANNOUNCE\] node-red-contrib-ui-time-scheduler](https://discourse.nodered.org/t/announce-node-red-contrib-ui-time-scheduler/36288):
>
> [Ui Time Scheduler](https://github.com/fellinga/node-red-contrib-ui-time-scheduler) Back in late 2018 I was looking for a simple time scheduler for the node-red dashboard that any person without any technical background (and without access to the node-red flow editor) could easily operate. I found many nodes that did a good job at the node-red flow editor, but I did not find any for the dashboard. I also did not want to use big “thrown together” flows that would require to import many different nodes every time; I needed a simple solution. Hence, I decided to…

alternatively if you want only core nodes I have a collection of subflows which can be used in the above way:

[https://flows.nodered.org/collection/WPGDdOrt2Z-Z](https://flows.nodered.org/collection/WPGDdOrt2Z-Z)

Johannes

---

_[View the full topic](https://discourse.nodered.org/t/pull-down-menu-to-select-delay/38640)._
