We would like to bring you closer to working with Node-RED here. Watch the video opposite or read the description on this page, in which we give an overview of the areas of the editor and explain the sample flow preinstalled on rule.box step by step.
What is needed:
What is explained:
- Orientation in the Node-RED Editor - the nodes
- Orientation in the Node-RED Editor - the work surface
- Orientation in the Node-RED Editor - the info column
- Creation of the sample flow
- You can access the Node-RED Editor via the corresponding link on the overview page of your rule.box.
- In the left area of the editor you will find a list of installed nodes, the so-called nodes. These are divided into categories according to their functions.
- If you move the mouse over a node, you will see a brief description of the function of the node.
- To use a knot, simply drag and drop it onto your workspace.
- Double-click the nodes to configure them. The text in the "Name" field names and identifies the node on the work surface. Additional information that the node can send can be stored under "Topic".
- Depending on the type of node, many other properties can be configured.
- The working area is in the middle of the Node-RED editor, on which you create your flows.
- New flows can be added using the plus symbol at the top right corner of the work area.
- With the list symbol to the right you can see an overview of the available flows.
- The information column on the right shows you information about the elements you have selected, depending on the work step.
- You will also find two more symbols in the information column.
- The debug output can indicate possible errors or problems.
- You will also find an overview of the layout of your dashboard. If you want to use visualization elements for your flow, you can specify here how and where your flow should be displayed in the dashboard.
- A flow is already set up on the rule.box ex works, which uses a web thermometer to display the outside temperature at the W&T company building in Wuppertal on the dashboard.
- For this, the nodes "Analog IN", "gauge", "chart" and "text" required for this application were first added to the work area and configured accordingly below.
- The output of the "Analog IN" node was connected to the inputs of the "gauge" and "chart" nodes to enable the temperature to be correctly displayed on the dashboard.
- With deploy , created flows are confirmed and implemented.
- You can also access the dashboard from the overview page of your rule.box. The current temperature can now be read there.