747 lines
18 KiB
JSON
747 lines
18 KiB
JSON
[
|
|
{
|
|
"id": "41526b8c80d5a5f7",
|
|
"type": "tab",
|
|
"label": "Flux 1",
|
|
"disabled": false,
|
|
"info": "",
|
|
"env": []
|
|
},
|
|
{
|
|
"id": "dc9d3b99eadb9b34",
|
|
"type": "ui-button",
|
|
"z": "41526b8c80d5a5f7",
|
|
"group": "5fe915fcd26e78ae",
|
|
"name": "",
|
|
"label": "B0",
|
|
"order": 2,
|
|
"width": 0,
|
|
"height": 0,
|
|
"emulateClick": false,
|
|
"tooltip": "",
|
|
"color": "",
|
|
"bgcolor": "",
|
|
"className": "",
|
|
"icon": "",
|
|
"iconPosition": "left",
|
|
"payload": "",
|
|
"payloadType": "str",
|
|
"topic": "topic",
|
|
"topicType": "msg",
|
|
"buttonColor": "",
|
|
"textColor": "",
|
|
"iconColor": "",
|
|
"enableClick": true,
|
|
"enablePointerdown": false,
|
|
"pointerdownPayload": "",
|
|
"pointerdownPayloadType": "str",
|
|
"enablePointerup": false,
|
|
"pointerupPayload": "",
|
|
"pointerupPayloadType": "str",
|
|
"x": 130,
|
|
"y": 320,
|
|
"wires": [
|
|
[
|
|
"6444617c166984e0"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9dcd1bf2a25f7371",
|
|
"type": "ui-button",
|
|
"z": "41526b8c80d5a5f7",
|
|
"group": "5fe915fcd26e78ae",
|
|
"name": "",
|
|
"label": "B1",
|
|
"order": 3,
|
|
"width": 0,
|
|
"height": 0,
|
|
"emulateClick": false,
|
|
"tooltip": "",
|
|
"color": "",
|
|
"bgcolor": "",
|
|
"className": "",
|
|
"icon": "",
|
|
"iconPosition": "left",
|
|
"payload": "",
|
|
"payloadType": "str",
|
|
"topic": "topic",
|
|
"topicType": "msg",
|
|
"buttonColor": "",
|
|
"textColor": "",
|
|
"iconColor": "",
|
|
"enableClick": true,
|
|
"enablePointerdown": false,
|
|
"pointerdownPayload": "",
|
|
"pointerdownPayloadType": "str",
|
|
"enablePointerup": false,
|
|
"pointerupPayload": "",
|
|
"pointerupPayloadType": "str",
|
|
"x": 130,
|
|
"y": 360,
|
|
"wires": [
|
|
[
|
|
"4ee747c8012c58a1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "143358afb510246e",
|
|
"type": "ui-button",
|
|
"z": "41526b8c80d5a5f7",
|
|
"group": "5fe915fcd26e78ae",
|
|
"name": "",
|
|
"label": "B2",
|
|
"order": 4,
|
|
"width": 0,
|
|
"height": 0,
|
|
"emulateClick": false,
|
|
"tooltip": "",
|
|
"color": "",
|
|
"bgcolor": "",
|
|
"className": "",
|
|
"icon": "",
|
|
"iconPosition": "left",
|
|
"payload": "",
|
|
"payloadType": "str",
|
|
"topic": "topic",
|
|
"topicType": "msg",
|
|
"buttonColor": "",
|
|
"textColor": "",
|
|
"iconColor": "",
|
|
"enableClick": true,
|
|
"enablePointerdown": false,
|
|
"pointerdownPayload": "",
|
|
"pointerdownPayloadType": "str",
|
|
"enablePointerup": false,
|
|
"pointerupPayload": "",
|
|
"pointerupPayloadType": "str",
|
|
"x": 130,
|
|
"y": 400,
|
|
"wires": [
|
|
[
|
|
"d966ba0d813b7cb7"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "e863fe498c528076",
|
|
"type": "ui-button",
|
|
"z": "41526b8c80d5a5f7",
|
|
"group": "5fe915fcd26e78ae",
|
|
"name": "",
|
|
"label": "B3",
|
|
"order": 5,
|
|
"width": 0,
|
|
"height": 0,
|
|
"emulateClick": false,
|
|
"tooltip": "",
|
|
"color": "",
|
|
"bgcolor": "",
|
|
"className": "",
|
|
"icon": "",
|
|
"iconPosition": "left",
|
|
"payload": "",
|
|
"payloadType": "str",
|
|
"topic": "topic",
|
|
"topicType": "msg",
|
|
"buttonColor": "",
|
|
"textColor": "",
|
|
"iconColor": "",
|
|
"enableClick": true,
|
|
"enablePointerdown": false,
|
|
"pointerdownPayload": "",
|
|
"pointerdownPayloadType": "str",
|
|
"enablePointerup": false,
|
|
"pointerupPayload": "",
|
|
"pointerupPayloadType": "str",
|
|
"x": 130,
|
|
"y": 440,
|
|
"wires": [
|
|
[
|
|
"501355b0c82cae08"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "04e097a5c78127cb",
|
|
"type": "mqtt out",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "",
|
|
"topic": "geii/in",
|
|
"qos": "",
|
|
"retain": "",
|
|
"respTopic": "",
|
|
"contentType": "",
|
|
"userProps": "",
|
|
"correl": "",
|
|
"expiry": "",
|
|
"broker": "5bf949eb0a1b50a7",
|
|
"x": 730,
|
|
"y": 120,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "d12767fc3e33bb20",
|
|
"type": "ui-button",
|
|
"z": "41526b8c80d5a5f7",
|
|
"group": "5fe915fcd26e78ae",
|
|
"name": "",
|
|
"label": "MARCHE",
|
|
"order": 1,
|
|
"width": 0,
|
|
"height": 0,
|
|
"emulateClick": false,
|
|
"tooltip": "",
|
|
"color": "",
|
|
"bgcolor": "",
|
|
"className": "",
|
|
"icon": "",
|
|
"iconPosition": "left",
|
|
"payload": "",
|
|
"payloadType": "str",
|
|
"topic": "topic",
|
|
"topicType": "msg",
|
|
"buttonColor": "",
|
|
"textColor": "",
|
|
"iconColor": "",
|
|
"enableClick": true,
|
|
"enablePointerdown": false,
|
|
"pointerdownPayload": "",
|
|
"pointerdownPayloadType": "str",
|
|
"enablePointerup": false,
|
|
"pointerupPayload": "",
|
|
"pointerupPayloadType": "str",
|
|
"x": 140,
|
|
"y": 260,
|
|
"wires": [
|
|
[
|
|
"3e0c75aae8971dca"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0ca8f4a10a6048af",
|
|
"type": "function",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "format mqtt",
|
|
"func": "let marche = Number(flow.get(\"marche\") || 0);\nlet b0 = Number(flow.get(\"b0\") || 0);\nlet b1 = Number(flow.get(\"b1\") || 0);\nlet b2 = Number(flow.get(\"b2\") || 0);\nlet b3 = Number(flow.get(\"b3\") || 0);\n\nmsg.payload = {\n \"marche\": marche,\n \"b0\": b0,\n \"b1\": b1,\n \"b2\": b2,\n \"b3\": b3\n};\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 570,
|
|
"y": 120,
|
|
"wires": [
|
|
[
|
|
"04e097a5c78127cb"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "a49263451d77f972",
|
|
"type": "inject",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "",
|
|
"props": [
|
|
{
|
|
"p": "payload"
|
|
},
|
|
{
|
|
"p": "topic",
|
|
"vt": "str"
|
|
}
|
|
],
|
|
"repeat": "",
|
|
"crontab": "",
|
|
"once": true,
|
|
"onceDelay": 0.1,
|
|
"topic": "",
|
|
"payload": "",
|
|
"payloadType": "date",
|
|
"x": 110,
|
|
"y": 40,
|
|
"wires": [
|
|
[
|
|
"d28f31d7c379f3d8"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d28f31d7c379f3d8",
|
|
"type": "change",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "marche",
|
|
"pt": "flow",
|
|
"to": "0",
|
|
"tot": "num"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "s0",
|
|
"pt": "flow",
|
|
"to": "0",
|
|
"tot": "num"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "b0",
|
|
"pt": "flow",
|
|
"to": "0",
|
|
"tot": "num"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 320,
|
|
"y": 40,
|
|
"wires": [
|
|
[
|
|
"0ca8f4a10a6048af"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "3e0c75aae8971dca",
|
|
"type": "function",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "set marche",
|
|
"func": "flow.set(\"marche\", !Number(flow.get(\"marche\")));\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 310,
|
|
"y": 260,
|
|
"wires": [
|
|
[
|
|
"0ca8f4a10a6048af"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6444617c166984e0",
|
|
"type": "function",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "set marche",
|
|
"func": "flow.set(\"b0\", !Number(flow.get(\"b0\")));\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 310,
|
|
"y": 320,
|
|
"wires": [
|
|
[
|
|
"0ca8f4a10a6048af"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "4ee747c8012c58a1",
|
|
"type": "function",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "set marche",
|
|
"func": "flow.set(\"b1\", !Number(flow.get(\"b1\")));\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 310,
|
|
"y": 360,
|
|
"wires": [
|
|
[
|
|
"0ca8f4a10a6048af"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d966ba0d813b7cb7",
|
|
"type": "function",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "set marche",
|
|
"func": "flow.set(\"b2\", !Number(flow.get(\"b2\")));\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 310,
|
|
"y": 400,
|
|
"wires": [
|
|
[
|
|
"0ca8f4a10a6048af"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "501355b0c82cae08",
|
|
"type": "function",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "set marche",
|
|
"func": "flow.set(\"b3\", !Number(flow.get(\"b3\")));\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 310,
|
|
"y": 440,
|
|
"wires": [
|
|
[
|
|
"0ca8f4a10a6048af"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "1dfea06c14d2732c",
|
|
"type": "mqtt in",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "",
|
|
"topic": "geii/out",
|
|
"qos": "2",
|
|
"datatype": "auto-detect",
|
|
"broker": "5bf949eb0a1b50a7",
|
|
"nl": false,
|
|
"rap": true,
|
|
"rh": 0,
|
|
"inputs": 0,
|
|
"x": 130,
|
|
"y": 580,
|
|
"wires": [
|
|
[
|
|
"31ef90b8227cd6cb",
|
|
"9ef1bb67f51b254c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "31ef90b8227cd6cb",
|
|
"type": "debug",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "debug 1",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "false",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 740,
|
|
"y": 460,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "309cae1a9bcc718b",
|
|
"type": "ui-text",
|
|
"z": "41526b8c80d5a5f7",
|
|
"group": "c3dd11d0778f9e67",
|
|
"order": 4,
|
|
"width": 0,
|
|
"height": 0,
|
|
"name": "",
|
|
"label": "s0",
|
|
"format": "{{msg.payload}}",
|
|
"layout": "row-spread",
|
|
"style": false,
|
|
"font": "",
|
|
"fontSize": 16,
|
|
"color": "#717171",
|
|
"wrapText": false,
|
|
"className": "",
|
|
"value": "payload",
|
|
"valueType": "msg",
|
|
"x": 870,
|
|
"y": 520,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "6bd900b695c3a793",
|
|
"type": "ui-text",
|
|
"z": "41526b8c80d5a5f7",
|
|
"group": "c3dd11d0778f9e67",
|
|
"order": 3,
|
|
"width": 0,
|
|
"height": 0,
|
|
"name": "",
|
|
"label": "s1",
|
|
"format": "{{msg.payload}}",
|
|
"layout": "row-spread",
|
|
"style": false,
|
|
"font": "",
|
|
"fontSize": 16,
|
|
"color": "#717171",
|
|
"wrapText": false,
|
|
"className": "",
|
|
"value": "payload",
|
|
"valueType": "msg",
|
|
"x": 870,
|
|
"y": 560,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "cdc7f0e7741ad210",
|
|
"type": "ui-text",
|
|
"z": "41526b8c80d5a5f7",
|
|
"group": "c3dd11d0778f9e67",
|
|
"order": 2,
|
|
"width": 0,
|
|
"height": 0,
|
|
"name": "",
|
|
"label": "s2",
|
|
"format": "{{msg.payload}}",
|
|
"layout": "row-spread",
|
|
"style": false,
|
|
"font": "",
|
|
"fontSize": 16,
|
|
"color": "#717171",
|
|
"wrapText": false,
|
|
"className": "",
|
|
"value": "payload",
|
|
"valueType": "msg",
|
|
"x": 870,
|
|
"y": 600,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "9ef1bb67f51b254c",
|
|
"type": "function",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "function 1",
|
|
"func": "flow.set(\"s0\", !Number(msg.payload.s0));\nflow.set(\"s1\", !Number(msg.payload.s1));\nflow.set(\"s2\", !Number(msg.payload.s2));\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 380,
|
|
"y": 580,
|
|
"wires": [
|
|
[
|
|
"9dad44eccec1d282",
|
|
"fc568b731fec8026",
|
|
"6179e102d7866a82"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9dad44eccec1d282",
|
|
"type": "function",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "s0",
|
|
"func": "msg.payload = Number(flow.get(\"s0\")) ? \"🟥\" : \"🟩\";\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 690,
|
|
"y": 520,
|
|
"wires": [
|
|
[
|
|
"309cae1a9bcc718b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "fc568b731fec8026",
|
|
"type": "function",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "s1",
|
|
"func": "msg.payload = Number(flow.get(\"s1\")) ? \"🟥\" : \"🟩\";\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 690,
|
|
"y": 560,
|
|
"wires": [
|
|
[
|
|
"6bd900b695c3a793"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6179e102d7866a82",
|
|
"type": "function",
|
|
"z": "41526b8c80d5a5f7",
|
|
"name": "s0",
|
|
"func": "msg.payload = Number(flow.get(\"s2\")) ? \"🟥\" : \"🟩\";\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 690,
|
|
"y": 600,
|
|
"wires": [
|
|
[
|
|
"cdc7f0e7741ad210"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "5fe915fcd26e78ae",
|
|
"type": "ui-group",
|
|
"name": "Pupitre",
|
|
"page": "bb436fe040268d40",
|
|
"width": "2",
|
|
"height": 1,
|
|
"order": 2,
|
|
"showTitle": true,
|
|
"className": "",
|
|
"visible": "true",
|
|
"disabled": "false",
|
|
"groupType": "default"
|
|
},
|
|
{
|
|
"id": "5bf949eb0a1b50a7",
|
|
"type": "mqtt-broker",
|
|
"name": "",
|
|
"broker": "rabbitmq",
|
|
"port": 1883,
|
|
"clientid": "",
|
|
"autoConnect": true,
|
|
"usetls": false,
|
|
"protocolVersion": 4,
|
|
"keepalive": 60,
|
|
"cleansession": true,
|
|
"autoUnsubscribe": true,
|
|
"birthTopic": "",
|
|
"birthQos": "0",
|
|
"birthRetain": "false",
|
|
"birthPayload": "",
|
|
"birthMsg": {},
|
|
"closeTopic": "",
|
|
"closeQos": "0",
|
|
"closeRetain": "false",
|
|
"closePayload": "",
|
|
"closeMsg": {},
|
|
"willTopic": "",
|
|
"willQos": "0",
|
|
"willRetain": "false",
|
|
"willPayload": "",
|
|
"willMsg": {},
|
|
"userProps": "",
|
|
"sessionExpiry": ""
|
|
},
|
|
{
|
|
"id": "c3dd11d0778f9e67",
|
|
"type": "ui-group",
|
|
"name": "Voyants",
|
|
"page": "bb436fe040268d40",
|
|
"width": "3",
|
|
"height": 1,
|
|
"order": 1,
|
|
"showTitle": true,
|
|
"className": "",
|
|
"visible": "true",
|
|
"disabled": "false",
|
|
"groupType": "default"
|
|
},
|
|
{
|
|
"id": "bb436fe040268d40",
|
|
"type": "ui-page",
|
|
"name": "LP SARII",
|
|
"ui": "92537b03143c5e06",
|
|
"path": "/page1",
|
|
"icon": "home",
|
|
"layout": "grid",
|
|
"theme": "ea2bf5532fa513eb",
|
|
"breakpoints": [
|
|
{
|
|
"name": "Default",
|
|
"px": "0",
|
|
"cols": "3"
|
|
},
|
|
{
|
|
"name": "Tablet",
|
|
"px": "576",
|
|
"cols": "6"
|
|
},
|
|
{
|
|
"name": "Small Desktop",
|
|
"px": "768",
|
|
"cols": "9"
|
|
},
|
|
{
|
|
"name": "Desktop",
|
|
"px": "1024",
|
|
"cols": "12"
|
|
}
|
|
],
|
|
"order": 1,
|
|
"className": "",
|
|
"visible": "true",
|
|
"disabled": "false"
|
|
},
|
|
{
|
|
"id": "92537b03143c5e06",
|
|
"type": "ui-base",
|
|
"name": "My Dashboard",
|
|
"path": "/dashboard",
|
|
"appIcon": "",
|
|
"includeClientData": true,
|
|
"acceptsClientConfig": [
|
|
"ui-notification",
|
|
"ui-control"
|
|
],
|
|
"showPathInSidebar": false,
|
|
"headerContent": "page",
|
|
"navigationStyle": "default",
|
|
"titleBarStyle": "default",
|
|
"showReconnectNotification": true,
|
|
"notificationDisplayTime": 1,
|
|
"showDisconnectNotification": true,
|
|
"allowInstall": false
|
|
},
|
|
{
|
|
"id": "ea2bf5532fa513eb",
|
|
"type": "ui-theme",
|
|
"name": "Default Theme",
|
|
"colors": {
|
|
"surface": "#ffffff",
|
|
"primary": "#0094CE",
|
|
"bgPage": "#eeeeee",
|
|
"groupBg": "#ffffff",
|
|
"groupOutline": "#cccccc"
|
|
},
|
|
"sizes": {
|
|
"density": "default",
|
|
"pagePadding": "12px",
|
|
"groupGap": "12px",
|
|
"groupBorderRadius": "4px",
|
|
"widgetGap": "12px"
|
|
}
|
|
},
|
|
{
|
|
"id": "7514f74ba5dcf202",
|
|
"type": "global-config",
|
|
"env": [],
|
|
"modules": {
|
|
"@flowfuse/node-red-dashboard": "1.30.1"
|
|
}
|
|
}
|
|
] |