Lesson 2. Show PLC inputs on a dashboard
#2 How to visualize inputs
In the previous chapters we have seen how to install Node-RED in our computer and a useful Arduino code using Industrial Shields units. This code will be related during the entire course and we will be interacting with it to debug our own programs.
So, in the chapter #2, we will step forward and we will see how to visualize the input values of our M-Duino into a Dashboard.
The first step is to install the stable version of Node-RED-Dashboards API. Once Node-RED is rightly installed, go to the .node-red directory by typing the following command in a terminal window:
cd .node-red/
And then, install the node-red-dashboard nodes:
npm install node-red-dashboard
Note (2026): this course uses Node-RED Dashboard 1.x (node-red-dashboard). It has been deprecated since 2024, but it still installs and runs on Node-RED 4, and the flows of this course need it. For new projects, use its successor, FlowFuse Dashboard 2.0 (@flowfuse/node-red-dashboard). You can also install either of them from the editor: Menu > Manage palette > Install. If you want more information about Node-RED Dashboard, see the following link:
Running Node-RED
Once Node-RED-Dashboard is installed we can proceed to start our first application.
First of all, run the following command in order to execute Node-RED:
node-red

Open up a browser and go to:
localhost:1880/
You will see the Node-RED user interface where we will be able to develop, debug and modify our programs.
On the left side, we have a section with all the nodes by default and the downloaded ones. If you click on a node, you will see that in the right side is shown some help documentation that will be very useful to understand the node.

Eclipse Mosquitto Broker
In this course we will be working with Eclipse Mosquitto, an open-source message broker that implements the MQTT protocol. After we have installed the Node-RED application, we will proceed to download the Mosquitto broker.
Download the Mosquitto installer for your OS from the official website. On Debian, Ubuntu or Raspberry Pi OS: sudo apt install mosquitto mosquitto-clients
While Node-RED will be running using the port 1880, the MQTT protocol will use the 1883. In order to run a connection, we will have to open a new terminal, go to the Mosquitto directory and execute the broker using the following command:
mosquitto
This command will start the broker on the default MQTT port, 1883. Important: since Mosquitto 2.0 the broker only accepts local connections by default. For the PLC to connect, create a mosquitto.conf file with the lines listener 1883 and allow_anonymous true (test networks only) and start the broker with mosquitto -c mosquitto.conf. Now we are ready to start programming our first application.
Note In order to make sure about a right installation, follow the next Blog post
Creating our first program
Finally our first steps creating our program:
Take one MQTT input block.
This module will be our MQTT input message from the MQTT broker. Make a double click and change the topic for "I". This change will relate the input block with all the messages that we receive through topic "I". Actually the node has subscribed to "I".
Moreover we must change the server. You will see that you don't have any server created. Create a new server, named and configured as follows. These will be the IP address and the port where the MQTT broker is placed. Take a look at the next picture. We have named the server "Localhost broker".

Our MQTT subscription is set properly.
From this node, we will receive a JSON string with the following structure:
"{"zone" = 0, "index" = 0 , "value" = 0 }"
Working with string it's not practical. For this reason, we have to convert this string to a JavaScript object. Node-RED has one block dedicated to do this job. This node is named json and we can find it in the function nodes. Double click to this node. Change the action to "Always convert to JavaScript Object''. Now, to the output of this message, we will have the JavaScript object and will be very easy to organize our program.

After converting the message from the MQTT "I" topic to a JavaScript, we are ready to analyze the object and divide it into different zones and indexes. In this course we will just see an example of the M-Duino 21+. We will have the following input structure.
Zone 0
- Index 0 = I0_0
- Index 1 = I0_1
- Index 2 = I0_2
- Index 3 = I0_3
- Index 4 = I0_4
- Index 5 = I0_5
- Index 6 = I0_6
- Index 7 = I0_7
- Index 8 = I0_8
- Index 9 = I0_9
- Index 10 = I0_10
- Index 11 = I0_11
- Index 12 = I0_12
Zone 1
M-Duino 42+, M-Duino 38R, M-Duino 38AR+…
Zone 2
(M-Duino 57R+, M-Duino 58+…)
Take a look at the M-Duino 21+ inputs, and you will see that from I0_7 to I0_12 are analog inputs. In fact, the values will be representative in a different way, because one is digital and the other will be analog (from 0 to 1023). But we will see it later.

