Help needed for create a delay in a node

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

Is this devoloping a node or creating a flow?

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

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

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 ```)

``` 
   code goes here 
```

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

See this post for more details - How to share code or flow json

[moved topic to general]

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

Also I recommend watching this playlist: Node-RED Essentials. 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 for docs and links to video tutorials for Dashboard 2.0 (@flowfuse/node-red-dashboard)

1 Like

Welcome to the forum @schnre.

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

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

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

1 Like