LCD+280+INA219+relay+CPU temp

LCD show internal temperature of procesor of PI,280 for envairement,INA219 read voltage,USB relay

[{"id":"d30c63974f502169","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"9949c4713301ee6b","type":"ui_button","z":"d30c63974f502169","name":"","group":"5a65494b2265250c","order":1,"width":"2","height":"2","passthru":false,"label":"ON","tooltip":"","color":"white","bgcolor":"#550000","className":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":890,"y":1060,"wires":[["dd5b5215b0876847","299c920f75323273"]]},{"id":"169d77de066556ad","type":"ui_button","z":"d30c63974f502169","name":"","group":"5a65494b2265250c","order":2,"width":"2","height":"2","passthru":false,"label":"OFF","tooltip":"","color":"","bgcolor":"#000050","className":"","icon":"","payload":"false","payloadType":"bool","topic":"topic","topicType":"msg","x":890,"y":1200,"wires":[["dd5b5215b0876847","299c920f75323273"]]},{"id":"dd5b5215b0876847","type":"usb relay","z":"d30c63974f502169","name":"","usbrelayport":"QAAMZ_0","x":1080,"y":1140,"wires":[]},{"id":"14950533065cbe89","type":"usb relay","z":"d30c63974f502169","name":"","usbrelayport":"QAAMZ_1","x":340,"y":160,"wires":[]},{"id":"21eaf31a0709bc4e","type":"ui_button","z":"d30c63974f502169","name":"","group":"adb0ceb9f1339288","order":1,"width":0,"height":0,"passthru":false,"label":"ON Releu 2","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":150,"y":140,"wires":[["14950533065cbe89","d7f0978db71f37be"]]},{"id":"5d5f520835138670","type":"ui_button","z":"d30c63974f502169","name":"","group":"adb0ceb9f1339288","order":2,"width":0,"height":0,"passthru":false,"label":"OFF Relu 2","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"false","payloadType":"bool","topic":"topic","topicType":"msg","x":150,"y":200,"wires":[["14950533065cbe89","d7f0978db71f37be"]]},{"id":"0ba1d9dc6bb41754","type":"ui_switch","z":"d30c63974f502169","name":"","label":"LED - Pin 37","tooltip":"","group":"ef2d9c10c18f1197","order":9,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"className":"","x":150,"y":340,"wires":[["6b97e7707fabbeeb"]]},{"id":"6b97e7707fabbeeb","type":"rpi-gpio out","z":"d30c63974f502169","name":"","pin":"26","set":"","level":"0","freq":"","out":"out","bcm":true,"x":340,"y":340,"wires":[]},{"id":"d7f0978db71f37be","type":"ui_text","z":"d30c63974f502169","group":"adb0ceb9f1339288","order":3,"width":0,"height":0,"name":"","label":"Status R2","format":"{{msg.payload}}","layout":"row-spread","className":"","x":700,"y":160,"wires":[]},{"id":"604bd8f0534dcf58","type":"inject","z":"d30c63974f502169","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":150,"y":560,"wires":[["9a223440e826e325","e366584601dbf24b"]]},{"id":"54ab500dd3a72df3","type":"change","z":"d30c63974f502169","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.temperature_C","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":440,"wires":[["a63f8098255d99f7"]]},{"id":"08d0c78a5fa10221","type":"change","z":"d30c63974f502169","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.humidity","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":520,"wires":[["713ab69d4d87efb3"]]},{"id":"6cee98fc100a90a6","type":"change","z":"d30c63974f502169","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.pressure_hPa","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":600,"wires":[["9e53080a1ad90ebe"]]},{"id":"b61a99a582506ea0","type":"function","z":"d30c63974f502169","name":"Seconds to DD:HH:MM:SS","func":" var totalNumberOfSeconds = msg.count;\n var days = parseInt( totalNumberOfSeconds / 86400 );\n var hours = parseInt (( totalNumberOfSeconds - ( days * 86400 )) / 3600  );\n var minutes = parseInt ((totalNumberOfSeconds - ((hours * 3600)+( days * 86400 ))) / 60 );\n var seconds = parseInt(totalNumberOfSeconds - ((hours * 3600) + (minutes * 60)+( days * 86400 )));\n var result = (days < 10 ? \"0\" + days : days) + \":\" + (hours < 10 ? \"0\" + hours : hours) + \":\" + (minutes < 10 ? \"0\" + minutes : minutes) + \":\" + (seconds  < 10 ? \"0\" + seconds : seconds);\n msg.payload=result;\n return msg;","outputs":1,"noerr":0,"x":520,"y":680,"wires":[["2a9a260f9ee6863f"]]},{"id":"2a9a260f9ee6863f","type":"ui_text","z":"d30c63974f502169","group":"ef2d9c10c18f1197","order":1,"width":0,"height":0,"name":"Up-Time Node Red","label":"UpTime","format":"{{msg.payload}}","layout":"row-center","className":"","x":850,"y":680,"wires":[]},{"id":"e366584601dbf24b","type":"counter","z":"d30c63974f502169","name":"","init":"0","step":"1","lower":null,"upper":null,"mode":"increment","outputs":1,"x":285,"y":677,"wires":[["b61a99a582506ea0"]]},{"id":"299c920f75323273","type":"ui_text","z":"d30c63974f502169","group":"5a65494b2265250c","order":2,"width":0,"height":0,"name":"","label":"Status R1","format":"{{msg.payload}}","layout":"row-spread","className":"","x":1420,"y":1140,"wires":[]},{"id":"9a223440e826e325","type":"Bme280","z":"d30c63974f502169","name":"","bus":"1","address":"0x76","topic":"bme280","extra":true,"preasure":1013.25,"x":320,"y":440,"wires":[["54ab500dd3a72df3","08d0c78a5fa10221","6cee98fc100a90a6"]]},{"id":"01b2ab4015f35673","type":"change","z":"d30c63974f502169","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.v","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":840,"wires":[["d2e1e33edc3cdf63"]]},{"id":"d7e10f01168ea513","type":"change","z":"d30c63974f502169","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.c","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":900,"wires":[["558a1593feb58cf5"]]},{"id":"235280826e1a619d","type":"change","z":"d30c63974f502169","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.p","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":960,"wires":[["8f62ab74f3eb9c6d"]]},{"id":"a4a09e03ae961440","type":"ui_text","z":"d30c63974f502169","group":"c0b0952a5de7a648","order":5,"width":0,"height":0,"name":"Umiditatea","label":"Umiditatea","format":"{{msg.payload}} %","layout":"row-spread","className":"","style":false,"font":"","fontSize":"","color":"#000000","x":890,"y":520,"wires":[]},{"id":"f31c018ac0a88007","type":"ui_text","z":"d30c63974f502169","group":"c0b0952a5de7a648","order":5,"width":0,"height":0,"name":"Presiunea","label":"Presiunea","format":"{{msg.payload}} hPa","layout":"row-spread","className":"","style":false,"font":"","fontSize":"","color":"#000000","x":880,"y":600,"wires":[]},{"id":"6e8862bc0a328a8f","type":"change","z":"d30c63974f502169","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.voltage","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":40,"wires":[["82ecfb06159846aa"]]},{"id":"713ab69d4d87efb3","type":"function","z":"d30c63974f502169","name":"function 3","func":"msg.payload = parseFloat(msg.payload).toFixed(1);\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":700,"y":520,"wires":[["a4a09e03ae961440"]]},{"id":"9e53080a1ad90ebe","type":"function","z":"d30c63974f502169","name":"function 4","func":"msg.payload = parseFloat(msg.payload).toFixed(1);\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":700,"y":600,"wires":[["f31c018ac0a88007"]]},{"id":"404ee6ec419f8234","type":"inject","z":"d30c63974f502169","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"0.5","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":130,"y":880,"wires":[["e1d14cd43651533a","67fe75af169dd1df"]]},{"id":"e1b40a6d7d2cd10b","type":"ui_chart","z":"d30c63974f502169","name":"","group":"c0b0952a5de7a648","order":3,"width":0,"height":0,"label":"Temperatura","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":910,"y":440,"wires":[[]]},{"id":"a63f8098255d99f7","type":"function","z":"d30c63974f502169","name":"function 5","func":"msg.payloadt = parseFloat(msg.payload).toFixed(2);\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":720,"y":440,"wires":[["e1b40a6d7d2cd10b","07b2d4c0d33f04d6"]]},{"id":"07b2d4c0d33f04d6","type":"ui_template","z":"d30c63974f502169","group":"c0b0952a5de7a648","name":"Temperatura","order":2,"width":"6","height":"6","format":"<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Canvas Gauge Example</title>\n    <!-- Include the Canvas Gauges library -->\n    <script src=\"https://cdn.rawgit.com/Mikhus/canvas-gauges/gh-pages/download/2.1.7/all/gauge.min.js\"></script>\n</head>\n\n<body>\n    <!-- Create a canvas element for the gauge -->\n    <canvas id=\"temp\" width=\"300\" height=\"300\"></canvas>\n\n    <script>\n        // Function to update gauge value\n            (function(scope){\n            scope.$watch('msg',function(msg){\n            gaugetemp.value=msg.payloadt;\n            });\n            })(scope);\n\n            // Instantiate a RadialGauge\n    var gaugetemp = new RadialGauge({\n    renderTo: 'temp',\n    width: 300,\n    height: 300,\n    units: \"°C\",\n    title: \"Temperature\",\n    minValue: -50,\n    maxValue: 50,\n    majorTicks: [\n    -50,\n    -40,\n    -30,\n    -20,\n    -10,\n    0,\n    10,\n    20,\n    30,\n    40,\n    50\n    ],\n    minorTicks: 2,\n    strokeTicks: true,\n    highlights: [\n    {\n    \"from\": -50,\n    \"to\": 0,\n    \"color\": \"rgba(0,0, 255, .3)\"\n    },\n    {\n    \"from\": 0,\n    \"to\": 50,\n    \"color\": \"rgba(255, 0, 0, .3)\"\n    }\n    ],\n    ticksAngle: 225,\n    startAngle: 67.5,\n    colorMajorTicks: \"#ddd\",\n    colorMinorTicks: \"#ddd\",\n    colorTitle: \"#eee\",\n    colorUnits: \"#ccc\",\n    colorNumbers: \"#eee\",\n    colorPlate: \"#222\",\n    borderShadowWidth: 0,\n    borders: true,\n    needleType: \"arrow\",\n    needleWidth: 2,\n    needleCircleSize: 7,\n    needleCircleOuter: true,\n    needleCircleInner: false,\n    animationDuration: 1500,\n    animationRule: \"linear\",\n    colorBorderOuter: \"#333\",\n    colorBorderOuterEnd: \"#111\",\n    colorBorderMiddle: \"#222\",\n    colorBorderMiddleEnd: \"#111\",\n    colorBorderInner: \"#111\",\n    colorBorderInnerEnd: \"#333\",\n    colorNeedleShadowDown: \"#333\",\n    colorNeedleCircleOuter: \"#333\",\n    colorNeedleCircleOuterEnd: \"#111\",\n    colorNeedleCircleInner: \"#111\",\n    colorNeedleCircleInnerEnd: \"#222\",\n    valueBoxBorderRadius: 0,\n    colorValueBoxRect: \"#222\",\n    colorValueBoxRectEnd: \"#333\"\n    })\n\n            // Render the gauge\n            gauge.draw();\n\n            // Function to handle incoming messages and update gauge\n\n                    \n                \n            \n\n    </script>\n</body>\n\n</html>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":930,"y":360,"wires":[[]]},{"id":"92e82381a5ec887b","type":"ui_template","z":"d30c63974f502169","group":"ef2d9c10c18f1197","name":"Tensiune","order":2,"width":"6","height":"6","format":"<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Canvas Gauge Example</title>\n    <!-- Include the Canvas Gauges library -->\n    <script src=\"/canvas-gauges/gauge.min.js\"></script>\n</head>\n\n<body>\n    <!-- Create a canvas element for the gauge -->\n    <canvas id=\"tens\" width=\"300\" height=\"300\"></canvas>\n\n    <script>\n        // Function to update gauge value\n            (function(scope){\n            scope.$watch('msg',function(msg){\n            gaugetens.value=msg.payload;\n            });\n            })(scope);\n\n            // Instantiate a RadialGauge\n    var gaugetens = new RadialGauge({\n    renderTo: 'tens',\n    width: 300,\n    height: 300,\n    units: \"V\",\n    title: \"Voltage\",\n    minValue: 0,\n    maxValue: 10,\n    majorTicks: [\n    0,\n    2,\n    4,\n    5,\n    6,\n    8,\n    10,\n    ],\n    minorTicks: 4,\n    strokeTicks: true,\n    highlights: [\n    {\n    \"from\": 4.5,\n    \"to\": 5.5,\n    \"color\": \"rgba(0,255, 0, .3)\"\n    },\n    {\n    \"from\": 5.5,\n    \"to\": 10,\n    \"color\": \"rgba(255, 0, 0, .3)\"\n    }\n    ],\n    ticksAngle: 225,\n    startAngle: 67.5,\n    colorMajorTicks: \"#ddd\",\n    colorMinorTicks: \"#ddd\",\n    colorTitle: \"#eee\",\n    colorUnits: \"#ccc\",\n    colorNumbers: \"#eee\",\n    colorPlate: \"#222\",\n    borderShadowWidth: 0,\n    borders: true,\n    needleType: \"arrow\",\n    needleWidth: 2,\n    needleCircleSize: 7,\n    needleCircleOuter: true,\n    needleCircleInner: false,\n    animationDuration: 1500,\n    animationRule: \"linear\",\n    colorBorderOuter: \"#333\",\n    colorBorderOuterEnd: \"#111\",\n    colorBorderMiddle: \"#222\",\n    colorBorderMiddleEnd: \"#111\",\n    colorBorderInner: \"#111\",\n    colorBorderInnerEnd: \"#333\",\n    colorNeedleShadowDown: \"#333\",\n    colorNeedleCircleOuter: \"#333\",\n    colorNeedleCircleOuterEnd: \"#111\",\n    colorNeedleCircleInner: \"#111\",\n    colorNeedleCircleInnerEnd: \"#222\",\n    valueBoxBorderRadius: 0,\n    colorValueBoxRect: \"#222\",\n    colorValueBoxRectEnd: \"#333\"\n    })\n\n            // Render the gauge\n            gauge.draw();\n\n            // Function to handle incoming messages and update gauge\n\n                \n            \n\n    </script>\n</body>\n\n</html>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":940,"y":40,"wires":[[]]},{"id":"6a6e31097aca5d44","type":"ui_gauge","z":"d30c63974f502169","name":"","group":"ef2d9c10c18f1197","order":6,"width":0,"height":0,"gtype":"gage","title":"Tensiune","label":"V","format":"{{value}}","min":0,"max":"20","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","diff":false,"className":"","x":980,"y":840,"wires":[]},{"id":"4c1b6bd7575f31f5","type":"ui_gauge","z":"d30c63974f502169","name":"","group":"ef2d9c10c18f1197","order":7,"width":0,"height":0,"gtype":"gage","title":"Curent","label":"I","format":"{{value}}","min":0,"max":"3","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","diff":false,"className":"","x":970,"y":900,"wires":[]},{"id":"57cce05da11c4f81","type":"ui_gauge","z":"d30c63974f502169","name":"","group":"ef2d9c10c18f1197","order":8,"width":0,"height":0,"gtype":"gage","title":"Putere","label":"W","format":"{{value}}","min":0,"max":"20","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","diff":false,"className":"","x":970,"y":960,"wires":[]},{"id":"819726e1a3311008","type":"ui_text","z":"d30c63974f502169","group":"c0b0952a5de7a648","order":5,"width":0,"height":0,"name":"Temp CPU","label":"CPU Temp","format":"{{msg.payload}}°C","layout":"row-spread","className":"","style":false,"font":"","fontSize":"","color":"#000000","x":330,"y":1200,"wires":[]},{"id":"67fe75af169dd1df","type":"exec","z":"d30c63974f502169","command":"vcgencmd measure_temp","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"CPU Temp","x":190,"y":1000,"wires":[["81a8d5247170f41e"],[],[]]},{"id":"81a8d5247170f41e","type":"function","z":"d30c63974f502169","name":"function 6","func":"msg.payload = msg.payload.replace(\"temp=\",\"\").replace(\"'C\\n\",\"\");\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":180,"y":1120,"wires":[["819726e1a3311008","d1621ef1c1f53776"]]},{"id":"d1621ef1c1f53776","type":"switch","z":"d30c63974f502169","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"40","vt":"num"},{"t":"lt","v":"38","vt":"num"}],"checkall":"true","repair":true,"outputs":2,"x":350,"y":1120,"wires":[["cb237d9d292d72be"],["1cfc76cd9ac5b48f"]]},{"id":"1cfc76cd9ac5b48f","type":"change","z":"d30c63974f502169","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"payload","fromt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":1140,"wires":[["dd5b5215b0876847"]]},{"id":"cb237d9d292d72be","type":"change","z":"d30c63974f502169","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"payload","fromt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":1080,"wires":[["dd5b5215b0876847"]]},{"id":"7ee31304b7afcc49","type":"inject","z":"d30c63974f502169","name":"Clock Tick","props":[{"p":"payload"}],"repeat":"1","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1110,"y":180,"wires":[["44854a98feca8cf1"]]},{"id":"44854a98feca8cf1","type":"function","z":"d30c63974f502169","name":"Format Time","func":"const now = new Date();\nconst hh = String(now.getHours()).padStart(2, '0');\nconst mm = String(now.getMinutes()).padStart(2, '0');\nconst ss = String(now.getSeconds()).padStart(2, '0');\n\nmsg.payload = `${hh}:${mm}:${ss}`;\n\nreturn msg;","outputs":1,"noerr":0,"x":1290,"y":180,"wires":[["dc1b2d7dc87d681f"]]},{"id":"fa5a739a9eea01a0","type":"inject","z":"d30c63974f502169","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"0.5","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":1130,"y":240,"wires":[["d71f173d78554dc7"]]},{"id":"d71f173d78554dc7","type":"exec","z":"d30c63974f502169","command":"vcgencmd measure_temp","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"CPU Temp","x":1190,"y":360,"wires":[["8a6ac30f878d63c8"],[],[]]},{"id":"8a6ac30f878d63c8","type":"function","z":"d30c63974f502169","name":"function 7","func":"msg.payload = msg.payload.replace(\"temp=\",\"\").replace(\"'C\\n\",\"\");\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1180,"y":480,"wires":[["cfc1d9594f041e3d","760b4eee52d6fa88"]]},{"id":"cfc1d9594f041e3d","type":"switch","z":"d30c63974f502169","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"40","vt":"num"},{"t":"lt","v":"38","vt":"num"}],"checkall":"true","repair":true,"outputs":2,"x":1350,"y":480,"wires":[["7e34e1639ddc78e0"],["e8e9c903e652da0d"]]},{"id":"e8e9c903e652da0d","type":"change","z":"d30c63974f502169","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"payload","fromt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1520,"y":500,"wires":[[]]},{"id":"7e34e1639ddc78e0","type":"change","z":"d30c63974f502169","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"payload","fromt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1520,"y":440,"wires":[[]]},{"id":"dc1b2d7dc87d681f","type":"function","z":"d30c63974f502169","name":"function 8","func":"msg.flowratea = msg.payload;\nmsg.ratea1 =\"Time: \"\nmsg.flowratea += \"    \";\nmsg.ratea1 += msg.flowratea;\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":1420,"y":260,"wires":[["f26bc7cb15c3222d"]]},{"id":"63f1a0f7d9cd1bf9","type":"LCD-I2C","z":"d30c63974f502169","name":"","variant":"PCF8574","size":"20x4","x":1840,"y":340,"wires":[]},{"id":"760b4eee52d6fa88","type":"function","z":"d30c63974f502169","name":"function 9","func":"msg.flowratea = msg.payload;\nmsg.ratea =\"T: \"\nmsg.flowratea += \" C   \";\nmsg.ratea += msg.flowratea;\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":1420,"y":320,"wires":[["f26bc7cb15c3222d"]]},{"id":"f26bc7cb15c3222d","type":"function","z":"d30c63974f502169","name":"function 10","func":"msg.payload = [\n    {\n        \"row\": 1,\n        \"clear\": false,\n        \"text\": msg.ratea,\n        \"alignment\": \"left\"\n    },\n        {\n        \"row\": 0,\n        \"clear\": false,\n        \"text\": msg.ratea1,\n        \"alignment\": \"left\"\n    }\n\n]\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":1620,"y":340,"wires":[["63f1a0f7d9cd1bf9"]]},{"id":"d2e1e33edc3cdf63","type":"voltage_undivider","z":"d30c63974f502169","name":"","property":"payload","Voltage_Input":"mV-millivolts","Resistor_1":"10","Resistor_1Types":"kΩ-Kiloohm","Resistor_2":"12.5","Resistor_2Types":"Ω-Ohm","Voltage_Output":"V-Volts","Round_Output":"Hundredths","x":750,"y":840,"wires":[["6a6e31097aca5d44"]]},{"id":"558a1593feb58cf5","type":"voltage_undivider","z":"d30c63974f502169","name":"","property":"payload","Voltage_Input":"mV-millivolts","Resistor_1":"21","Resistor_1Types":"kΩ-Kiloohm","Resistor_2":"10","Resistor_2Types":"Ω-Ohm","Voltage_Output":"V-Volts","Round_Output":"Hundredths","x":750,"y":900,"wires":[["4c1b6bd7575f31f5"]]},{"id":"8f62ab74f3eb9c6d","type":"voltage_undivider","z":"d30c63974f502169","name":"","property":"payload","Voltage_Input":"mV-millivolts","Resistor_1":"17","Resistor_1Types":"kΩ-Kiloohm","Resistor_2":"10","Resistor_2Types":"Ω-Ohm","Voltage_Output":"V-Volts","Round_Output":"Tenths","x":750,"y":960,"wires":[["57cce05da11c4f81"]]},{"id":"82ecfb06159846aa","type":"voltage_undivider","z":"d30c63974f502169","name":"Divizor","property":"payload","Voltage_Input":"V-Volts","Resistor_1":"30","Resistor_1Types":"kΩ-Kiloohm","Resistor_2":"7.5","Resistor_2Types":"kΩ-Kiloohm","Voltage_Output":"V-Volts","Round_Output":"Hundredths","x":750,"y":40,"wires":[["92e82381a5ec887b"]]},{"id":"e1d14cd43651533a","type":"ina226-sensor","z":"d30c63974f502169","name":"","address":"0x40","shunt":"0.1","x":300,"y":880,"wires":[["01b2ab4015f35673","d7e10f01168ea513","235280826e1a619d"]]},{"id":"5a65494b2265250c","type":"ui_group","name":"Releu 1","tab":"8fb72fc26ee1dc88","order":3,"disp":true,"width":"6","collapse":false,"className":""},{"id":"adb0ceb9f1339288","type":"ui_group","name":"Releu 2","tab":"8fb72fc26ee1dc88","order":4,"disp":true,"width":"6","collapse":false,"className":""},{"id":"ef2d9c10c18f1197","type":"ui_group","name":"LED","tab":"8fb72fc26ee1dc88","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"c0b0952a5de7a648","type":"ui_group","name":"Settings","tab":"8fb72fc26ee1dc88","order":2,"disp":true,"width":"6","collapse":false,"className":""},{"id":"8fb72fc26ee1dc88","type":"ui_tab","name":"Releu1","icon":"dashboard","disabled":false,"hidden":false}]

Flow Info

Created 4 days ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • change (x11)
  • exec (x2)
  • function (x10)
  • inject (x4)
  • switch (x2)
Other

Tags

  • LCD+280+INA219+relay+CPU temp
  • use
  • comand
  • &gt; sudo apt install usbrelay
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option