# Inject: Interval between times

**URL:** <https://discourse.nodered.org/t/inject-interval-between-times/14702>\
**Category:** General\
**Created:** [23 August 2019 10:57 UTC](https://discourse.nodered.org/t/inject-interval-between-times/14702 "2019-08-23T10:57:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtuiot](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@dtuiot](https://discourse.nodered.org/u/dtuiot)\
**Post date:** [23 August 2019 10:57 UTC](https://discourse.nodered.org/t/inject-interval-between-times/14702/1 "2019-08-23T10:57:49Z")

</div>

We're using node-red to retrieve data from our table in our database, and then we send the data to a new table in our database. We're using the node 'inject', and we want to inject in x:21 min.

**Example**

10:21 -\> 10: 41 -\> 11:01 -\> 11:21 -\> 11:41 -\> 12:01 and so on...

What we really want is 20 min, which is an option on our inject node, but unfortunately we're having some latency in about 30 sec, so if we say 10:20, we get 10:00 value and not 10:20 value. But if we say 10:21, we are then 100% sure that we receive the 10:20 data. So our question is, how do we set interval between times to be 21 min?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 August 2019 11:13 UTC](https://discourse.nodered.org/t/inject-interval-between-times/14702/2 "2019-08-23T11:13:46Z")

</div>

I think this will let you do exactly what you want

> **[node-red-contrib-cron-plus](https://flows.nodered.org/node/node-red-contrib-cron-plus)**
>
> A flexible scheduler node for Node-RED (incl dynamic control and Timezone support)

---

<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:** [23 August 2019 11:35 UTC](https://discourse.nodered.org/t/inject-interval-between-times/14702/3 "2019-08-23T11:35:02Z")

</div>

yeah, bread and butter stuff...

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

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [23 August 2019 12:07 UTC](https://discourse.nodered.org/t/inject-interval-between-times/14702/4 "2019-08-23T12:07:22Z")

</div>

Or the standard inject node set to "interval between times" set for 20 mins - which will give you :20 :40 :00 etc ... and then a delay node set to 1 minute...

---

<div class="post-metadata">

**Author:** ![johanon](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johanon/32/3335_2.png) [@johanon](https://discourse.nodered.org/u/johanon)\
**Post date:** [23 August 2019 12:08 UTC](https://discourse.nodered.org/t/inject-interval-between-times/14702/5 "2019-08-23T12:08:08Z")

</div>

Another option is to add a delay node of one minute.... if you prefer to stick with the core nodes.

---

<div class="post-metadata">

**Author:** ![johanon](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johanon/32/3335_2.png) [@johanon](https://discourse.nodered.org/u/johanon)\
**Post date:** [23 August 2019 12:13 UTC](https://discourse.nodered.org/t/inject-interval-between-times/14702/6 "2019-08-23T12:13:10Z")

</div>

As mentioned above seconds faster than me

---

<div class="post-metadata">

**Author:** ![dtuiot](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@dtuiot](https://discourse.nodered.org/u/dtuiot)\
**Post date:** [23 August 2019 13:34 UTC](https://discourse.nodered.org/t/inject-interval-between-times/14702/7 "2019-08-23T13:34:56Z")

</div>

Thanks all. Appreciate all the help. We used the delay and it works perfectly!
