I am using a node-red-contrib-ui-led
to show status of 20 different devices.
With this function I can get all devices' name and status:
const devices = global.get("devices","myStore")
for (var x in devices){
msg.label = devices[x].name
msg.payload = devices[x].status == 'Online' ? true : false
node.send(msg)
}
node.done()
How can I deploy all the ui-led gadgets in a loop, without having to put them one-by-one on the flow?