īefore we look a how the chart node works, let’s configure the inject node to send a timestamp every 5 seconds by setting the payload to timestamp and the repeat field to an interval of 5 seconds. For that you’ll need an inject node to repeatedly fire every few seconds, a function node to generate the random number and one of the node-red-dashboard nodes – in this case the chart node. To start, let’s wire up a simple flow that sends a random number between 0 and 99 to a simple chart. Sign up for a free account at FRED. You can use this tutorial with a vanilla N0de-RED, eg on a Pi, but make sure you are accessing the correct URL for the dashboard (and not the FRED specific one). We use a cloud hosted version of Node-RED for these tutorials called FRED. ![]() ![]() ![]() We’ll be building on a previous example in our lecture series ( Example 7.2 in lecture 7)Īs discussed in that lecture, let’s set up a simple flow to generate a random number and display it on a chart. This simple tutorial explains how to display multiple lines on a Node-RED chart. Showing multiple lines on a single chart in Node-RED
0 Comments
Leave a Reply. |