The first split to the object will be the zone.
Node-RED has a node named switch that will be very useful to divide the information and direct it to where we want. So, to filter the zone we will add the switch and with double click we will change the configuration.
Add two new conditions. And configured as the following picture. Adding payload.zone we will indicate with part of the object the switch will have to look on in order to classify the message.

After the first zone switch, we will proceed to do the same for the index.

Before placing the final nodes so as to display the values to the dashboard, we need to create some groups.
At the right side, we have the three different tabs. One to see the debug messages, another for information and another one for the distribution of our dashboard.
In the Layout side, we have distributed the space in three groups, digital inputs and two for analog inputs. When we create the proper dashboard nodes we will decide where to place these nodes on our dashboard. Apart from that, there are other configurations in site and theme tabs that will give a customized look to our dashboard.
So, after analyzing and dividing the full message, now we just need to show in our dashboard the real and updated value. In fact, we just need to connect the switch node for digital inputs and the gauge node for the analog inputs, you may find these nodes in the dashboard group on the left side.
Node-RED also has options like a chart for analog signals. Take a look at the following pictures to have a better understanding.



Finally we have our logic programmed and we just need to customize our dashboard. Configure the Layout, Site and Theme to give your desired look to your dashboard. For example, take a look at the following pictures.



Finally, the work is done. With the purpose to test our new program, we will have the Mosquitto MQTT broker in our computer and connect the M-Duino to the same network. Next, it is shown a picture of how the dashboard will be displayed.

