Flows - Json 5
Flows - Json 5
{
"id": "f7d1f046.040758",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "b0cee2c4.e2c188",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": ""
},
{
"id": "112d0050.4716c8",
"type": "tab",
"label": "Flow 3",
"disabled": false,
"info": ""
},
{
"id": "6d82499b.7a3a9",
"type": "tab",
"label": "Flow 4",
"disabled": false,
"info": ""
},
{
"id": "6e8c268f.d13848",
"type": "ui_group",
"name": "pippio",
"tab": "8757e7c.fb95d18",
"order": 1,
"disp": false,
"width": 6,
"collapse": false
},
{
"id": "8757e7c.fb95d18",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
},
{
"id": "1c8e7cb4.f18b43",
"type": "ui_base",
"theme": {
"name": "theme-dark",
"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": "#96d35f",
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe
UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
"edited": true,
"reset": 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": "#097479",
"value": "#96d35f",
"edited": true
},
"page-titlebar-backgroundColor": {
"value": "#96d35f",
"edited": false
},
"page-backgroundColor": {
"value": "#111111",
"edited": false
},
"page-sidebar-backgroundColor": {
"value": "#ffffff",
"edited": false
},
"group-textColor": {
"value": "#bde39b",
"edited": false
},
"group-borderColor": {
"value": "#555555",
"edited": false
},
"group-backgroundColor": {
"value": "#333333",
"edited": false
},
"widget-textColor": {
"value": "#eeeeee",
"edited": false
},
"widget-backgroundColor": {
"value": "#96d35f",
"edited": false
},
"widget-borderColor": {
"value": "#333333",
"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"
}
},
"site": {
"name": "Node-RED Dashboard",
"hideToolbar": "true",
"allowSwipe": "true",
"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": "3452cb92.2eedec",
"type": "mqtt-broker",
"name": "",
"broker": "localhost",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": false,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": ""
},
{
"id": "e372b004.1b483",
"type": "serial-port",
"serialport": "/dev/ttyAMA0",
"serialbaud": "9600",
"databits": "8",
"parity": "none",
"stopbits": "1",
"waitfor": "",
"dtr": "none",
"rts": "none",
"cts": "none",
"dsr": "none",
"newline": "50",
"bin": "bin",
"out": "time",
"addchar": "",
"responsetimeout": "10000"
},
{
"id": "4f9f6fde.25004",
"type": "serial-port",
"serialport": "serial0",
"serialbaud": "57600",
"databits": "8",
"parity": "none",
"stopbits": "1",
"waitfor": "",
"dtr": "none",
"rts": "none",
"cts": "none",
"dsr": "none",
"newline": "\\n",
"bin": "false",
"out": "char",
"addchar": "",
"responsetimeout": "10000"
},
{
"id": "544bc5b8.02eb54",
"type": "serial-port",
"serialport": "serial1",
"serialbaud": "57600",
"databits": "8",
"parity": "none",
"stopbits": "1",
"waitfor": "",
"dtr": "none",
"rts": "none",
"cts": "none",
"dsr": "none",
"newline": "\\n",
"bin": "false",
"out": "char",
"addchar": "",
"responsetimeout": "10000"
},
{
"id": "909d43c2.f969c",
"type": "serial-port",
"serialport": "/dev/ttyUSB1",
"serialbaud": "9600",
"databits": "8",
"parity": "none",
"stopbits": "1",
"waitfor": "",
"dtr": "none",
"rts": "none",
"cts": "none",
"dsr": "none",
"newline": "\\n",
"bin": "false",
"out": "char",
"addchar": "",
"responsetimeout": "10000"
},
{
"id": "5497b211.595234",
"type": "serial-port",
"serialport": "/dev/ttyAMA0",
"serialbaud": "9600",
"databits": "8",
"parity": "none",
"stopbits": "1",
"waitfor": "",
"dtr": "none",
"rts": "none",
"cts": "none",
"dsr": "none",
"newline": "100",
"bin": "bin",
"out": "time",
"addchar": "",
"responsetimeout": "10000"
},
{
"id": "dc1688f7.c498a8",
"type": "ui_group",
"name": "Group 2",
"tab": "8757e7c.fb95d18",
"order": 2,
"disp": false,
"width": "6",
"collapse": false
},
{
"id": "90f992ae.7e1c7",
"type": "ui_group",
"name": "Group 3",
"tab": "8757e7c.fb95d18",
"order": 3,
"disp": false,
"width": "6",
"collapse": false
},
{
"id": "105c2f05.f3ab19",
"type": "ui_spacer",
"name": "spacer",
"group": "dc1688f7.c498a8",
"order": 1,
"width": 6,
"height": 1
},
{
"id": "9bec5312.253ca8",
"type": "ui_spacer",
"name": "spacer",
"group": "90f992ae.7e1c7",
"order": 1,
"width": 6,
"height": 1
},
{
"id": "53c51fba.bf0288",
"type": "ui_switch",
"z": "f7d1f046.040758",
"name": "",
"label": "SONOFF MINI",
"tooltip": "",
"group": "6e8c268f.d13848",
"order": 1,
"width": 6,
"height": 1,
"passthru": false,
"decouple": "true",
"topic": "",
"style": "",
"onvalue": "ON",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "OFF",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"x": 400,
"y": 300,
"wires": [
[
"a96458cf.25f94"
]
],
"icon": "node-red/light.svg"
},
{
"id": "6e73fbdc.45c6fc",
"type": "ui_gauge",
"z": "f7d1f046.040758",
"name": "Voltage",
"group": "6e8c268f.d13848",
"order": 2,
"width": 3,
"height": 2,
"gtype": "gage",
"title": "",
"label": "Volt",
"format": "{{value}}",
"min": 0,
"max": "250",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 640,
"y": 560,
"wires": []
},
{
"id": "f049d2cf.6a546",
"type": "ui_chart",
"z": "f7d1f046.040758",
"name": "",
"group": "6e8c268f.d13848",
"order": 5,
"width": 6,
"height": 4,
"label": "Tensione",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "cubic",
"nodata": "",
"dot": false,
"ymin": "220",
"ymax": "240",
"removeOlder": "10",
"removeOlderPoints": "3600",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#ff0000",
"#aec7e8",
"#ff8000",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"x": 640,
"y": 600,
"wires": [
[]
]
},
{
"id": "a96458cf.25f94",
"type": "mqtt out",
"z": "f7d1f046.040758",
"name": "",
"topic": "cmnd/tasmota_E60DFB/POWER",
"qos": "0",
"retain": "false",
"broker": "3452cb92.2eedec",
"x": 660,
"y": 300,
"wires": []
},
{
"id": "410ae067.f20c48",
"type": "mqtt in",
"z": "f7d1f046.040758",
"name": "",
"topic": "stat/tasmota_E60DFB/POWER",
"qos": "2",
"datatype": "auto",
"broker": "3452cb92.2eedec",
"x": 150,
"y": 300,
"wires": [
[
"53c51fba.bf0288"
]
]
},
{
"id": "e4dcb5.9f613b48",
"type": "inject",
"z": "f7d1f046.040758",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "10",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "[248,4,0,0,0,10,100,100]",
"payloadType": "bin",
"x": 90,
"y": 500,
"wires": [
[
"11692b5f.9bd0bd"
]
]
},
{
"id": "11692b5f.9bd0bd",
"type": "serial out",
"z": "f7d1f046.040758",
"name": "",
"serial": "5497b211.595234",
"x": 180,
"y": 620,
"wires": []
},
{
"id": "731ea121.dfcec8",
"type": "serial in",
"z": "f7d1f046.040758",
"name": "",
"serial": "5497b211.595234",
"x": 350,
"y": 620,
"wires": [
[
"edd220bb.7c3468",
"e11d311c.dd1e58",
"af58ff5c.3714e8"
]
]
},
{
"id": "143b1a36.044f76",
"type": "debug",
"z": "f7d1f046.040758",
"name": "",
"active": false,
"tosidebar": true,
"console": true,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 640,
"y": 700,
"wires": []
},
{
"id": "edd220bb.7c3468",
"type": "function",
"z": "f7d1f046.040758",
"name": "Voltage",
"func": "var i\ni = ((msg.payload[3]*256)+msg.payload[4])/10.0;\
nmsg.payload =i;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 380,
"y": 700,
"wires": [
[
"143b1a36.044f76",
"f049d2cf.6a546",
"6e73fbdc.45c6fc"
]
]
},
{
"id": "e11d311c.dd1e58",
"type": "function",
"z": "f7d1f046.040758",
"name": "Power",
"func": "var i\ni = ((msg.payload[11]*256*256*256)+\n
(msg.payload[12]*256*256)+\n (msg.payload[9]*256)+\n
(msg.payload[10]))/10.0;\nmsg.payload =i;\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 390,
"y": 520,
"wires": [
[
"1b16b7fc.0d8f9",
"7fdcac73.47dbcc"
]
]
},
{
"id": "7fdcac73.47dbcc",
"type": "ui_chart",
"z": "f7d1f046.040758",
"name": "Power",
"group": "6e8c268f.d13848",
"order": 4,
"width": 6,
"height": 4,
"label": "Potenza",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "cubic",
"nodata": "",
"dot": false,
"ymin": "0",
"ymax": "3000",
"removeOlder": "10",
"removeOlderPoints": "3600",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#01c7fc",
"#aec7e8",
"#ff8000",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"x": 630,
"y": 520,
"wires": [
[]
]
},
{
"id": "1b16b7fc.0d8f9",
"type": "ui_gauge",
"z": "f7d1f046.040758",
"name": "Power",
"group": "6e8c268f.d13848",
"order": 3,
"width": 3,
"height": 2,
"gtype": "gage",
"title": "",
"label": "Watt",
"format": "{{value}}",
"min": 0,
"max": "3000",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 630,
"y": 480,
"wires": []
},
{
"id": "af58ff5c.3714e8",
"type": "link out",
"z": "f7d1f046.040758",
"name": "Pzem",
"links": [
"3aaf49f1.74ad5e",
"1dd08b8f.931af4",
"57868d88.7e9abc"
],
"x": 755,
"y": 640,
"wires": []
},
{
"id": "3aaf49f1.74ad5e",
"type": "link in",
"z": "b0cee2c4.e2c188",
"name": "",
"links": [
"af58ff5c.3714e8"
],
"x": 15,
"y": 140,
"wires": [
[
"e1d301be.5fab28",
"ee12ea14.0beae"
]
]
},
{
"id": "e1d301be.5fab28",
"type": "function",
"z": "b0cee2c4.e2c188",
"name": "Current",
"func": "var i\ni = ((msg.payload[7]*256*256*256)+\n
(msg.payload[8]*256*256)+\n (msg.payload[5]*256)+\n
(msg.payload[6]))/1000.0;\nmsg.payload =i;\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 120,
"y": 100,
"wires": [
[
"54477579.b88eac",
"87fefda7.41cc8"
]
]
},
{
"id": "54477579.b88eac",
"type": "ui_gauge",
"z": "b0cee2c4.e2c188",
"name": "Amp",
"group": "dc1688f7.c498a8",
"order": 2,
"width": 3,
"height": 2,
"gtype": "gage",
"title": "",
"label": "Amp",
"format": "{{value}}",
"min": 0,
"max": "20",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 270,
"y": 60,
"wires": []
},
{
"id": "87fefda7.41cc8",
"type": "ui_chart",
"z": "b0cee2c4.e2c188",
"name": "Amp",
"group": "dc1688f7.c498a8",
"order": 4,
"width": 6,
"height": 4,
"label": "Corrente",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "cubic",
"nodata": "",
"dot": false,
"ymin": "0",
"ymax": "20",
"removeOlder": "10",
"removeOlderPoints": "3600",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#ffff00",
"#aec7e8",
"#ff8000",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"x": 264.97882080078125,
"y": 118.54315185546875,
"wires": [
[]
]
},
{
"id": "ee12ea14.0beae",
"type": "function",
"z": "b0cee2c4.e2c188",
"name": "Cosfi",
"func": "var i\ni = ((msg.payload[19]*256)+msg.payload[20])/100.0;\
nmsg.payload =i;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 110,
"y": 200,
"wires": [
[
"a7f0f38e.d83878",
"4d9c2060.c871a8"
]
]
},
{
"id": "4d9c2060.c871a8",
"type": "ui_chart",
"z": "b0cee2c4.e2c188",
"name": "Cosfi",
"group": "dc1688f7.c498a8",
"order": 5,
"width": 6,
"height": 4,
"label": "Cos fi",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "cubic",
"nodata": "",
"dot": false,
"ymin": "0",
"ymax": "1",
"removeOlder": "10",
"removeOlderPoints": "3600",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#76bb40",
"#aec7e8",
"#ff8000",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"x": 250,
"y": 240,
"wires": [
[]
]
},
{
"id": "a7f0f38e.d83878",
"type": "ui_gauge",
"z": "b0cee2c4.e2c188",
"name": "Cosfi",
"group": "dc1688f7.c498a8",
"order": 3,
"width": 3,
"height": 2,
"gtype": "gage",
"title": "",
"label": "CosFi",
"format": "{{value}}",
"min": 0,
"max": "1",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 250,
"y": 180,
"wires": []
},
{
"id": "1dd08b8f.931af4",
"type": "link in",
"z": "112d0050.4716c8",
"name": "",
"links": [
"af58ff5c.3714e8"
],
"x": 95,
"y": 240,
"wires": [
[
"ee02b4b6.4095e",
"f9bac2ec.e41ed"
]
]
},
{
"id": "ee02b4b6.4095e",
"type": "function",
"z": "112d0050.4716c8",
"name": "Energy",
"func": "var i\ni = ((msg.payload[15]*256*256*256)+\n
(msg.payload[16]*256*256)+\n (msg.payload[13]*256)+\n
(msg.payload[14]))/1000.0;\nmsg.payload =i;\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 250,
"y": 240,
"wires": [
[
"6f8fbd14.a40394"
]
]
},
{
"id": "6f8fbd14.a40394",
"type": "ui_gauge",
"z": "112d0050.4716c8",
"name": "Energia",
"group": "90f992ae.7e1c7",
"order": 5,
"width": 6,
"height": 4,
"gtype": "compass",
"title": "Energia",
"label": "KWh",
"format": "{{value}}",
"min": 0,
"max": "10",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 440,
"y": 240,
"wires": []
},
{
"id": "f9bac2ec.e41ed",
"type": "function",
"z": "112d0050.4716c8",
"name": "Freq",
"func": "var i\ni = ((msg.payload[17]*256)+msg.payload[18])/10.0;\
nmsg.payload =i;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 250,
"y": 340,
"wires": [
[
"44134c79.24d57c",
"7da58426.9a70fc"
]
]
},
{
"id": "44134c79.24d57c",
"type": "ui_gauge",
"z": "112d0050.4716c8",
"name": "Freq",
"group": "90f992ae.7e1c7",
"order": 2,
"width": 3,
"height": 2,
"gtype": "gage",
"title": "",
"label": "Hz",
"format": "{{value}}",
"min": "48",
"max": "52",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 410,
"y": 340,
"wires": []
},
{
"id": "7da58426.9a70fc",
"type": "ui_chart",
"z": "112d0050.4716c8",
"name": "Freq",
"group": "90f992ae.7e1c7",
"order": 4,
"width": 6,
"height": 4,
"label": "Frequenza",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "cubic",
"nodata": "",
"dot": false,
"ymin": "48",
"ymax": "52",
"removeOlder": "10",
"removeOlderPoints": "3600",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#ff00ff",
"#aec7e8",
"#ff8000",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"x": 410,
"y": 400,
"wires": [
[]
]
},
{
"id": "fc2b343c.bbe2f8",
"type": "exec",
"z": "6d82499b.7a3a9",
"command": "/opt/vc/bin/vcgencmd measure_temp",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "",
"x": 670,
"y": 360,
"wires": [
[
"a0ffa8b2.ee0588"
],
[],
[]
]
},
{
"id": "2b7bc9f1.ab36a6",
"type": "comment",
"z": "6d82499b.7a3a9",
"name": "Execute external command appending additional args",
"info": "Exec node can execute external command and can receive its
standard output as a payload of first message. Standard error output can be
received from second message. The exit code of the command can be obtained from
`code` property of third message payload.\n\nIf `Append msg.payload` checkbox is
selected, payload value of the input message is appended to command string.\n",
"x": 740,
"y": 280,
"wires": []
},
{
"id": "6cf6ba24.7dde5c",
"type": "ui_gauge",
"z": "6d82499b.7a3a9",
"name": "Cpu temp",
"group": "90f992ae.7e1c7",
"order": 3,
"width": 3,
"height": 2,
"gtype": "donut",
"title": "",
"label": "'C cpu",
"format": "{{value}}",
"min": 0,
"max": "70",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 900,
"y": 440,
"wires": []
},
{
"id": "57868d88.7e9abc",
"type": "link in",
"z": "6d82499b.7a3a9",
"name": "",
"links": [
"af58ff5c.3714e8"
],
"x": 455,
"y": 360,
"wires": [
[
"fc2b343c.bbe2f8"
]
]
},
{
"id": "a1259a8e.4c7bb8",
"type": "debug",
"z": "6d82499b.7a3a9",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 910,
"y": 520,
"wires": []
},
{
"id": "a0ffa8b2.ee0588",
"type": "change",
"z": "6d82499b.7a3a9",
"name": "",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "temp=",
"fromt": "str",
"to": "",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 660,
"y": 480,
"wires": [
[
"a1259a8e.4c7bb8",
"6cf6ba24.7dde5c"
]
]
}
]