# Dynamic modification of time interval (Batch node)

**URL:** https://discourse.nodered.org/t/dynamic-modification-of-time-interval-batch-node/31644
**Category:** General
**Created:** [17 August 2020 08:23 UTC](https://discourse.nodered.org/t/dynamic-modification-of-time-interval-batch-node/31644 "2020-08-17T08:23:14Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![skoumo01](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@skoumo01](https://discourse.nodered.org/u/skoumo01)
#### Post date: [17 August 2020 09:20 UTC](https://discourse.nodered.org/t/dynamic-modification-of-time-interval-batch-node/31644/5 "2020-08-17T09:20:56Z")

</div>

Unfortunately, I don't really have a specific example at the moment, as we are still in the brainstorming phase of our project, but what I am trying to do is create some sort of a buffering layer using node-red.

If it helps, the concept is that I want to create a time-based buffer to batch together sensor/device measurements in order to batch-insert them into influxDB. Using the Batch node currently allows us to use a fixed time-interval for all the sensors, but this is quite inflexible for our case...

\*Update to my question: I have found this [[Inject node - repeat. Stuck if it can be set externally](https://discourse.nodered.org/t/inject-node-repeat-stuck-if-it-can-be-set-externally/3601/3)] question that may aid in changing the time interval of the Batch node, but I am new to node-red and I am not sure how adapt it to my case yet.

---

_[View the full topic](https://discourse.nodered.org/t/dynamic-modification-of-time-interval-batch-node/31644)._
