# Trigger-time depending on date

**URL:** <https://discourse.nodered.org/t/trigger-time-depending-on-date/53042>\
**Category:** General\
**Created:** [1 November 2021 07:38 UTC](https://discourse.nodered.org/t/trigger-time-depending-on-date/53042 "2021-11-01T07:38:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BayerSe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bayerse/32/50309_2.png) [@BayerSe](https://discourse.nodered.org/u/BayerSe)\
**Post date:** [1 November 2021 07:38 UTC](https://discourse.nodered.org/t/trigger-time-depending-on-date/53042/1 "2021-11-01T07:38:25Z")

</div>

Hi,

I'd like to automate our shutters. In particular, I'd like to have opening- and closing times varying over the year. I could of course try to use solar events, but so far I did not really find a satisfying setting as I would often prefer earlier / later times than the typical solar events.

What I would like to to instead is to use a step-wise function with arbitrary support points.

Example:

 ![Screenshot from 2021-11-01 08-32-07](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/6/5640fa9258ebeef78604fcd4db93098583bba33b.png)

I would like to have the possibility to provide a number of dates (or invervals) and times when the node should be executed.

Does anybody have an idea how to achieve that? Any pointer is highly appreciated.

Thanks  
Sebastian

---

<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:** [1 November 2021 07:55 UTC](https://discourse.nodered.org/t/trigger-time-depending-on-date/53042/2 "2021-11-01T07:55:33Z")

</div>

node-red-contrib-cron-plus is more than capable of triggering multiple datetimes.

You can even set schedules dynamically (at runtime) via a `msg`

---

<div class="post-metadata">

**Author:** ![BayerSe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bayerse/32/50309_2.png) [@BayerSe](https://discourse.nodered.org/u/BayerSe)\
**Post date:** [1 November 2021 17:00 UTC](https://discourse.nodered.org/t/trigger-time-depending-on-date/53042/3 "2021-11-01T17:00:38Z")

</div>

Thank you, I'll have a look

---

<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:** [31 December 2021 17:00 UTC](https://discourse.nodered.org/t/trigger-time-depending-on-date/53042/4 "2021-12-31T17:00:45Z")

</div>

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