# \[ANNOUNCE\] node-red-contrib-chronos 1.8.0

**URL:** https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-8-0/38905
**Category:** Share Your Nodes
**Created:** [10 January 2021 16:37 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-8-0/38905 "2021-01-10T16:37:03Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![jens\_rossbach](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jens_rossbach/32/98717_2.png) [@jens\_rossbach](https://discourse.nodered.org/u/jens_rossbach)
#### Post date: [10 January 2021 16:37 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-8-0/38905/1 "2021-01-10T16:37:04Z")

</div>

Hi all,

I just released version **1.8.0** of node-red-contrib-chronos. In this version, the scheduler node, the time switch node and the time filter node support loading parts of their configuration (schedule events in case of scheduler node, conditions in case of switch/filter node) from context variables. This allows to dynamically program the schedule and the conditions which can be useful if you want to provide the configuration data from runtime sources like e.g. a Node-RED dashboard UI.

> **[node-red-contrib-chronos](https://flows.nodered.org/node/node-red-contrib-chronos)**
>
> Time-based Node-RED scheduling, queueing, routing, filtering and manipulating nodes

---

<div class="post-metadata">

### Author: ![Giamma](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@Giamma](https://discourse.nodered.org/u/Giamma)
#### Post date: [24 March 2021 08:39 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-8-0/38905/2 "2021-03-24T08:39:39Z")

</div>

Hi,  
I need your help ....  
I have trouble to write a function to set the node scheduler with these parameters:

. enabled  
. date  
. time

Can you help me?

 ![img1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/a/caf66781d680fbe7b615b93b493e847e32a42d58.png) ![img2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/5/85ee319a4f4e7c7feaba015a19d7ed82843d5b3d.png)

---

<div class="post-metadata">

### Author: ![jens\_rossbach](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jens_rossbach/32/98717_2.png) [@jens\_rossbach](https://discourse.nodered.org/u/jens_rossbach)
#### Post date: [24 March 2021 19:04 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-8-0/38905/3 "2021-03-24T19:04:42Z")

</div>

Hi,

could you explain a bit in more detail what you want to achieve and what your use case is?

With the message that you send from your function node to the scheduler node you can enable the schedule by setting the payload to true (boolean value).

How does the configuration of your scheduler node look like?

Best regards  
Jens

---

<div class="post-metadata">

### Author: ![Giamma](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@Giamma](https://discourse.nodered.org/u/Giamma)
#### Post date: [24 March 2021 19:37 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-8-0/38905/4 "2021-03-24T19:37:24Z")

</div>

Hi,  
for every day I have one timestamp that turn-on a light at a specific hour, but if there are some conditions I need to change that hour  
Whit node timestamp I cannot change the hour by a function and that's why I found your node.  
I'd like to change the hour and if it's possible enable or disable the node ....

---

<div class="post-metadata">

### Author: ![jens\_rossbach](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jens_rossbach/32/98717_2.png) [@jens\_rossbach](https://discourse.nodered.org/u/jens_rossbach)
#### Post date: [25 March 2021 18:02 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-8-0/38905/5 "2021-03-25T18:02:17Z")

</div>

Basically it should work as you have shown (with some changes regarding the message that should switch the schedule on/off as described above), but as I don't know how your configuration of the scheduler node looks like, I cannot tell for sure. Maybe you can share your flow as JSON? Also some more details would be helpful:

- How many different trigger times do you have? Would it maybe be sufficient to configure them statically?
- What are the conditions to change the trigger time?
- What are the triggers to enable/disable the schedule?

---

<div class="post-metadata">

### Author: ![Giamma](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@Giamma](https://discourse.nodered.org/u/Giamma)
#### Post date: [26 March 2021 05:33 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-8-0/38905/6 "2021-03-26T05:33:26Z")

</div>

Ok, we have obvious communication problems,  
I'll find another way, have a nice day ....

---

<div class="post-metadata">

### Author: ![Giamma](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@Giamma](https://discourse.nodered.org/u/Giamma)
#### Post date: [29 March 2021 07:04 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-8-0/38905/7 "2021-03-29T07:04:09Z")

</div>

Well, I'll try again ....

this is my flow:

 ![primo](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/c/5c740c2f00c4bbf58a2ca17904eb0f6c8693f75d.png)

this is my node scheduler:

 ![node](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/8/285b867bdf2bfe59dd2ffb9e037bc6b4dbbd17a4.png)

and this is my variable:

 ![variabile](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/0/f0d427bacc8818840df0dcd8da19e841126fff1f.png)

I think I write all ok, but why when I push Timestamp I have the error  
"Invalid input message" ?

What am I doing wrong?

Thank you .....

---

<div class="post-metadata">

### Author: ![jens\_rossbach](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jens_rossbach/32/98717_2.png) [@jens\_rossbach](https://discourse.nodered.org/u/jens_rossbach)
#### Post date: [29 March 2021 10:54 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-8-0/38905/8 "2021-03-29T10:54:31Z")

</div>

Hi again,

your configuration of the scheduler node looks okay. The problem of the error message comes from the message that you send to the scheduler node. In your function node you pass through the message received from the inject node. This message has a payload containing a timestamp which is not a valid input for the scheduler node. The scheduler node expects the payload to be either a boolean value or an array of boolean values. So in your function node you have to change the payload to either true (to enable the schedule) or false (to disable the schedule).

Regards, Jens

---

<div class="post-metadata">

### Author: ![Giamma](https://avatars.discourse-cdn.com/v4/letter/g/e47774/32.png) [@Giamma](https://discourse.nodered.org/u/Giamma)
#### Post date: [30 March 2021 04:35 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-chronos-1-8-0/38905/9 "2021-03-30T04:35:31Z")

</div>

Hi,  
ok, I understand, thank you ....

Regards
