# Help needed for create a delay in a node

**URL:** <https://discourse.nodered.org/t/help-needed-for-create-a-delay-in-a-node/95319>\
**Category:** General\
**Created:** [11 February 2025 11:16 UTC](https://discourse.nodered.org/t/help-needed-for-create-a-delay-in-a-node/95319 "2025-02-11T11:16:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![schnre](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@schnre](https://discourse.nodered.org/u/schnre)\
**Post date:** [11 February 2025 11:16 UTC](https://discourse.nodered.org/t/help-needed-for-create-a-delay-in-a-node/95319/1 "2025-02-11T11:16:27Z")

</div>

I'm new and i need to create a node that send some msg and create a delay of 5 second so when i start the node it need to wait 5 seconds and then send a msg and so on

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 February 2025 11:30 UTC](https://discourse.nodered.org/t/help-needed-for-create-a-delay-in-a-node/95319/2 "2025-02-11T11:30:49Z")

</div>

Is this devoloping a node or creating a flow?

---

<div class="post-metadata">

**Author:** ![schnre](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@schnre](https://discourse.nodered.org/u/schnre)\
**Post date:** [11 February 2025 11:32 UTC](https://discourse.nodered.org/t/help-needed-for-create-a-delay-in-a-node/95319/3 "2025-02-11T11:32:19Z")

</div>

ig is to create a flow.. it's mt first day on nodered

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 February 2025 11:34 UTC](https://discourse.nodered.org/t/help-needed-for-create-a-delay-in-a-node/95319/4 "2025-02-11T11:34:24Z")

</div>

Take a look at the delay node or inject node can have a delay after deploy or restart, Please supply a example flow if you have further issues.

[How to import/export a flow](https://nodered.org/docs/user-guide/editor/workspace/import-export)

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

[moved topic to general]

---

<div class="post-metadata">

**Author:** ![schnre](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@schnre](https://discourse.nodered.org/u/schnre)\
**Post date:** [11 February 2025 11:38 UTC](https://discourse.nodered.org/t/help-needed-for-create-a-delay-in-a-node/95319/5 "2025-02-11T11:38:49Z")

</div>

the fact is that is like fro school.. and iidk how to explain with precision.. but it's thx for the moment i'll try to figure it out

---

<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:** [11 February 2025 12:03 UTC](https://discourse.nodered.org/t/help-needed-for-create-a-delay-in-a-node/95319/6 "2025-02-11T12:03:19Z")

</div>

Also I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

And if you are going to develop a dashboard to show run time data (charts, gauges, text displays and so on) then see [Getting Started | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/getting-started.html) for docs and links to video tutorials for Dashboard 2.0 (`@flowfuse/node-red-dashboard`)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [11 February 2025 12:17 UTC](https://discourse.nodered.org/t/help-needed-for-create-a-delay-in-a-node/95319/7 "2025-02-11T12:17:13Z")

</div>

Welcome to the forum @schnre.

Do you want to send a message every 5 seconds, forever? The inject node has an option for this:

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

If you need a delay of 5 seconds before the first message, take a look at the delay node:

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

If you need to interrupt the continuous output of messages it is a bit more complicated, but still perfectly doable.

---

<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:** [25 February 2025 12:18 UTC](https://discourse.nodered.org/t/help-needed-for-create-a-delay-in-a-node/95319/8 "2025-02-25T12:18:00Z")

</div>

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