# Enable/disable flows or input at start/end of month

**URL:** <https://discourse.nodered.org/t/enable-disable-flows-or-input-at-start-end-of-month/64759>\
**Category:** General\
**Created:** [6 July 2022 10:06 UTC](https://discourse.nodered.org/t/enable-disable-flows-or-input-at-start-end-of-month/64759 "2022-07-06T10:06:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FSHelgeland](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fshelgeland/32/64260_2.png) [@FSHelgeland](https://discourse.nodered.org/u/FSHelgeland)\
**Post date:** [6 July 2022 10:06 UTC](https://discourse.nodered.org/t/enable-disable-flows-or-input-at-start-end-of-month/64759/1 "2022-07-06T10:06:15Z")

</div>

Searching for a while but havent found the obvious solution, but I do think there is an easy one. I have a value in a trigger node which I trigger every 20 minutes from january 1, until march 31. Then i have another value which I trigger every 20 minutes from april 1, until desember 31. As for now i manually enable/disable the trigger, but it would have been nice to have it done automaticially. Anyone with a simple solution for this? Best regards Freddy.

---

<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:** [6 July 2022 10:12 UTC](https://discourse.nodered.org/t/enable-disable-flows-or-input-at-start-end-of-month/64759/2 "2022-07-06T10:12:38Z")

</div>

Instead of enabling/disabling, you could use schedules via `node-red-contrib-cron-plus`...

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/3/0321670e7e411b5bce07ae8d838e703ce267e316.png)

---

<div class="post-metadata">

**Author:** ![FSHelgeland](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fshelgeland/32/64260_2.png) [@FSHelgeland](https://discourse.nodered.org/u/FSHelgeland)\
**Post date:** [6 July 2022 12:51 UTC](https://discourse.nodered.org/t/enable-disable-flows-or-input-at-start-end-of-month/64759/3 "2022-07-06T12:51:27Z")

</div>

Thank you, had to invest some time understanding the chrono plus node. It does the trick. If you dont mind i will ask my next question in here as well. I have a feed with numbers going (kWh used last hour). Updates every 10-15 seconds. I will try to use that feed to calculate the cost for my power consumption so i need a node who passes on the information for 1 hour. Then I can calculate the cost for that hour, and then I have to repeat that for the next 23 hours. But chrono plus node doesnt pass through data does it? Best regards Freddy.

---

<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:** [6 July 2022 13:34 UTC](https://discourse.nodered.org/t/enable-disable-flows-or-input-at-start-end-of-month/64759/4 "2022-07-06T13:34:07Z")

</div>

> [@FSHelgeland](#):
>
> I have a feed with numbers going (kWh used last hour). Updates every 10-15 seconds. I will try to use that feed to calculate the cost for my power consumption so i need a node who passes on the information for 1 hour. Then I can calculate the cost for that hour, and then I have to repeat that for the next 23 hours.

You should start a new post with a suitable title and this question & include sample data / export flow progress - someone will help 🙂

---

<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:** [20 July 2022 13:34 UTC](https://discourse.nodered.org/t/enable-disable-flows-or-input-at-start-end-of-month/64759/5 "2022-07-20T13:34:44Z")

</div>

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