This flow injects the string "Hello world" into the debug tab.
[{"id":"5e433d93.f63b84","type":"inject","z":"5458c33a.6eeebc","name":"Inject the string \"Hello world\"","topic":"","payload":"Hello World","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":240,"y":140,"wires":[["46376d11.ca318c"]]},{"id":"46376d11.ca318c","type":"debug","z":"5458c33a.6eeebc","name":"Output to debug tab","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":500,"y":140,"wires":[]}]
Copy the whole json object to the clipboard, then from the menu (hamburger, top right) select Import
then Clipboard
and paste in. Place it, deploy it, then click the left touch point on the inject node.
The screenshot is from my desktop PC, but NodeRed itself is running on a Raspberry Pi 1 B, as installed in vanilla Raspbian desktop.
To recreate yourself, do the following:
- Drag an
Inject
node to the main flow.
- Double click it to edit. Change the
Payload
dropdown to the type string
, then type Hello world
in the Payload
box. Click Done
.
- Drag a
Debug
node to the main flow.
- Click and drag a wire from the output of the
Inject
node to the input of the Debug
node.
- Click
Deploy
in the top right of the window.
- Click the touch point on the left of the
Inject
node to write Hello World
in the debug tab (you may need to click on the Debug
tab if it is not selected).