# Create an event scheduler, like cron, time

**URL:** <https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767>\
**Category:** General\
**Created:** [23 January 2020 10:59 UTC](https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767 "2020-01-23T10:59:10Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![henriquemartelli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henriquemartelli/32/16427_2.png) [@henriquemartelli](https://discourse.nodered.org/u/henriquemartelli)\
**Post date:** [27 January 2020 16:51 UTC](https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767/21 "2020-01-27T16:51:18Z")

</div>

being able to add several times in the same day

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 January 2020 16:53 UTC](https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767/22 "2020-01-27T16:53:48Z")

</div>

Have you set up a flow to test? Without the front-end part as that is just a distraction if you can't get the basic part going. Perhaps you can share that?

---

<div class="post-metadata">

**Author:** ![henriquemartelli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henriquemartelli/32/16427_2.png) [@henriquemartelli](https://discourse.nodered.org/u/henriquemartelli)\
**Post date:** [27 January 2020 16:59 UTC](https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767/23 "2020-01-27T16:59:14Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c2969a755442787e45f8b43289619051d4251112.png)

can't imagine where I put it in my flow, so that it does the work I need; which is to be able to schedule several times on the same day

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 January 2020 17:31 UTC](https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767/24 "2020-01-27T17:31:49Z")

</div>

You need to try this flow from Steve - it is mentioned in the 1st of the links I gave you:

[https://flows.nodered.org/flow/79a66966a6cc655a827872a4af794b94](https://flows.nodered.org/flow/79a66966a6cc655a827872a4af794b94)

---

<div class="post-metadata">

**Author:** ![henriquemartelli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henriquemartelli/32/16427_2.png) [@henriquemartelli](https://discourse.nodered.org/u/henriquemartelli)\
**Post date:** [27 January 2020 17:38 UTC](https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767/25 "2020-01-27T17:38:19Z")

</div>

sorry,  
but I have difficulty with the language, and I couldn't understand his reasoning

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 January 2020 19:10 UTC](https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767/26 "2020-01-27T19:10:53Z")

</div>

OK, back to basics then. `inject-cron+-debug`.

Now open the settings for cron+ and add 2 entries that overlap each other. Say 1 that runs 5 minutes passed every hour and one that runs 10 minutes past each hour. Obviously you may wish to speed that up so you do not need to wait an hour. If that works, set up the JSON to do the same thing but injected and then remove the manual entries. If that works, now you know what you need to send from your web front-end.

---

<div class="post-metadata">

**Author:** ![henriquemartelli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henriquemartelli/32/16427_2.png) [@henriquemartelli](https://discourse.nodered.org/u/henriquemartelli)\
**Post date:** [13 May 2020 14:14 UTC](https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767/27 "2020-05-13T14:14:06Z")

</div>

do you have a model ready to give me the json file?

---

<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:** [13 May 2020 14:22 UTC](https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767/28 "2020-05-13T14:22:58Z")

</div>

What do you want? What are you trying to achieve?

Have you read the help in the side bar when you click on the cron-plus node?

Have you tried the samples provided in node-red\>menu\>import\>examples\>cron-plus.

There are a few that will help you.

---

<div class="post-metadata">

**Author:** ![henriquemartelli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henriquemartelli/32/16427_2.png) [@henriquemartelli](https://discourse.nodered.org/u/henriquemartelli)\
**Post date:** [3 June 2020 17:37 UTC](https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767/29 "2020-06-03T17:37:57Z")

</div>

hi my friend  
I'm trying to set up an event scheduler, type (timer) in which I would like to set days of the week and time and that it activates relay (load)  
but I don’t have the necessary mental abastration, someone would have to pass me a pass-by-step, because I am very young in node-red ... (the idea is that I would use this to determine the time to irrigate my garden)

[Previous page](https://discourse.nodered.org/t/create-an-event-scheduler-like-cron-time/20767.md?page=1)
