64x32 LED panel

This flow, along with small python daemon enables control of 64x32 LED panels over MQTT.

Flow

Everything you need is Raspberry Pi, HUB-75 adapter and RGB LED panel.

LED panel with Raspberry Pi

Check Kurokesu blog for more details, setup info and python script.

[{"id":"1fa87483.b31adb","type":"mqtt out","z":"48807c1d.6db04c","name":"","topic":"ledpanel/1","qos":"","retain":"","broker":"5252913.f77dff","x":1004.88330078125,"y":180.88333129882812,"wires":[]},{"id":"6cbafc93.dc906c","type":"inject","z":"48807c1d.6db04c","name":"","topic":"text","payload":"--:--","payloadType":"str","repeat":"","crontab":"","once":false,"x":564.88330078125,"y":237.88333129882812,"wires":[["b5190bb3.c7181"]]},{"id":"b5190bb3.c7181","type":"function","z":"48807c1d.6db04c","name":"CLOCK","func":"var ret = {};\n\nret[\"text\"] = msg.payload;\n\nret[\"x\"] = 5;\nret[\"y\"] = 1;\n\nret[\"red\"] = 100;\nret[\"green\"] = 100;\nret[\"blue\"] = 100;\n\nret[\"font\"] = 19;\n\nret[\"function\"] = \"set_text\";\n\nmsg.payload = ret;\n//msg.topic = \"set_text\";\n\n\nreturn msg;\n","outputs":1,"noerr":0,"x":793.88330078125,"y":238.88333129882812,"wires":[["1fa87483.b31adb"]]},{"id":"33e7699a.52912e","type":"inject","z":"48807c1d.6db04c","name":"CLEAR","topic":"","payload":"TEST123 ","payloadType":"str","repeat":"","crontab":"","once":false,"x":639.88330078125,"y":106.88333129882812,"wires":[["abd7dc51.9b6068"]]},{"id":"abd7dc51.9b6068","type":"function","z":"48807c1d.6db04c","name":"CLEAR","func":"var ret = {};\n\nret[\"red\"] = 0;\nret[\"green\"] = 0;\nret[\"blue\"] = 0;\n\nret[\"function\"] = \"clear\";\n\nmsg.payload = ret;\n\nreturn msg;\n","outputs":1,"noerr":0,"x":789.88330078125,"y":111.88333129882812,"wires":[["1fa87483.b31adb"]]},{"id":"de7eba35.0d97c","type":"function","z":"48807c1d.6db04c","name":"TEMPER","func":"var ret = {};\n\nret[\"text\"] = msg.payload+\"  \";\n\nret[\"x\"] = 1;\nret[\"y\"] = 24;\n\nret[\"red\"] = 30;\nret[\"green\"] = 30;\nret[\"blue\"] = 30;\n\nret[\"font\"] = 13;\n\nret[\"function\"] = \"set_text\";\n\nmsg.payload = ret;\n//msg.topic = \"set_text\";\n\n\nreturn msg;\n","outputs":1,"noerr":0,"x":742.88330078125,"y":398.8833312988281,"wires":[["1fa87483.b31adb"]]},{"id":"c074145a.2b11e8","type":"function","z":"48807c1d.6db04c","name":"Timestamp to HH:MM","func":"//msg.timestamp= new Date().toISOString()\n\nvar now     = new Date(); \nvar year    = now.getFullYear();\nvar month   = now.getMonth()+1; \nvar day     = now.getDate();\nvar hour    = now.getHours();\nvar minute  = now.getMinutes();\nvar second  = now.getSeconds(); \n\nif(month.toString().length == 1) {\n    var month = '0'+month;\n}\n\nif(day.toString().length == 1) {\n    var day = '0'+day;\n}   \n\nif(hour.toString().length == 1) {\n    var hour = '0'+hour;\n}\n\nif(minute.toString().length == 1) {\n    var minute = '0'+minute;\n}\n\nif(second.toString().length == 1) {\n    var second = '0'+second;\n}   \n\n//msg.timestamp = year+'-'+month+'-'+day+' '+hour+':'+minute+':'+second;\nmsg.payload = hour+':'+minute;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":575.8833312988281,"y":179.88333129882812,"wires":[["b5190bb3.c7181"]]},{"id":"4cb27606.e94b2","type":"inject","z":"48807c1d.6db04c","name":"Time","topic":"text","payload":"","payloadType":"str","repeat":"1","crontab":"","once":false,"x":388.7666320800781,"y":179.01666259765625,"wires":[["c074145a.2b11e8"]]},{"id":"6064ceae.493248","type":"mqtt in","z":"48807c1d.6db04c","name":"TE923 / TC","topic":"sensors/namai/te923/TC","qos":"2","broker":"5252913.f77dff","x":533.9999389648438,"y":345.1832580566406,"wires":[["de7eba35.0d97c"]]},{"id":"4247a366.78dbb4","type":"inject","z":"48807c1d.6db04c","name":"","topic":"text","payload":"--.-","payloadType":"str","repeat":"","crontab":"","once":false,"x":511.8833312988281,"y":402.8833312988281,"wires":[["de7eba35.0d97c"]]},{"id":"5252913.f77dff","type":"mqtt-broker","z":"","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]
Lukse

Flow Info

created 3 months, 3 weeks ago

Node Types

Core
  • function (x4)
  • inject (x4)
  • mqtt in (x1)
  • mqtt out (x1)
  • mqtt-broker (x1)

Tags

  • 64x32
  • LED
  • panel
  • RGB
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option