[ { "id": "86a34ee77bf6db10", "type": "tab", "label": "Principal", "disabled": false, "info": "", "env": [] }, { "id": "b5e17af18ea9731a", "type": "tab", "label": "F18", "disabled": false, "info": "", "env": [] }, { "id": "93dc5b41180d0746", "type": "tab", "label": "Flux 3", "disabled": false, "info": "", "env": [] }, { "id": "3dc18e328806e2f6", "type": "global-config", "env": [], "modules": { "@flowfuse/node-red-dashboard": "1.29.0" } }, { "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": "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": "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": "5fe915fcd26e78ae", "type": "ui-group", "name": "Boutons", "page": "bb436fe040268d40", "width": "2", "height": 1, "order": 2, "showTitle": true, "className": "", "visible": "true", "disabled": "false", "groupType": "default" }, { "id": "02fab8cbf37e2bb7", "type": "ui-group", "name": "GΓ©nΓ©ral", "page": "bb436fe040268d40", "width": "2", "height": 1, "order": 1, "showTitle": true, "className": "", "visible": "true", "disabled": "false", "groupType": "default" }, { "id": "c3dd11d0778f9e67", "type": "ui-group", "name": "Voyants", "page": "bb436fe040268d40", "width": "2", "height": 1, "order": 4, "showTitle": true, "className": "", "visible": "true", "disabled": "false", "groupType": "default" }, { "id": "00ea85a0e0b38df3", "type": "ui-group", "name": "Interrupteurs", "page": "bb436fe040268d40", "width": "2", "height": 1, "order": 3, "showTitle": true, "className": "", "visible": "true", "disabled": "false", "groupType": "default" }, { "id": "b1bde11bdd78b9f1", "type": "ui-group", "name": "Afficheur", "page": "bb436fe040268d40", "width": "8", "height": 1, "order": 6, "showTitle": true, "className": "", "visible": "true", "disabled": "false", "groupType": "default" }, { "id": "6b44d4b22cd7b3dc", "type": "ui-group", "name": "Moteurs", "page": "bb436fe040268d40", "width": "4", "height": 1, "order": 5, "showTitle": true, "className": "", "visible": "true", "disabled": "false", "groupType": "default" }, { "id": "34e2708f001f89c4", "type": "ui-spacer", "group": "6b44d4b22cd7b3dc", "name": "spacer", "tooltip": "", "order": 11, "width": 1, "height": 1, "className": "" }, { "id": "050148aff99031d4", "type": "ui-group", "name": "RΓ©servoir", "page": "bb436fe040268d40", "width": "4", "height": 1, "order": 7, "showTitle": true, "className": "", "visible": "true", "disabled": "false", "groupType": "default" }, { "id": "699fb0d470d36c5f", "type": "ui-button", "z": "86a34ee77bf6db10", "group": "5fe915fcd26e78ae", "name": "", "label": "B0", "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": 710, "y": 680, "wires": [ [ "31f0ac2326dee161" ] ] }, { "id": "9f4dc1907c1e00dd", "type": "ui-button", "z": "86a34ee77bf6db10", "group": "5fe915fcd26e78ae", "name": "", "label": "B1", "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": 710, "y": 720, "wires": [ [ "c15d4bd7caa2d2fb" ] ] }, { "id": "79b179ce4b2341de", "type": "ui-button", "z": "86a34ee77bf6db10", "group": "5fe915fcd26e78ae", "name": "", "label": "B2", "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": 710, "y": 760, "wires": [ [ "0c9ba205249939bf" ] ] }, { "id": "66e9e7d8aa02074d", "type": "ui-button", "z": "86a34ee77bf6db10", "group": "5fe915fcd26e78ae", "name": "", "label": "B3", "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": 710, "y": 800, "wires": [ [ "8ec37a1598f36eab" ] ] }, { "id": "e9cc79327d44b9fb", "type": "mqtt out", "z": "86a34ee77bf6db10", "name": "", "topic": "geii/in", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "5bf949eb0a1b50a7", "x": 210, "y": 120, "wires": [] }, { "id": "76dc26d0b466145c", "type": "ui-button", "z": "86a34ee77bf6db10", "group": "02fab8cbf37e2bb7", "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": "green", "textColor": "", "iconColor": "", "enableClick": true, "enablePointerdown": false, "pointerdownPayload": "", "pointerdownPayloadType": "str", "enablePointerup": false, "pointerupPayload": "", "pointerupPayloadType": "str", "x": 720, "y": 560, "wires": [ [ "dec1e73483e26a7d" ] ] }, { "id": "fbe076215c8d2a12", "type": "inject", "z": "86a34ee77bf6db10", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": true, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 130, "y": 400, "wires": [ [ "48e613c44cc4f340" ] ] }, { "id": "dec1e73483e26a7d", "type": "function", "z": "86a34ee77bf6db10", "name": "send marche", "func": "msg.payload = {\n \"marche\": 1\n};\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 890, "y": 560, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "c15d4bd7caa2d2fb", "type": "function", "z": "86a34ee77bf6db10", "name": "send b1", "func": "msg.payload = {\n \"b1\": 1\n};\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 880, "y": 720, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "0c9ba205249939bf", "type": "function", "z": "86a34ee77bf6db10", "name": "send b2", "func": "msg.payload = {\n \"b2\": 1\n};\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 880, "y": 760, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "8ec37a1598f36eab", "type": "function", "z": "86a34ee77bf6db10", "name": "send b3", "func": "msg.payload = {\n \"b3\": 1\n};\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 880, "y": 800, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "a04804d73c302cd9", "type": "mqtt in", "z": "86a34ee77bf6db10", "name": "", "topic": "geii/out", "qos": "2", "datatype": "auto-detect", "broker": "5bf949eb0a1b50a7", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 170, "y": 1480, "wires": [ [ "586e5d5f736036fc", "5ff7cf747202687b" ] ] }, { "id": "9a23c6f558ea0378", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "c3dd11d0778f9e67", "order": 1, "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": 1100, "wires": [] }, { "id": "a80fa1a313f076c8", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "c3dd11d0778f9e67", "order": 2, "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": 1140, "wires": [] }, { "id": "10e55237847991c9", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "c3dd11d0778f9e67", "order": 3, "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": 1180, "wires": [] }, { "id": "b10ff790c2c745e2", "type": "function", "z": "86a34ee77bf6db10", "name": "s0", "func": "msg.payload = Number(msg.payload.s0) ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1100, "wires": [ [ "9a23c6f558ea0378" ] ] }, { "id": "3243dba201971bd7", "type": "function", "z": "86a34ee77bf6db10", "name": "s1", "func": "msg.payload = Number(msg.payload.s1) ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1140, "wires": [ [ "a80fa1a313f076c8" ] ] }, { "id": "051388bb768084d7", "type": "function", "z": "86a34ee77bf6db10", "name": "s2", "func": "msg.payload = Number(msg.payload.s2) ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1180, "wires": [ [ "10e55237847991c9" ] ] }, { "id": "38d83b28a85004c7", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "c3dd11d0778f9e67", "order": 4, "width": 0, "height": 0, "name": "", "label": "s3", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 870, "y": 1220, "wires": [] }, { "id": "d8918e528c0bab75", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "c3dd11d0778f9e67", "order": 5, "width": 0, "height": 0, "name": "", "label": "s4", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 870, "y": 1260, "wires": [] }, { "id": "d82070a29ee7072c", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "c3dd11d0778f9e67", "order": 6, "width": 0, "height": 0, "name": "", "label": "s5", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 870, "y": 1300, "wires": [] }, { "id": "04f3fd26b7f05cd2", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "c3dd11d0778f9e67", "order": 7, "width": 0, "height": 0, "name": "", "label": "s6", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 870, "y": 1340, "wires": [] }, { "id": "b2154eb18bb4e996", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "c3dd11d0778f9e67", "order": 8, "width": 0, "height": 0, "name": "", "label": "s7", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 870, "y": 1380, "wires": [] }, { "id": "c793fceafb6fb3f0", "type": "function", "z": "86a34ee77bf6db10", "name": "s3", "func": "msg.payload = Number(msg.payload.s3) ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1220, "wires": [ [ "38d83b28a85004c7" ] ] }, { "id": "65723f43ca71069b", "type": "function", "z": "86a34ee77bf6db10", "name": "s4", "func": "msg.payload = Number(msg.payload.s4) ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1260, "wires": [ [ "d8918e528c0bab75" ] ] }, { "id": "3ceeaa9da55ccbb8", "type": "function", "z": "86a34ee77bf6db10", "name": "s5", "func": "msg.payload = Number(msg.payload.s5) ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1300, "wires": [ [ "d82070a29ee7072c" ] ] }, { "id": "53e82b867be45c4a", "type": "function", "z": "86a34ee77bf6db10", "name": "s6", "func": "msg.payload = Number(msg.payload.s6) ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1340, "wires": [ [ "04f3fd26b7f05cd2" ] ] }, { "id": "4fe669c3987dcfe4", "type": "function", "z": "86a34ee77bf6db10", "name": "s7", "func": "msg.payload = Number(msg.payload.s7) ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1380, "wires": [ [ "b2154eb18bb4e996" ] ] }, { "id": "66094b9e85ac4d5b", "type": "function", "z": "86a34ee77bf6db10", "name": "reset", "func": "flow.set(\"i0\", 0);\nflow.set(\"i1\", 0);\nflow.set(\"i2\", 0);\nflow.set(\"i3\", 0);\nflow.set(\"i4\", 0);\nflow.set(\"i5\", 0);\nflow.set(\"i6\", 0);\nflow.set(\"i7\", 0);\n\nglobal.set(\"a0\", 0);\nglobal.set(\"a1\", 0);\nglobal.set(\"a2\", 0);\nglobal.set(\"a3\", 0);\nglobal.set(\"a4\", 0);\nglobal.set(\"a5\", 0);\nglobal.set(\"a6\", 0);\nglobal.set(\"a7\", 0);\n\nglobal.set(\"m0\", 0);\nglobal.set(\"m1\", 0);\nglobal.set(\"m2\", 0);\nglobal.set(\"m3\", 0);\n\nglobal.set(\"p0\", 0);\n\nglobal.set(\"v0\", 0);\n\nglobal.set(\"c0\", 1);\nglobal.set(\"c1\", 1);\nglobal.set(\"c2\", 0);\nglobal.set(\"c3\", 0);\nglobal.set(\"c4\", 0);\nglobal.set(\"c5\", 0);\nglobal.set(\"c6\", 0);\nglobal.set(\"c7\", 0);\n\nglobal.set(\"s8\", 0);\nglobal.set(\"s9\", 0);\n\nglobal.set(\"flag0\", 0);\n\nmsg.payload = false;\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 430, "y": 520, "wires": [ [ "37bdef06b07499f2", "ef83bfa989b6d72a", "7bfba44b320a1826", "929ad4eb2a0bbb68", "1805fe84b15e252a", "5a52593d8e054e97", "b677272b111f5855", "961e284427aa8f71", "9cdcb36a20d2892f", "1f3e907130059c8c" ] ] }, { "id": "94418b813e53bf2c", "type": "ui-button", "z": "86a34ee77bf6db10", "group": "5fe915fcd26e78ae", "name": "", "label": "B4", "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": 710, "y": 840, "wires": [ [ "b5a2e6d66f70685c" ] ] }, { "id": "b674f39795cf1427", "type": "ui-button", "z": "86a34ee77bf6db10", "group": "5fe915fcd26e78ae", "name": "", "label": "B5", "order": 6, "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": 710, "y": 880, "wires": [ [ "925464e2aac8a2e6" ] ] }, { "id": "adb70bf2d6204ecf", "type": "ui-button", "z": "86a34ee77bf6db10", "group": "5fe915fcd26e78ae", "name": "", "label": "B6", "order": 7, "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": 710, "y": 920, "wires": [ [ "3d73b77fe116a743" ] ] }, { "id": "b84a284e2e61c6ac", "type": "ui-button", "z": "86a34ee77bf6db10", "group": "5fe915fcd26e78ae", "name": "", "label": "B7", "order": 8, "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": 710, "y": 960, "wires": [ [ "2ad23092aec0c7c0" ] ] }, { "id": "b5a2e6d66f70685c", "type": "function", "z": "86a34ee77bf6db10", "name": "send b4", "func": "msg.payload = {\n \"b4\": 1\n};\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 880, "y": 840, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "925464e2aac8a2e6", "type": "function", "z": "86a34ee77bf6db10", "name": "send b5", "func": "msg.payload = {\n \"b5\": 1\n};\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 880, "y": 880, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "3d73b77fe116a743", "type": "function", "z": "86a34ee77bf6db10", "name": "send b6", "func": "msg.payload = {\n \"b6\": 1\n};\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 880, "y": 920, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "696586fa25378166", "type": "function", "z": "86a34ee77bf6db10", "name": "set i0", "func": "flow.set(\"i0\", msg.payload);\nmsg.payload = {};\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 870, "y": 140, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "ef83bfa989b6d72a", "type": "ui-switch", "z": "86a34ee77bf6db10", "name": "", "label": "I0", "group": "00ea85a0e0b38df3", "order": 1, "width": 0, "height": 0, "passthru": false, "decouple": false, "topic": "topic", "topicType": "msg", "style": "", "className": "", "layout": "row-spread", "clickableArea": "switch", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 710, "y": 140, "wires": [ [ "696586fa25378166" ] ] }, { "id": "51bd327a4f697cbc", "type": "ui-button", "z": "86a34ee77bf6db10", "group": "02fab8cbf37e2bb7", "name": "", "label": "ARRET", "order": 2, "width": 0, "height": 0, "emulateClick": false, "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "", "payloadType": "str", "topic": "topic", "topicType": "msg", "buttonColor": "red", "textColor": "", "iconColor": "", "enableClick": true, "enablePointerdown": false, "pointerdownPayload": "", "pointerdownPayloadType": "str", "enablePointerup": false, "pointerupPayload": "", "pointerupPayloadType": "str", "x": 720, "y": 600, "wires": [ [ "be228653fc2bdb0f" ] ] }, { "id": "31f0ac2326dee161", "type": "function", "z": "86a34ee77bf6db10", "name": "send b0", "func": "msg.payload = {\n \"b0\": 1\n};\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 880, "y": 680, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "37bdef06b07499f2", "type": "function", "z": "86a34ee77bf6db10", "name": "format mqtt", "func": "let i0 = Number(flow.get(\"i0\")) || 0;\nlet i1 = Number(flow.get(\"i1\")) || 0;\nlet i2 = Number(flow.get(\"i2\")) || 0;\nlet i3 = Number(flow.get(\"i3\")) || 0;\nlet i4 = Number(flow.get(\"i4\")) || 0;\nlet i5 = Number(flow.get(\"i5\")) || 0;\nlet i6 = Number(flow.get(\"i6\")) || 0;\nlet i7 = Number(flow.get(\"i7\")) || 0;\n\nlet v0 = Number(global.get(\"v0\")) || 0;\n\nif (typeof msg.payload[\"arret\"] === 'undefined') msg.payload[\"arret\"] = 1;\nif (typeof msg.payload[\"marche\"] === 'undefined') msg.payload[\"marche\"] = 0;\n\nif (typeof msg.payload[\"b0\"] === 'undefined') msg.payload[\"b0\"] = 0;\nif (typeof msg.payload[\"b1\"] === 'undefined') msg.payload[\"b1\"] = 0;\nif (typeof msg.payload[\"b2\"] === 'undefined') msg.payload[\"b2\"] = 0;\nif (typeof msg.payload[\"b3\"] === 'undefined') msg.payload[\"b3\"] = 0;\nif (typeof msg.payload[\"b4\"] === 'undefined') msg.payload[\"b4\"] = 0;\nif (typeof msg.payload[\"b5\"] === 'undefined') msg.payload[\"b5\"] = 0;\nif (typeof msg.payload[\"b6\"] === 'undefined') msg.payload[\"b6\"] = 0;\nif (typeof msg.payload[\"b7\"] === 'undefined') msg.payload[\"b7\"] = 0;\n\nmsg.payload[\"i0\"] = i0;\nmsg.payload[\"i1\"] = i1;\nmsg.payload[\"i2\"] = i2;\nmsg.payload[\"i3\"] = i3;\nmsg.payload[\"i4\"] = i4;\nmsg.payload[\"i5\"] = i5;\nmsg.payload[\"i6\"] = i6;\nmsg.payload[\"i7\"] = i7;\n\nmsg.payload[\"c0\"] = Number(global.get(\"c0\")) || 0;\nmsg.payload[\"c1\"] = Number(global.get(\"c1\")) || 0;\nmsg.payload[\"c2\"] = Number(global.get(\"c2\")) || 0;\nmsg.payload[\"c3\"] = Number(global.get(\"c3\")) || 0;\nmsg.payload[\"c4\"] = Number(global.get(\"c4\")) || 0;\nmsg.payload[\"c5\"] = Number(global.get(\"c5\")) || 0;\nmsg.payload[\"c6\"] = Number(global.get(\"c6\")) || 0;\nmsg.payload[\"c7\"] = Number(global.get(\"c7\")) || 0;\n\nmsg.payload[\"v0\"] = v0;\nmsg.payload[\"p0\"] = Number(global.get(\"p0\")) || 0;\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1430, "y": 500, "wires": [ [ "e9cc79327d44b9fb", "99e68919914f2326" ] ] }, { "id": "2ad23092aec0c7c0", "type": "function", "z": "86a34ee77bf6db10", "name": "send b7", "func": "msg.payload = {\n \"b7\": 1\n};\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 880, "y": 960, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "452fe6ac6695e64e", "type": "function", "z": "86a34ee77bf6db10", "name": "set i1", "func": "flow.set(\"i1\", msg.payload);\nmsg.payload = {};\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 870, "y": 180, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "7bfba44b320a1826", "type": "ui-switch", "z": "86a34ee77bf6db10", "name": "", "label": "I1", "group": "00ea85a0e0b38df3", "order": 2, "width": 0, "height": 0, "passthru": false, "decouple": false, "topic": "topic", "topicType": "msg", "style": "", "className": "", "layout": "row-spread", "clickableArea": "switch", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 710, "y": 180, "wires": [ [ "452fe6ac6695e64e" ] ] }, { "id": "9c5672db1c4760f9", "type": "function", "z": "86a34ee77bf6db10", "name": "set i2", "func": "flow.set(\"i2\", msg.payload);\nmsg.payload = {};\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 870, "y": 220, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "929ad4eb2a0bbb68", "type": "ui-switch", "z": "86a34ee77bf6db10", "name": "", "label": "I2", "group": "00ea85a0e0b38df3", "order": 3, "width": 0, "height": 0, "passthru": false, "decouple": false, "topic": "topic", "topicType": "msg", "style": "", "className": "", "layout": "row-spread", "clickableArea": "switch", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 710, "y": 220, "wires": [ [ "9c5672db1c4760f9" ] ] }, { "id": "893f151655f108a7", "type": "function", "z": "86a34ee77bf6db10", "name": "set i3", "func": "flow.set(\"i3\", msg.payload);\nmsg.payload = {};\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 870, "y": 260, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "1805fe84b15e252a", "type": "ui-switch", "z": "86a34ee77bf6db10", "name": "", "label": "I3", "group": "00ea85a0e0b38df3", "order": 4, "width": 0, "height": 0, "passthru": false, "decouple": false, "topic": "topic", "topicType": "msg", "style": "", "className": "", "layout": "row-spread", "clickableArea": "switch", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 710, "y": 260, "wires": [ [ "893f151655f108a7" ] ] }, { "id": "e353d2804060adea", "type": "function", "z": "86a34ee77bf6db10", "name": "set i4", "func": "flow.set(\"i4\", msg.payload);\nmsg.payload = {};\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 870, "y": 300, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "5a52593d8e054e97", "type": "ui-switch", "z": "86a34ee77bf6db10", "name": "", "label": "I4", "group": "00ea85a0e0b38df3", "order": 5, "width": 0, "height": 0, "passthru": false, "decouple": false, "topic": "topic", "topicType": "msg", "style": "", "className": "", "layout": "row-spread", "clickableArea": "switch", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 710, "y": 300, "wires": [ [ "e353d2804060adea" ] ] }, { "id": "447d6f906eddfbec", "type": "function", "z": "86a34ee77bf6db10", "name": "set i5", "func": "flow.set(\"i5\", msg.payload);\nmsg.payload = {};\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 870, "y": 340, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "b677272b111f5855", "type": "ui-switch", "z": "86a34ee77bf6db10", "name": "", "label": "I5", "group": "00ea85a0e0b38df3", "order": 6, "width": 0, "height": 0, "passthru": false, "decouple": false, "topic": "topic", "topicType": "msg", "style": "", "className": "", "layout": "row-spread", "clickableArea": "switch", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 710, "y": 340, "wires": [ [ "447d6f906eddfbec" ] ] }, { "id": "f98b878cec139ee4", "type": "function", "z": "86a34ee77bf6db10", "name": "set i6", "func": "flow.set(\"i6\", msg.payload);\nmsg.payload = {};\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 870, "y": 380, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "961e284427aa8f71", "type": "ui-switch", "z": "86a34ee77bf6db10", "name": "", "label": "I6", "group": "00ea85a0e0b38df3", "order": 7, "width": 0, "height": 0, "passthru": false, "decouple": false, "topic": "topic", "topicType": "msg", "style": "", "className": "", "layout": "row-spread", "clickableArea": "switch", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 710, "y": 380, "wires": [ [ "f98b878cec139ee4" ] ] }, { "id": "42287fe19a5e1337", "type": "function", "z": "86a34ee77bf6db10", "name": "set i7", "func": "flow.set(\"i7\", msg.payload);\nmsg.payload = {};\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 870, "y": 420, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "9cdcb36a20d2892f", "type": "ui-switch", "z": "86a34ee77bf6db10", "name": "", "label": "I7", "group": "00ea85a0e0b38df3", "order": 8, "width": 0, "height": 0, "passthru": false, "decouple": false, "topic": "topic", "topicType": "msg", "style": "", "className": "", "layout": "row-spread", "clickableArea": "switch", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "x": 710, "y": 420, "wires": [ [ "42287fe19a5e1337" ] ] }, { "id": "99e68919914f2326", "type": "debug", "z": "86a34ee77bf6db10", "name": "debug 1", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1760, "y": 500, "wires": [] }, { "id": "be228653fc2bdb0f", "type": "function", "z": "86a34ee77bf6db10", "name": "send arret", "func": "msg.payload = {\n \"arret\": 0\n};\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 880, "y": 600, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "63046df5f8142320", "type": "inject", "z": "86a34ee77bf6db10", "name": "", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": 0.1, "topic": "", "payload": "{\"t\":0}", "payloadType": "json", "x": 1250, "y": 1000, "wires": [ [ "37bdef06b07499f2", "30d93ea6f5e8d0c1", "f0a7071d5b71ee7d", "74bf36dd658deecd", "2cc563dff2f59f18", "cd67d17ed708f8d2", "4f19905f0d970ca1", "c76542262137e660", "3c5d996abc900e3d", "6d425818a9a96be2", "c613454bd48662e1" ] ] }, { "id": "1f3e907130059c8c", "type": "ui-slider", "z": "86a34ee77bf6db10", "group": "b1bde11bdd78b9f1", "name": "", "label": "Consigne", "tooltip": "", "order": 2, "width": 0, "height": 0, "passthru": false, "outs": "all", "topic": "topic", "topicType": "msg", "thumbLabel": "true", "showTicks": "always", "min": 0, "max": "100", "step": "1", "className": "", "iconPrepend": "", "iconAppend": "", "color": "", "colorTrack": "", "colorThumb": "", "showTextField": false, "x": 720, "y": 480, "wires": [ [ "d193b7c9c0a6c51f" ] ] }, { "id": "8a9cc277cf3f445b", "type": "ui-progress", "z": "86a34ee77bf6db10", "group": "b1bde11bdd78b9f1", "name": "", "label": "Progress", "order": 1, "width": 0, "height": 0, "color": "", "className": "", "x": 1680, "y": 820, "wires": [] }, { "id": "87bd077b61c6e623", "type": "function", "z": "86a34ee77bf6db10", "name": "m0", "func": "global.set(\"m0\", Number(msg.payload.m0));\nmsg.payload = msg.payload.m0 * 10;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1440, "wires": [ [ "c7a24187c63a6f92" ] ] }, { "id": "17f45fa5a72be929", "type": "function", "z": "86a34ee77bf6db10", "name": "m1", "func": "global.set(\"m1\", Number(msg.payload.m1));\nmsg.payload = msg.payload.m1 * 10;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1480, "wires": [ [ "fc11f649c39c46d2" ] ] }, { "id": "96a15b4c506aa11a", "type": "function", "z": "86a34ee77bf6db10", "name": "m2", "func": "global.set(\"m2\", Number(msg.payload.m2));\nmsg.payload = msg.payload.m2 * 10;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1520, "wires": [ [ "8e5c745d23d5380c" ] ] }, { "id": "10a21959cbd3cc1e", "type": "function", "z": "86a34ee77bf6db10", "name": "m3", "func": "global.set(\"m3\", Number(msg.payload.m3));\nmsg.payload = msg.payload.m3 * 10;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1560, "wires": [ [ "1f1e018651c474a0" ] ] }, { "id": "30d93ea6f5e8d0c1", "type": "function", "z": "86a34ee77bf6db10", "name": "p0", "func": "msg.payload = global.get(\"p0\");\nreturn msg;\n", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1490, "y": 820, "wires": [ [ "8a9cc277cf3f445b", "ffe1e88c3c60e495" ] ] }, { "id": "d193b7c9c0a6c51f", "type": "function", "z": "86a34ee77bf6db10", "name": "v0", "func": "global.set(\"v0\", Number(msg.payload));\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 870, "y": 480, "wires": [ [ "37bdef06b07499f2" ] ] }, { "id": "aff33a1ec25cb285", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "02fab8cbf37e2bb7", "order": 9, "width": "1", "height": "1", "name": "", "label": "", "format": "{{msg.payload}}", "layout": "row-right", "style": true, "font": "", "fontSize": "24", "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 870, "y": 1700, "wires": [] }, { "id": "697cc7b491485ee5", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "02fab8cbf37e2bb7", "order": 7, "width": "1", "height": "1", "name": "", "label": "", "format": "{{msg.payload}}", "layout": "row-right", "style": true, "font": "", "fontSize": "24", "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 870, "y": 1660, "wires": [] }, { "id": "3b6fc91887629b43", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "02fab8cbf37e2bb7", "order": 5, "width": "1", "height": "1", "name": "", "label": "", "format": "{{msg.payload}}", "layout": "row-right", "style": true, "font": "", "fontSize": "24", "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 870, "y": 1620, "wires": [] }, { "id": "1cd3d290f7f7d539", "type": "function", "z": "86a34ee77bf6db10", "name": "s8", "func": "msg.payload = Number(msg.payload.s8) == 1 ? \"🟒\" : \"βšͺ\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1700, "wires": [ [ "aff33a1ec25cb285" ] ] }, { "id": "88310a9e40d564fc", "type": "function", "z": "86a34ee77bf6db10", "name": "s8", "func": "msg.payload = Number(msg.payload.s8) == 2 ? \"🟠\" : \"βšͺ\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1660, "wires": [ [ "697cc7b491485ee5" ] ] }, { "id": "b543660f60319f21", "type": "function", "z": "86a34ee77bf6db10", "name": "s8", "func": "msg.payload = Number(msg.payload.s8) == 3 ? \"πŸ”΄\" : \"βšͺ\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1620, "wires": [ [ "3b6fc91887629b43" ] ] }, { "id": "c7a24187c63a6f92", "type": "ui-gauge", "z": "86a34ee77bf6db10", "name": "", "group": "6b44d4b22cd7b3dc", "order": 1, "value": "payload", "valueType": "msg", "width": "2", "height": "2", "gtype": "gauge-half", "gstyle": "needle", "title": "gauge", "alwaysShowTitle": false, "floatingTitlePosition": "top-left", "units": "units", "icon": "", "prefix": "", "suffix": "", "segments": [ { "from": "0", "color": "#5cd65c", "text": "", "textType": "label" }, { "from": "4", "color": "#ffc800", "text": "", "textType": "label" }, { "from": "7", "color": "#ea5353", "text": "", "textType": "label" } ], "min": 0, "max": 10, "sizeThickness": 16, "sizeGap": 4, "sizeKeyThickness": 8, "styleRounded": true, "styleGlow": false, "className": "", "x": 870, "y": 1440, "wires": [ [] ] }, { "id": "fc11f649c39c46d2", "type": "ui-gauge", "z": "86a34ee77bf6db10", "name": "", "group": "6b44d4b22cd7b3dc", "order": 2, "value": "payload", "valueType": "msg", "width": "2", "height": "2", "gtype": "gauge-half", "gstyle": "needle", "title": "gauge", "alwaysShowTitle": false, "floatingTitlePosition": "top-left", "units": "units", "icon": "", "prefix": "", "suffix": "", "segments": [ { "from": "0", "color": "#5cd65c", "text": "", "textType": "label" }, { "from": "4", "color": "#ffc800", "text": "", "textType": "label" }, { "from": "7", "color": "#ea5353", "text": "", "textType": "label" } ], "min": 0, "max": 10, "sizeThickness": 16, "sizeGap": 4, "sizeKeyThickness": 8, "styleRounded": true, "styleGlow": false, "className": "", "x": 870, "y": 1480, "wires": [ [] ] }, { "id": "8e5c745d23d5380c", "type": "ui-gauge", "z": "86a34ee77bf6db10", "name": "", "group": "6b44d4b22cd7b3dc", "order": 3, "value": "payload", "valueType": "msg", "width": "2", "height": "2", "gtype": "gauge-half", "gstyle": "needle", "title": "gauge", "alwaysShowTitle": false, "floatingTitlePosition": "top-left", "units": "units", "icon": "", "prefix": "", "suffix": "", "segments": [ { "from": "0", "color": "#5cd65c", "text": "", "textType": "label" }, { "from": "4", "color": "#ffc800", "text": "", "textType": "label" }, { "from": "7", "color": "#ea5353", "text": "", "textType": "label" } ], "min": 0, "max": 10, "sizeThickness": 16, "sizeGap": 4, "sizeKeyThickness": 8, "styleRounded": true, "styleGlow": false, "className": "", "x": 870, "y": 1520, "wires": [ [] ] }, { "id": "1f1e018651c474a0", "type": "ui-gauge", "z": "86a34ee77bf6db10", "name": "", "group": "6b44d4b22cd7b3dc", "order": 4, "value": "payload", "valueType": "msg", "width": "2", "height": "2", "gtype": "gauge-half", "gstyle": "needle", "title": "gauge", "alwaysShowTitle": false, "floatingTitlePosition": "top-left", "units": "units", "icon": "", "prefix": "", "suffix": "", "segments": [ { "from": "0", "color": "#5cd65c", "text": "", "textType": "label" }, { "from": "4", "color": "#ffc800", "text": "", "textType": "label" }, { "from": "7", "color": "#ea5353", "text": "", "textType": "label" } ], "min": 0, "max": 10, "sizeThickness": 16, "sizeGap": 4, "sizeKeyThickness": 8, "styleRounded": true, "styleGlow": false, "className": "", "x": 870, "y": 1560, "wires": [ [] ] }, { "id": "3a4fc72ec7ac5e24", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "6b44d4b22cd7b3dc", "order": 6, "width": "1", "height": "1", "name": "", "label": "c0", "format": "{{msg.payload}}", "layout": "row-left", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 1670, "y": 880, "wires": [] }, { "id": "f9dc47909191e3c8", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "6b44d4b22cd7b3dc", "order": 8, "width": "1", "height": "1", "name": "", "label": "c1", "format": "{{msg.payload}}", "layout": "row-left", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 1670, "y": 920, "wires": [] }, { "id": "010deed59c85eb88", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "6b44d4b22cd7b3dc", "order": 9, "width": "1", "height": "1", "name": "", "label": "c2", "format": "{{msg.payload}}", "layout": "row-right", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 1670, "y": 960, "wires": [] }, { "id": "f0a7071d5b71ee7d", "type": "function", "z": "86a34ee77bf6db10", "name": "c0", "func": "const value = global.get(\"c0\");\nmsg.payload = value ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1490, "y": 880, "wires": [ [ "3a4fc72ec7ac5e24" ] ] }, { "id": "74bf36dd658deecd", "type": "function", "z": "86a34ee77bf6db10", "name": "c1", "func": "const value = global.get(\"c1\");\nmsg.payload = value ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1490, "y": 920, "wires": [ [ "f9dc47909191e3c8" ] ] }, { "id": "2cc563dff2f59f18", "type": "function", "z": "86a34ee77bf6db10", "name": "c2", "func": "const value = global.get(\"c2\");\nmsg.payload = value ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1490, "y": 960, "wires": [ [ "010deed59c85eb88" ] ] }, { "id": "ee9fdf6abaeac67b", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "6b44d4b22cd7b3dc", "order": 12, "width": "1", "height": "1", "name": "", "label": "c3", "format": "{{msg.payload}}", "layout": "row-right", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 1670, "y": 1000, "wires": [] }, { "id": "a6a2a869c90e9632", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "6b44d4b22cd7b3dc", "order": 13, "width": "1", "height": "1", "name": "", "label": "c4", "format": "{{msg.payload}}", "layout": "row-left", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 1670, "y": 1040, "wires": [] }, { "id": "67f154181e143217", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "6b44d4b22cd7b3dc", "order": 14, "width": "1", "height": "1", "name": "", "label": "c5", "format": "{{msg.payload}}", "layout": "row-left", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 1670, "y": 1080, "wires": [] }, { "id": "8f07f55780eaea54", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "6b44d4b22cd7b3dc", "order": 15, "width": "1", "height": "1", "name": "", "label": "c6", "format": "{{msg.payload}}", "layout": "row-left", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 1670, "y": 1120, "wires": [] }, { "id": "3e9c527b9179cc5a", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "6b44d4b22cd7b3dc", "order": 16, "width": "1", "height": "1", "name": "", "label": "c7", "format": "{{msg.payload}}", "layout": "row-right", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 1670, "y": 1160, "wires": [] }, { "id": "cd67d17ed708f8d2", "type": "function", "z": "86a34ee77bf6db10", "name": "c3", "func": "const value = global.get(\"c3\");\nmsg.payload = value ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1490, "y": 1000, "wires": [ [ "ee9fdf6abaeac67b" ] ] }, { "id": "4f19905f0d970ca1", "type": "function", "z": "86a34ee77bf6db10", "name": "c4", "func": "const value = global.get(\"c4\");\nmsg.payload = value ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1490, "y": 1040, "wires": [ [ "a6a2a869c90e9632" ] ] }, { "id": "c76542262137e660", "type": "function", "z": "86a34ee77bf6db10", "name": "c5", "func": "const value = global.get(\"c5\");\nmsg.payload = value ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1490, "y": 1080, "wires": [ [ "67f154181e143217" ] ] }, { "id": "3c5d996abc900e3d", "type": "function", "z": "86a34ee77bf6db10", "name": "c6", "func": "const value = global.get(\"c6\");\nmsg.payload = value ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1490, "y": 1120, "wires": [ [ "8f07f55780eaea54" ] ] }, { "id": "6d425818a9a96be2", "type": "function", "z": "86a34ee77bf6db10", "name": "c7", "func": "const value = global.get(\"c7\");\nmsg.payload = value ? \"🟩\" : \"πŸŸ₯\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1490, "y": 1160, "wires": [ [ "3e9c527b9179cc5a" ] ] }, { "id": "c219b897538f7dfd", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "6b44d4b22cd7b3dc", "order": 5, "width": "2", "height": "1", "name": "", "label": "Actionneur 0", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payloads", "valueType": "msg", "x": 1870, "y": 880, "wires": [] }, { "id": "74204db55792e5ad", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "6b44d4b22cd7b3dc", "order": 7, "width": "2", "height": "1", "name": "", "label": "Actionneur 1", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payloads", "valueType": "msg", "x": 1870, "y": 920, "wires": [] }, { "id": "8d5eb1827691bec4", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "6b44d4b22cd7b3dc", "order": 10, "width": "2", "height": "1", "name": "", "label": "Actionneur 2", "format": "{{msg.payload}}", "layout": "row-spread", "style": false, "font": "", "fontSize": 16, "color": "#717171", "wrapText": false, "className": "", "value": "payloads", "valueType": "msg", "x": 1870, "y": 960, "wires": [] }, { "id": "2faea28a74fc5ab6", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "02fab8cbf37e2bb7", "order": 4, "width": "1", "height": "1", "name": "", "label": "", "format": "{{msg.payload}}", "layout": "row-left", "style": true, "font": "", "fontSize": "44", "color": "#717171", "wrapText": false, "className": "", "value": "πŸ ™", "valueType": "str", "x": 870, "y": 1760, "wires": [] }, { "id": "d6912aeba1d9118b", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "02fab8cbf37e2bb7", "order": 6, "width": "1", "height": "1", "name": "", "label": "", "format": "{{msg.payload}}", "layout": "row-left", "style": true, "font": "", "fontSize": "44", "color": "#717171", "wrapText": false, "className": "", "value": "πŸ ›", "valueType": "str", "x": 870, "y": 1800, "wires": [] }, { "id": "397735dd2560f7cf", "type": "link out", "z": "86a34ee77bf6db10", "name": "main_out", "mode": "link", "links": [ "e5da08ba69fe6fb8" ], "x": 655, "y": 1940, "wires": [] }, { "id": "1f5adfcb29a89bb1", "type": "function", "z": "86a34ee77bf6db10", "name": "s9 πŸ ™", "func": "msg.ui_update = msg.payload.s9 == 1 ? { \"color\": \"#000\"} : { \"color\": \"#ddd\"};\nglobal.set(\"s9\", msg.payload.s9);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1760, "wires": [ [ "2faea28a74fc5ab6" ] ] }, { "id": "963da6ffcbd90744", "type": "function", "z": "86a34ee77bf6db10", "name": "s9 πŸ ›", "func": "msg.ui_update = msg.payload.s9 == 1 ? { \"color\": \"#000\"} : { \"color\": \"#ddd\"};\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1800, "wires": [ [ "d6912aeba1d9118b" ] ] }, { "id": "dda34928984abfc5", "type": "ui-text", "z": "86a34ee77bf6db10", "group": "02fab8cbf37e2bb7", "order": 8, "width": "1", "height": "1", "name": "", "label": "", "format": "{{msg.payload}}", "layout": "row-left", "style": true, "font": "", "fontSize": "24", "color": "#717171", "wrapText": false, "className": "", "value": "payload", "valueType": "msg", "x": 870, "y": 1860, "wires": [] }, { "id": "100a58f1b621c53a", "type": "function", "z": "86a34ee77bf6db10", "name": "s10", "func": "msg.payload = Number(msg.payload.s10);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 690, "y": 1860, "wires": [ [ "dda34928984abfc5" ] ] }, { "id": "48e613c44cc4f340", "type": "ui-button", "z": "86a34ee77bf6db10", "group": "02fab8cbf37e2bb7", "name": "", "label": "RESET", "order": 3, "width": 0, "height": 0, "emulateClick": true, "tooltip": "", "color": "", "bgcolor": "", "className": "", "icon": "", "iconPosition": "left", "payload": "0", "payloadType": "num", "topic": "topic", "topicType": "msg", "buttonColor": "#dddddd", "textColor": "", "iconColor": "", "enableClick": true, "enablePointerdown": false, "pointerdownPayload": "", "pointerdownPayloadType": "str", "enablePointerup": false, "pointerupPayload": "", "pointerupPayloadType": "str", "x": 320, "y": 400, "wires": [ [ "66094b9e85ac4d5b", "306ef028c106a343" ] ] }, { "id": "306ef028c106a343", "type": "function", "z": "86a34ee77bf6db10", "name": "reset s", "func": "msg.payload = {\n \"s0\": 0,\n \"s1\": 0,\n \"s2\": 0,\n \"s3\": 0,\n \"s4\": 0,\n \"s5\": 0,\n \"s6\": 0,\n \"s7\": 0,\n \"s8\": 0,\n \"s9\": 0,\n \"s10\": 0,\n \"s11\": 0,\n \"m0\": 0,\n \"m1\": 0,\n \"m2\": 0,\n \"m3\": 0\n}\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 190, "y": 940, "wires": [ [ "586e5d5f736036fc", "1645e45b491ec035" ] ] }, { "id": "586e5d5f736036fc", "type": "function", "z": "86a34ee77bf6db10", "name": "nop", "func": "return msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 370, "y": 1480, "wires": [ [ "b10ff790c2c745e2", "3243dba201971bd7", "051388bb768084d7", "c793fceafb6fb3f0", "65723f43ca71069b", "3ceeaa9da55ccbb8", "53e82b867be45c4a", "4fe669c3987dcfe4", "87bd077b61c6e623", "17f45fa5a72be929", "96a15b4c506aa11a", "10a21959cbd3cc1e", "1cd3d290f7f7d539", "88310a9e40d564fc", "b543660f60319f21", "397735dd2560f7cf", "963da6ffcbd90744", "1f5adfcb29a89bb1", "100a58f1b621c53a" ] ] }, { "id": "1645e45b491ec035", "type": "function", "z": "86a34ee77bf6db10", "name": "function 1", "func": "msg.ui_update = {\"label\":\"s0\"};\nreturn msg;\n", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 560, "y": 1020, "wires": [ [ "9a23c6f558ea0378" ] ] }, { "id": "c613454bd48662e1", "type": "link out", "z": "86a34ee77bf6db10", "name": "main_tick", "mode": "link", "links": [ "978ded7ba3456f70", "5dac1387a71bc55e", "ed71da98200376bd" ], "x": 1225, "y": 820, "wires": [] }, { "id": "5ff7cf747202687b", "type": "debug", "z": "86a34ee77bf6db10", "name": "debug 2", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 380, "y": 1620, "wires": [] }, { "id": "ffe1e88c3c60e495", "type": "function", "z": "86a34ee77bf6db10", "name": "function 3", "func": "msg.payload = msg.payload * 30;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1680, "y": 760, "wires": [ [ "3ad77e23a54df2d0" ] ] }, { "id": "3ad77e23a54df2d0", "type": "ui-gauge", "z": "86a34ee77bf6db10", "name": "", "group": "050148aff99031d4", "order": 1, "value": "payload", "valueType": "msg", "width": "4", "height": "5", "gtype": "gauge-tank", "gstyle": "needle", "title": "gauge", "alwaysShowTitle": false, "floatingTitlePosition": "top-left", "units": "units", "icon": "", "prefix": "", "suffix": "", "segments": [ { "from": "0", "color": "#e01b24", "text": "", "textType": "label" }, { "from": "500", "color": "#ff7800", "text": "", "textType": "label" }, { "from": "1000", "color": "#f6d32d", "text": "", "textType": "label" }, { "from": "1500", "color": "#2397d1", "text": "", "textType": "label" } ], "min": 0, "max": "3000", "sizeThickness": 16, "sizeGap": 4, "sizeKeyThickness": 8, "styleRounded": true, "styleGlow": false, "className": "", "x": 1870, "y": 760, "wires": [ [] ] }, { "id": "cefd0feeeaf4227c", "type": "function", "z": "b5e17af18ea9731a", "name": "a0", "func": "global.set(\"a0\", Number(msg.payload.a0));\nmsg.payload = msg.payload.a0;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 430, "y": 120, "wires": [ [ "faccd817ca7a8365" ] ] }, { "id": "faccd817ca7a8365", "type": "rbe", "z": "b5e17af18ea9731a", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": false, "property": "payload", "topi": "topic", "x": 570, "y": 120, "wires": [ [ "4986d82da7142a49", "f86f3483ef4e1597" ] ] }, { "id": "f6f1221e4d6b3682", "type": "delay", "z": "b5e17af18ea9731a", "name": "sortie verrin", "pauseType": "delay", "timeout": "800", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 950, "y": 200, "wires": [ [ "5aedb839421d6b67" ] ] }, { "id": "5aedb839421d6b67", "type": "function", "z": "b5e17af18ea9731a", "name": "c6 = 1", "func": "global.set(\"c6\", 1);\nglobal.set(\"flag0\", 1);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1130, "y": 200, "wires": [ [] ] }, { "id": "4986d82da7142a49", "type": "switch", "z": "b5e17af18ea9731a", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "0", "vt": "num" }, { "t": "eq", "v": "1", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 740, "y": 120, "wires": [ [ "a0c18759a1ad2b61" ], [ "27bcdd18caf20c38", "f6f1221e4d6b3682" ] ] }, { "id": "27bcdd18caf20c38", "type": "function", "z": "b5e17af18ea9731a", "name": "c0 = 0", "func": "global.set(\"c0\", 0);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 930, "y": 160, "wires": [ [] ] }, { "id": "a0c18759a1ad2b61", "type": "delay", "z": "b5e17af18ea9731a", "name": "retour verrin", "pauseType": "delay", "timeout": "1200", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 950, "y": 100, "wires": [ [ "47209e9117e4de74" ] ] }, { "id": "47209e9117e4de74", "type": "function", "z": "b5e17af18ea9731a", "name": "c0 = 1", "func": "global.set(\"c0\", 1);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1130, "y": 100, "wires": [ [] ] }, { "id": "0ddd646c0134e82c", "type": "function", "z": "b5e17af18ea9731a", "name": "a1", "func": "global.set(\"a1\", Number(msg.payload.a1));\nmsg.payload = msg.payload.a1;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 430, "y": 340, "wires": [ [ "fed6f62ccc31d96a" ] ] }, { "id": "fed6f62ccc31d96a", "type": "rbe", "z": "b5e17af18ea9731a", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": true, "property": "payload", "topi": "topic", "x": 570, "y": 340, "wires": [ [ "0168dbe453be398a", "162148e31177ef80" ] ] }, { "id": "0168dbe453be398a", "type": "switch", "z": "b5e17af18ea9731a", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "0", "vt": "num" }, { "t": "eq", "v": "1", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 740, "y": 340, "wires": [ [ "e2d0c6d3f5b5c7c8", "4aa7b6db9b990fa0" ], [ "57189f4df55ec290", "6f8042f0cd1f9dd2" ] ] }, { "id": "4aa7b6db9b990fa0", "type": "function", "z": "b5e17af18ea9731a", "name": "c2 = 0", "func": "global.set(\"c2\", 0);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 950, "y": 280, "wires": [ [] ] }, { "id": "57189f4df55ec290", "type": "function", "z": "b5e17af18ea9731a", "name": "c1 = 0", "func": "global.set(\"c1\", 0);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 950, "y": 380, "wires": [ [] ] }, { "id": "6f8042f0cd1f9dd2", "type": "delay", "z": "b5e17af18ea9731a", "name": "sortie verrin", "pauseType": "delay", "timeout": "800", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 970, "y": 420, "wires": [ [ "fb3f9295012fd03e" ] ] }, { "id": "fb3f9295012fd03e", "type": "function", "z": "b5e17af18ea9731a", "name": "c2 = 1", "func": "global.set(\"c2\", 1);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1130, "y": 420, "wires": [ [] ] }, { "id": "e2d0c6d3f5b5c7c8", "type": "delay", "z": "b5e17af18ea9731a", "name": "retour verrin", "pauseType": "delay", "timeout": "1200", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 970, "y": 320, "wires": [ [ "aa06273eb1db7d1a" ] ] }, { "id": "aa06273eb1db7d1a", "type": "function", "z": "b5e17af18ea9731a", "name": "c1 = 1", "func": "global.set(\"c1\", 1);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1130, "y": 320, "wires": [ [] ] }, { "id": "3331b1d0398a3348", "type": "function", "z": "b5e17af18ea9731a", "name": "a2", "func": "global.set(\"a2\", Number(msg.payload.a2));\nmsg.payload = msg.payload.a2;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 430, "y": 540, "wires": [ [ "52cc761676e02b0f" ] ] }, { "id": "52cc761676e02b0f", "type": "rbe", "z": "b5e17af18ea9731a", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": true, "property": "payload", "topi": "topic", "x": 570, "y": 540, "wires": [ [ "3a0b09b9dc5fabce", "9d978e3e1104e039" ] ] }, { "id": "3a0b09b9dc5fabce", "type": "switch", "z": "b5e17af18ea9731a", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "0", "vt": "num" }, { "t": "eq", "v": "1", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 740, "y": 540, "wires": [ [ "70967b168ac9ceb6" ], [ "cd93246cd9e0f59b" ] ] }, { "id": "cd93246cd9e0f59b", "type": "delay", "z": "b5e17af18ea9731a", "name": "sortie verrin", "pauseType": "delay", "timeout": "800", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 970, "y": 580, "wires": [ [ "9b3a271ba664c506" ] ] }, { "id": "9b3a271ba664c506", "type": "function", "z": "b5e17af18ea9731a", "name": "c3 = 1", "func": "global.set(\"c3\", 1);\nglobal.set(\"c6\", 0);\n\nif (Number(global.get(\"flag0\")) == 1) {\n global.set(\"flag0\", 0);\n global.set(\"c5\", 1);\n}\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1130, "y": 580, "wires": [ [] ] }, { "id": "70967b168ac9ceb6", "type": "function", "z": "b5e17af18ea9731a", "name": "c3 = 0", "func": "global.set(\"c3\", 0);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 950, "y": 500, "wires": [ [] ] }, { "id": "696cf5af60cf4b64", "type": "function", "z": "b5e17af18ea9731a", "name": "a3", "func": "global.set(\"a3\", Number(msg.payload.a3));\nmsg.payload = msg.payload.a3;\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 430, "y": 660, "wires": [ [ "d90023d094b7e43d" ] ] }, { "id": "d90023d094b7e43d", "type": "rbe", "z": "b5e17af18ea9731a", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": true, "property": "payload", "topi": "topic", "x": 570, "y": 660, "wires": [ [ "65b5c174d03f4048", "389a82807314ace7" ] ] }, { "id": "65b5c174d03f4048", "type": "switch", "z": "b5e17af18ea9731a", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "0", "vt": "num" }, { "t": "eq", "v": "1", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 740, "y": 660, "wires": [ [], [ "a4029ba85e639676" ] ] }, { "id": "13d74fea2023a497", "type": "function", "z": "b5e17af18ea9731a", "name": "c5 = 0", "func": "global.set(\"c5\", 0);\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1130, "y": 720, "wires": [ [] ] }, { "id": "d64c41e23b4c2c83", "type": "inject", "z": "b5e17af18ea9731a", "name": "sortie a0", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"a0\":1}", "payloadType": "json", "x": 140, "y": 100, "wires": [ [ "cefd0feeeaf4227c" ] ] }, { "id": "182406188164351f", "type": "inject", "z": "b5e17af18ea9731a", "name": "retour a0", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"a0\":0}", "payloadType": "json", "x": 140, "y": 140, "wires": [ [ "cefd0feeeaf4227c" ] ] }, { "id": "d4d595cda525c169", "type": "inject", "z": "b5e17af18ea9731a", "name": "sortie a1", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"a1\":1}", "payloadType": "json", "x": 140, "y": 320, "wires": [ [ "0ddd646c0134e82c" ] ] }, { "id": "a3108919b481a583", "type": "inject", "z": "b5e17af18ea9731a", "name": "retour a1", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"a1\":0}", "payloadType": "json", "x": 140, "y": 360, "wires": [ [ "0ddd646c0134e82c" ] ] }, { "id": "d21d6bdbad082c02", "type": "inject", "z": "b5e17af18ea9731a", "name": "retour a2", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"a2\":0}", "payloadType": "json", "x": 140, "y": 540, "wires": [ [ "3331b1d0398a3348" ] ] }, { "id": "240c384cfd37aa35", "type": "inject", "z": "b5e17af18ea9731a", "name": "retour a3", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"a3\":0}", "payloadType": "json", "x": 140, "y": 680, "wires": [ [ "696cf5af60cf4b64" ] ] }, { "id": "cf5a2a9fba2009f1", "type": "inject", "z": "b5e17af18ea9731a", "name": "sortie a2", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"a2\":1}", "payloadType": "json", "x": 140, "y": 500, "wires": [ [ "3331b1d0398a3348" ] ] }, { "id": "746e5cf4ca1a8fa7", "type": "inject", "z": "b5e17af18ea9731a", "name": "sortie a3", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"a3\":1}", "payloadType": "json", "x": 140, "y": 640, "wires": [ [ "696cf5af60cf4b64" ] ] }, { "id": "a4029ba85e639676", "type": "delay", "z": "b5e17af18ea9731a", "name": "soufflage", "pauseType": "delay", "timeout": "500", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 960, "y": 720, "wires": [ [ "13d74fea2023a497" ] ] }, { "id": "e5da08ba69fe6fb8", "type": "link in", "z": "b5e17af18ea9731a", "d": true, "name": "link in 1", "links": [ "397735dd2560f7cf" ], "x": 215, "y": 420, "wires": [ [ "cefd0feeeaf4227c", "0ddd646c0134e82c", "3331b1d0398a3348", "696cf5af60cf4b64" ] ] }, { "id": "21ed11c5a39c33e4", "type": "comment", "z": "b5e17af18ea9731a", "name": "Estampilleuse (18)", "info": "", "x": 150, "y": 40, "wires": [] }, { "id": "f86f3483ef4e1597", "type": "debug", "z": "b5e17af18ea9731a", "name": "a0", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 730, "y": 40, "wires": [] }, { "id": "162148e31177ef80", "type": "debug", "z": "b5e17af18ea9731a", "name": "a1", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 730, "y": 240, "wires": [] }, { "id": "9d978e3e1104e039", "type": "debug", "z": "b5e17af18ea9731a", "name": "a2", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 730, "y": 460, "wires": [] }, { "id": "389a82807314ace7", "type": "debug", "z": "b5e17af18ea9731a", "name": "a3", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 730, "y": 600, "wires": [] }, { "id": "978ded7ba3456f70", "type": "link in", "z": "93dc5b41180d0746", "name": "link in 2", "links": [ "c613454bd48662e1" ], "x": 105, "y": 100, "wires": [ [ "efb9e7de1cbdadfc" ] ] }, { "id": "efb9e7de1cbdadfc", "type": "function", "z": "93dc5b41180d0746", "name": "niveau", "func": "let p0 = Number(global.get(\"p0\")) || 0;\n\nif (global.get(\"m0\")) {\n p0++;\n if (p0 > 100) p0 = 100;\n global.set(\"p0\", p0);\n}\n\nif (global.get(\"m1\")) {\n p0--;\n if (p0 < 0) p0 = 0;\n global.set(\"p0\", p0);\n}\n\nmsg.payload = p0;\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 290, "y": 100, "wires": [ [] ] }, { "id": "5dac1387a71bc55e", "type": "link in", "z": "93dc5b41180d0746", "d": true, "name": "link in 4", "links": [ "c613454bd48662e1" ], "x": 105, "y": 160, "wires": [ [ "0254cb2f1f7015da" ] ] }, { "id": "0254cb2f1f7015da", "type": "function", "z": "93dc5b41180d0746", "name": "monte charge", "func": "let p0 = Number(global.get(\"p0\")) || 0;\n\nlet sens = global.get(\"s9\");\n\nif (global.get(\"m0\")) {\n p0 += sens;\n if (p0 > 100) p0 = 100;\n if (p0 < 0) p0 = 0;\n global.set(\"p0\", p0);\n\n global.set(\"c0\", (p0 >= 9 && p0 <= 11));\n global.set(\"c1\", (p0 >= 19 && p0 <= 21));\n global.set(\"c2\", (p0 >= 29 && p0 <= 31));\n global.set(\"c3\", (p0 >= 39 && p0 <= 41));\n global.set(\"c4\", (p0 >= 49 && p0 <= 51));\n global.set(\"c5\", (p0 >= 59 && p0 <= 61));\n global.set(\"c6\", (p0 >= 69 && p0 <= 71));\n global.set(\"c7\", (p0 >= 79 && p0 <= 81)); \n}\n\nmsg.payload = p0;\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 320, "y": 160, "wires": [ [] ] }, { "id": "ed71da98200376bd", "type": "link in", "z": "93dc5b41180d0746", "d": true, "name": "link in 3", "links": [ "c613454bd48662e1" ], "x": 105, "y": 220, "wires": [ [ "24ee793574d63484" ] ] }, { "id": "24ee793574d63484", "type": "function", "z": "93dc5b41180d0746", "name": "function 2", "func": "let p0 = Number(global.get(\"p0\")) || 0;\nlet v0 = Number(global.get(\"v0\")) || 0;\n\nif (global.get(\"m0\")) {\n p0 += 0.3;\n}\n\nif (global.get(\"m2\")) {\n p0 += 0.3;\n}\n\nif (global.get(\"m3\")) {\n p0 += 0.3;\n}\n\nif (global.get(\"m4\")) {\n p0 += 0.3;\n}\n\np0 = p0 - v0 / 100;\n\nif (p0 > 100) p0 = 100;\nif (p0 < 0) p0 = 0;\nglobal.set(\"p0\", p0);\nmsg.payload = p0;\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 300, "y": 220, "wires": [ [] ] } ]