Besides, you have a video example of how you will see the dashboard in real time while the input values are changing.
Now, import the Node-RED flows.json to your flow to be able to develop your own application!
[{"id":"59562e307ff66eec","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"18eca158.c30bef","type":"ui_spacer","name":"spacer","group":"","order":3,"width":3,"height":1},{"id":"66b1ac62.f204c4","type":"ui_spacer","name":"spacer","group":"","order":5,"width":2,"height":1},{"id":"57e7a054.1d3d","type":"ui_spacer","name":"spacer","group":"","order":6,"width":1,"height":1},{"id":"3d2f0a19.b50e16","type":"ui_spacer","name":"spacer","group":"","order":7,"width":3,"height":1},{"id":"2818fa86.78b246","type":"ui_spacer","name":"spacer","group":"","order":8,"width":2,"height":1},{"id":"b7071d44.aac77","type":"ui_spacer","name":"spacer","group":"","order":9,"width":14,"height":1},{"id":"76d851d4.191b1","type":"ui_spacer","name":"spacer","group":"","order":10,"width":1,"height":1},{"id":"2b8a21d5.7e913e","type":"ui_spacer","name":"spacer","group":"","order":12,"width":1,"height":1},{"id":"8ff507a5.bebcf8","type":"ui_spacer","name":"spacer","group":"","order":13,"width":1,"height":1},{"id":"4e0db42.3a7d74c","type":"ui_spacer","name":"spacer","group":"","order":14,"width":1,"height":1},{"id":"6ef46fcc.54f8d","type":"ui_spacer","name":"spacer","group":"","order":15,"width":14,"height":1},{"id":"ff69b32a.fafbb","type":"ui_spacer","name":"spacer","group":"","order":16,"width":1,"height":1},{"id":"a4c5a26b.0ba75","type":"ui_spacer","name":"spacer","group":"","order":18,"width":1,"height":1},{"id":"aba323e0.729b9","type":"ui_spacer","name":"spacer","group":"","order":19,"width":1,"height":1},{"id":"caa68f8b.b56ca","type":"ui_spacer","name":"spacer","group":"","order":20,"width":1,"height":1},{"id":"a9e2309bbb6821ba","type":"ui_spacer","name":"spacer","group":"","order":2,"width":1,"height":1},{"id":"21ea384a01fa887e","type":"ui_spacer","name":"spacer","group":"","order":3,"width":1,"height":1},{"id":"d5d81a9f0d428697","type":"ui_spacer","name":"spacer","group":"","order":4,"width":1,"height":1},{"id":"da4a771ac31dcf3d","type":"ui_spacer","name":"spacer","group":"","order":5,"width":1,"height":1},{"id":"fe4d904b8bb40878","type":"ui_spacer","name":"spacer","group":"","order":6,"width":1,"height":1},{"id":"6b3d8da4e9a96852","type":"ui_spacer","name":"spacer","group":"","order":7,"width":1,"height":1},{"id":"74821225a7ca51ca","type":"ui_spacer","name":"spacer","group":"","order":8,"width":1,"height":1},{"id":"e91dbd2767a763f6","type":"ui_spacer","name":"spacer","group":"","order":9,"width":1,"height":1},{"id":"93d3502802dcc1a4","type":"ui_spacer","name":"spacer","group":"","order":7,"width":2,"height":1},{"id":"9fc8c3278ee9b9c1","type":"ui_spacer","name":"spacer","group":"","order":10,"width":1,"height":1},{"id":"f774fbfaae54eb0e","type":"ui_spacer","name":"spacer","group":"","order":12,"width":10,"height":1},{"id":"08e6b009b586964d","type":"ui_spacer","name":"spacer","group":"","order":17,"width":1,"height":1},{"id":"b6232aa234a57cb1","type":"ui_spacer","name":"spacer","group":"","order":20,"width":1,"height":1},{"id":"a60378ac9f87fc5e","type":"ui_spacer","name":"spacer","group":"","order":8,"width":1,"height":1},{"id":"260c6340f6f14ad3","type":"ui_spacer","name":"spacer","group":"","order":12,"width":9,"height":1},{"id":"2b980305848cfeef","type":"ui_spacer","name":"spacer","group":"","order":19,"width":1,"height":1},{"id":"22a9f72987124d95","type":"ui_spacer","name":"spacer","group":"","order":5,"width":5,"height":1},{"id":"5e9d977e96083094","type":"ui_spacer","name":"spacer","group":"","order":9,"width":9,"height":1},{"id":"9110a4597689ae8b","type":"ui_spacer","name":"spacer","group":"","order":10,"width":9,"height":1},{"id":"459ab95d2d2a5ddb","type":"ui_spacer","name":"spacer","group":"","order":11,"width":9,"height":1},{"id":"90e1410acc8c38b9","type":"ui_spacer","name":"spacer","group":"","order":16,"width":5,"height":1},{"id":"7ad2d307c987a7df","type":"ui_spacer","name":"spacer","group":"","order":18,"width":2,"height":1},{"id":"e5e9feb0763ec81e","type":"ui_spacer","name":"spacer","group":"","order":20,"width":1,"height":1},{"id":"093ef67678864b13","type":"ui_spacer","name":"spacer","group":"","order":1,"width":6,"height":1},{"id":"b94afa82cf8ecc1f","type":"ui_spacer","name":"spacer","group":"","order":3,"width":6,"height":1},{"id":"faf9e9fde02df27d","type":"ui_spacer","name":"spacer","group":"","order":4,"width":2,"height":1},{"id":"a8cbdcf68248d1b9","type":"ui_spacer","name":"spacer","group":"","order":6,"width":2,"height":1},{"id":"1dfce3d8addd0131","type":"ui_spacer","name":"spacer","group":"","order":7,"width":2,"height":1},{"id":"add5f326020a30a1","type":"ui_spacer","name":"spacer","group":"","order":8,"width":2,"height":1},{"id":"0c6c63f5118690bf","type":"ui_spacer","name":"spacer","group":"","order":9,"width":2,"height":1},{"id":"73f373a14ff151ec","type":"ui_spacer","name":"spacer","group":"","order":11,"width":2,"height":1},{"id":"ce026db7ddc0b2d0","type":"ui_spacer","name":"spacer","group":"","order":13,"width":2,"height":1},{"id":"f8b17415c15a6072","type":"ui_spacer","name":"spacer","group":"","order":15,"width":2,"height":1},{"id":"8f4603f38cd344ad","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":2,"width":1,"height":1},{"id":"562468767aea6755","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":4,"width":2,"height":1},{"id":"6a6113cdfd6d877e","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":6,"width":2,"height":1},{"id":"4d89a801118d61ef","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":7,"width":2,"height":1},{"id":"72e7fd9dec97d5ce","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":8,"width":2,"height":1},{"id":"4a4b3e4669027be4","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":9,"width":2,"height":1},{"id":"79bd20907ddb50c4","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":10,"width":3,"height":1},{"id":"c1fed531493ab6fe","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":12,"width":3,"height":1},{"id":"3e3030c3709fe31c","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":13,"width":3,"height":1},{"id":"bf367c6bb97ffc0a","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":14,"width":3,"height":1},{"id":"79689c89c65ac453","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":15,"width":3,"height":1},{"id":"26078b1caf5a4049","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":17,"width":3,"height":1},{"id":"03d10337489964ad","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":18,"width":3,"height":1},{"id":"a3a820bc7fb53497","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":19,"width":3,"height":1},{"id":"9f9ae7141861e1c8","type":"ui_spacer","name":"spacer","group":"","order":2,"width":1,"height":1},{"id":"d9cb8337360336d6","type":"ui_spacer","name":"spacer","group":"","order":3,"width":1,"height":1},{"id":"a86c41aef3f1182e","type":"ui_spacer","name":"spacer","group":"","order":4,"width":1,"height":1},{"id":"9666ccbf2e136ba9","type":"ui_spacer","name":"spacer","group":"","order":5,"width":1,"height":1},{"id":"d6403fae75f2ce72","type":"ui_spacer","name":"spacer","group":"","order":6,"width":1,"height":1},{"id":"1577da1ad00267c8","type":"ui_spacer","name":"spacer","group":"","order":7,"width":1,"height":1},{"id":"85a6633f734a397f","type":"ui_spacer","name":"spacer","group":"","order":8,"width":1,"height":1},{"id":"6d0451543273b8e9","type":"ui_spacer","name":"spacer","group":"","order":9,"width":1,"height":1},{"id":"a096632e7e8c7fcc","type":"ui_spacer","name":"spacer","group":"","order":7,"width":2,"height":1},{"id":"01c034e071a22d06","type":"ui_spacer","name":"spacer","group":"","order":10,"width":1,"height":1},{"id":"a41773576044e9e2","type":"ui_spacer","name":"spacer","group":"","order":12,"width":10,"height":1},{"id":"38b3ea45b44de95a","type":"ui_spacer","name":"spacer","group":"","order":17,"width":1,"height":1},{"id":"4f7c5bfb900e811b","type":"ui_spacer","name":"spacer","group":"","order":20,"width":1,"height":1},{"id":"2bf13987b7d07c68","type":"ui_spacer","name":"spacer","group":"","order":8,"width":1,"height":1},{"id":"925897d6382cfc1e","type":"ui_spacer","name":"spacer","group":"","order":12,"width":9,"height":1},{"id":"f9dbd340829a20ab","type":"ui_spacer","name":"spacer","group":"","order":19,"width":1,"height":1},{"id":"84efe78acd668123","type":"ui_spacer","name":"spacer","group":"","order":5,"width":5,"height":1},{"id":"7403c4408d998eb9","type":"ui_spacer","name":"spacer","group":"","order":9,"width":9,"height":1},{"id":"a72cd60a04683869","type":"ui_spacer","name":"spacer","group":"","order":10,"width":9,"height":1},{"id":"27a841b63ebf78df","type":"ui_spacer","name":"spacer","group":"","order":11,"width":9,"height":1},{"id":"2507a7e17f059640","type":"ui_spacer","name":"spacer","group":"","order":16,"width":5,"height":1},{"id":"dd648ea2b4fc993e","type":"ui_spacer","name":"spacer","group":"","order":18,"width":2,"height":1},{"id":"f6f18b0119a0c7a8","type":"ui_spacer","name":"spacer","group":"","order":20,"width":1,"height":1},{"id":"6f20eee74019c663","type":"ui_spacer","name":"spacer","group":"","order":1,"width":6,"height":1},{"id":"7e797c689f839bd5","type":"ui_spacer","name":"spacer","group":"","order":3,"width":6,"height":1},{"id":"159875d396fd2e1d","type":"ui_spacer","name":"spacer","group":"","order":4,"width":2,"height":1},{"id":"09f15455e01dc3bd","type":"ui_spacer","name":"spacer","group":"","order":6,"width":2,"height":1},{"id":"00b530d543c6533d","type":"ui_spacer","name":"spacer","group":"","order":7,"width":2,"height":1},{"id":"9b68b46d65334e55","type":"ui_spacer","name":"spacer","group":"","order":8,"width":2,"height":1},{"id":"2b103ab7680be12c","type":"ui_spacer","name":"spacer","group":"","order":9,"width":2,"height":1},{"id":"a45e230894b860f4","type":"ui_spacer","name":"spacer","group":"","order":11,"width":2,"height":1},{"id":"d96da445e3f00f3b","type":"ui_spacer","name":"spacer","group":"","order":13,"width":2,"height":1},{"id":"8c8b1dc3d2ecd22e","type":"ui_spacer","name":"spacer","group":"","order":15,"width":2,"height":1},{"id":"ad65b0982b9515d2","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":2,"width":1,"height":1},{"id":"8572d6bead68d3fd","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":4,"width":2,"height":1},{"id":"7535d92b622832e2","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":6,"width":2,"height":1},{"id":"acc331cf74b68edf","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":7,"width":2,"height":1},{"id":"d8a017de905c275c","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":8,"width":2,"height":1},{"id":"30e75722341fe68d","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":9,"width":2,"height":1},{"id":"b1a10de362b4fc16","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":10,"width":3,"height":1},{"id":"6edfbbcaa60fa199","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":12,"width":3,"height":1},{"id":"15600e26f2233629","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":13,"width":3,"height":1},{"id":"90ddb4d963776480","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":14,"width":3,"height":1},{"id":"43c7e25f67aadcb1","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":15,"width":3,"height":1},{"id":"dd2ed8c042a0b788","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":17,"width":3,"height":1},{"id":"d3b14202340ff557","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":18,"width":3,"height":1},{"id":"da0c9031a45eeb31","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":19,"width":3,"height":1},{"id":"6902ce18c912334f","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#0094CE","edited":false},"page-titlebar-backgroundColor":{"value":"#0094CE","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#ffffff","edited":false},"group-textColor":{"value":"#1bbfff","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#0094ce","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey","palette":"light"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"69cb78e6839f91a3","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false},{"id":"209716c527117631","type":"ui_group","name":"Default","tab":"69cb78e6839f91a3","order":1,"disp":true,"width":15,"collapse":false},{"id":"2e12ad50408b6629","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":2,"width":2,"height":1},{"id":"d77509b863b729c8","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":4,"width":1,"height":1},{"id":"18be695ed5967c55","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":6,"width":3,"height":1},{"id":"373b981740836d86","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":8,"width":2,"height":1},{"id":"1e5308e58f562d65","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":9,"width":1,"height":1},{"id":"772423aebdc20413","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":10,"width":3,"height":1},{"id":"1e5cbd8cd8e6ad99","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":12,"width":12,"height":1},{"id":"b727b910bb1e3430","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":14,"width":2,"height":1},{"id":"75027ab3641a4381","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":16,"width":1,"height":1},{"id":"d1676cdfe84f36ba","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":18,"width":3,"height":1},{"id":"10db55e184df410b","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":20,"width":2,"height":1},{"id":"a5309a5f0d37759f","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":21,"width":1,"height":1},{"id":"64700c4532f7fbe2","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":22,"width":3,"height":1},{"id":"4095f8e4542183e3","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":24,"width":12,"height":1},{"id":"a4043142bd5698b0","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":26,"width":2,"height":1},{"id":"56e651c8a17c2213","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":28,"width":1,"height":1},{"id":"867236e54617149a","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":30,"width":3,"height":1},{"id":"32ce518e655427aa","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":31,"width":5,"height":1},{"id":"a24daaef7d9dbdb1","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":32,"width":1,"height":1},{"id":"190efab33c173184","type":"ui_spacer","z":"59562e307ff66eec","name":"spacer","group":"209716c527117631","order":33,"width":3,"height":1},{"id":"26a9d4e92e122474","type":"mqtt-broker","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"1d8e97c9a55b78fe","type":"json","z":"59562e307ff66eec","name":"","property":"payload","action":"obj","pretty":false,"x":230,"y":320,"wires":[["7135fd0b7743ec37"]]},{"id":"7135fd0b7743ec37","type":"switch","z":"59562e307ff66eec","name":"Zone","property":"payload.zone","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":380,"y":320,"wires":[["d521da127e6338d5"],[],[]]},{"id":"d521da127e6338d5","type":"switch","z":"59562e307ff66eec","name":"Index","property":"payload.index","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"},{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"num"},{"t":"eq","v":"8","vt":"num"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"10","vt":"str"},{"t":"eq","v":"11","vt":"str"},{"t":"eq","v":"12","vt":"str"}],"checkall":"true","repair":false,"outputs":13,"x":530,"y":320,"wires":[["ada4c0bbb4abbc20"],["11f29c02c99e85c4"],["194db21feb010a8a"],["efa999ea2113d1f8"],["73c5765350d1f7cd"],["a8b411d38989b6ab"],["c7f140cdb7fe50c2"],["d0607b8597caf627"],["35728fd1a46712f5"],["b935b236718e82c8"],["f71afad12b1b1c57"],["c334e44d3c3d6e36"],["36988fe392030def"]]},{"id":"ada4c0bbb4abbc20","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":80,"wires":[["0bd7222677977f41"]]},{"id":"11f29c02c99e85c4","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":120,"wires":[["a00018996a167831"]]},{"id":"194db21feb010a8a","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":160,"wires":[["ba365424480b52a1"]]},{"id":"efa999ea2113d1f8","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":200,"wires":[["ad14e06ef0324776"]]},{"id":"73c5765350d1f7cd","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":240,"wires":[["85ccbab828a3cdfd"]]},{"id":"a8b411d38989b6ab","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":280,"wires":[["1c3a19d19555dc77"]]},{"id":"c7f140cdb7fe50c2","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":320,"wires":[["4784a7c3e7a4b439"]]},{"id":"d0607b8597caf627","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":360,"wires":[["53f2520fccc5cf91"]]},{"id":"35728fd1a46712f5","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":400,"wires":[["d51e41369fe6c1b6"]]},{"id":"b935b236718e82c8","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":440,"wires":[["85fa3dcff3e44f1d"]]},{"id":"f71afad12b1b1c57","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":480,"wires":[["3f01be0c5dee1bf7"]]},{"id":"c334e44d3c3d6e36","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":520,"wires":[["6846156cfe334d2a"]]},{"id":"36988fe392030def","type":"change","z":"59562e307ff66eec","name":"Value","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":560,"wires":[["87d63d54bd2d8b3c"]]},{"id":"0bd7222677977f41","type":"ui_switch","z":"59562e307ff66eec","name":"","label":"I0.0","tooltip":"","group":"209716c527117631","order":1,"width":3,"height":1,"passthru":false,"decouple":"true","topic":"","topicType":"str","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":910,"y":80,"wires":[[]]},{"id":"53f2520fccc5cf91","type":"ui_gauge","z":"59562e307ff66eec","name":"","group":"209716c527117631","order":3,"width":3,"height":2,"gtype":"gage","title":"I0.7","label":"mV","format":"{{value}}","min":0,"max":"1023","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":910,"y":360,"wires":[]},{"id":"a00018996a167831","type":"ui_switch","z":"59562e307ff66eec","name":"","label":"I0.1","tooltip":"","group":"209716c527117631","order":7,"width":3,"height":1,"passthru":false,"decouple":"true","topic":"","topicType":"str","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":910,"y":120,"wires":[[]]},{"id":"ba365424480b52a1","type":"ui_switch","z":"59562e307ff66eec","name":"","label":"I0.2","tooltip":"","group":"209716c527117631","order":11,"width":3,"height":1,"passthru":false,"decouple":"true","topic":"","topicType":"str","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":910,"y":160,"wires":[[]]},{"id":"ad14e06ef0324776","type":"ui_switch","z":"59562e307ff66eec","name":"","label":"I0.3","tooltip":"","group":"209716c527117631","order":13,"width":3,"height":1,"passthru":false,"decouple":"true","topic":"","topicType":"str","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":910,"y":200,"wires":[[]]},{"id":"85ccbab828a3cdfd","type":"ui_switch","z":"59562e307ff66eec","name":"","label":"I0.4","tooltip":"","group":"209716c527117631","order":19,"width":3,"height":1,"passthru":false,"decouple":"true","topic":"","topicType":"str","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":910,"y":240,"wires":[[]]},{"id":"1c3a19d19555dc77","type":"ui_switch","z":"59562e307ff66eec","name":"","label":"I0.5","tooltip":"","group":"209716c527117631","order":23,"width":3,"height":1,"passthru":false,"decouple":"true","topic":"","topicType":"str","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":910,"y":280,"wires":[[]]},{"id":"4784a7c3e7a4b439","type":"ui_switch","z":"59562e307ff66eec","name":"","label":"I0.6","tooltip":"","group":"209716c527117631","order":25,"width":3,"height":1,"passthru":false,"decouple":"true","topic":"","topicType":"str","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","animate":false,"x":910,"y":320,"wires":[[]]},{"id":"d51e41369fe6c1b6","type":"ui_gauge","z":"59562e307ff66eec","name":"","group":"209716c527117631","order":5,"width":3,"height":2,"gtype":"gage","title":"I0.8","label":"mV","format":"{{value}}","min":0,"max":"1023","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":910,"y":400,"wires":[]},{"id":"85fa3dcff3e44f1d","type":"ui_gauge","z":"59562e307ff66eec","name":"","group":"209716c527117631","order":15,"width":3,"height":2,"gtype":"gage","title":"I0.9","label":"mV","format":"{{value}}","min":0,"max":"1023","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":910,"y":440,"wires":[]},{"id":"3f01be0c5dee1bf7","type":"ui_gauge","z":"59562e307ff66eec","name":"","group":"209716c527117631","order":17,"width":3,"height":2,"gtype":"gage","title":"I0.10","label":"mV","format":"{{value}}","min":0,"max":"1023","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":910,"y":480,"wires":[]},{"id":"6846156cfe334d2a","type":"ui_gauge","z":"59562e307ff66eec","name":"","group":"209716c527117631","order":27,"width":3,"height":2,"gtype":"gage","title":"I0.11","label":"mV","format":"{{value}}","min":0,"max":"1023","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":910,"y":520,"wires":[]},{"id":"87d63d54bd2d8b3c","type":"ui_gauge","z":"59562e307ff66eec","name":"","group":"209716c527117631","order":29,"width":3,"height":2,"gtype":"gage","title":"I0.12","label":"mV","format":"{{value}}","min":0,"max":"1023","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":910,"y":560,"wires":[]},{"id":"ddedcf27ae8f711a","type":"mqtt in","z":"59562e307ff66eec","name":"","topic":"I","qos":"2","datatype":"auto","broker":"26a9d4e92e122474","nl":false,"rap":true,"rh":0,"x":90,"y":320,"wires":[["1d8e97c9a55b78fe"]]}]
Commenting is not enabled on this course.