# Alarm Clock / Setting inject to start withl global variable

**URL:** <https://discourse.nodered.org/t/alarm-clock-setting-inject-to-start-withl-global-variable/31831>\
**Category:** General\
**Created:** [21 August 2020 12:47 UTC](https://discourse.nodered.org/t/alarm-clock-setting-inject-to-start-withl-global-variable/31831 "2020-08-21T12:47:09Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 August 2020 07:27 UTC](https://discourse.nodered.org/t/alarm-clock-setting-inject-to-start-withl-global-variable/31831/5 "2020-08-22T07:27:34Z")

</div>

> [@zimb86](#):
>
> i´m just looking for a way to set an alarm clock via dashboard and starting at the given time at next morning

Here is a working example I did for anther member. Its pretty much a complete demo of what you are asking...

> [@Enter time on Dashboard and get event trigger in node-red](https://discourse.nodered.org/t/enter-time-on-dashboard-and-get-event-trigger-in-node-red/31615/2):
>
> You can do this with cron-plus node. There is even a dashboard demo in the built in importable flows (node-red menu, import, examples) The demo does it with a Cron input but you could swap this out for a date and time entry field. UPDATE... Here is an example... the flow... [{"id":"5e57cc8a.617d44","type":"change","z":"d391a194.5dc1d","name":"","rules":[{"t":"set","p":"ui\_add\_schedule\_name","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"",…

---

_[View the full topic](https://discourse.nodered.org/t/alarm-clock-setting-inject-to-start-withl-global-variable/31831)._
