# Changing msg send interval

**URL:** <https://discourse.nodered.org/t/changing-msg-send-interval/2632>\
**Category:** General\
**Created:** [28 August 2018 11:32 UTC](https://discourse.nodered.org/t/changing-msg-send-interval/2632 "2018-08-28T11:32:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruyal](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@Ruyal](https://discourse.nodered.org/u/Ruyal)\
**Post date:** [28 August 2018 11:32 UTC](https://discourse.nodered.org/t/changing-msg-send-interval/2632/1 "2018-08-28T11:32:52Z")

</div>

Hi! Currently I'm using the inject node, but there doesn't seem to be a way to change the send interval without redeploying. Does anyone know a way I can achieve this? Thanks!

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [28 August 2018 11:51 UTC](https://discourse.nodered.org/t/changing-msg-send-interval/2632/2 "2018-08-28T11:51:07Z")

</div>

This sort of thing might work for you

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

`[{"id":"bc53eb8f.8f3998","type":"inject","z":"ef9a8c2f.8ad12","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":120,"wires":[["b58bdbc6.41a778"]]},{"id":"b58bdbc6.41a778","type":"change","z":"ef9a8c2f.8ad12","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"delay","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":120,"wires":[["f04dee82.c227e","83ef79a.0a76288"]]},{"id":"f04dee82.c227e","type":"delay","z":"ef9a8c2f.8ad12","name":"","pauseType":"delayv","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":380,"y":220,"wires":[["b58bdbc6.41a778"]]},{"id":"dc02ead5.33d7d8","type":"change","z":"ef9a8c2f.8ad12","name":"","rules":[{"t":"set","p":"delay","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":340,"wires":[[]]},{"id":"9e98993c.ea0e68","type":"inject","z":"ef9a8c2f.8ad12","name":"","topic":"","payload":"1000","payloadType":"num","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":110,"y":280,"wires":[["dc02ead5.33d7d8"]]},{"id":"1a38a48c.c4ddeb","type":"inject","z":"ef9a8c2f.8ad12","name":"","topic":"","payload":"2000","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":340,"wires":[["dc02ead5.33d7d8"]]},{"id":"83ef79a.0a76288","type":"debug","z":"ef9a8c2f.8ad12","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":650,"y":120,"wires":[]},{"id":"6cad0543.5f29fc","type":"inject","z":"ef9a8c2f.8ad12","name":"","topic":"","payload":"5000","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":400,"wires":[["dc02ead5.33d7d8"]]}]`

Simon

---

<div class="post-metadata">

**Author:** ![natanel](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@natanel](https://discourse.nodered.org/u/natanel)\
**Post date:** [28 August 2018 11:52 UTC](https://discourse.nodered.org/t/changing-msg-send-interval/2632/3 "2018-08-28T11:52:14Z")

</div>

Hi  
had the same issue, got this from Colin  
modified it to work

 ![every](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/ff806b0a0eb6d4c663c9e202160c948e39adf032.jpeg)

look and change this for your usage ( fill free to ask)  
[every.txt](https://discourse.nodered.org/uploads/short-url/fv9ZXPjbDdkJPvFYNpzZepnKbtm.txt) (3.2 KB)

---

<div class="post-metadata">

**Author:** ![Ruyal](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@Ruyal](https://discourse.nodered.org/u/Ruyal)\
**Post date:** [28 August 2018 12:08 UTC](https://discourse.nodered.org/t/changing-msg-send-interval/2632/4 "2018-08-28T12:08:19Z")

</div>

Many thanks! Both seem like great solutions.
