Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "ca70aebf.8b7e2",
- "type": "subflow",
- "name": "Detect online",
- "info": "",
- "in": [
- {
- "x": 260,
- "y": 100,
- "wires": [
- {
- "id": "c0505779.bb6578"
- },
- {
- "id": "242a47ed.f7eb88"
- },
- {
- "id": "b8c33dd6.c31fa"
- }
- ]
- }
- ],
- "out": [
- {
- "x": 1440,
- "y": 140,
- "wires": [
- {
- "id": "e97c5727.73a258",
- "port": 0
- },
- {
- "id": "72e79261.8b793c",
- "port": 0
- }
- ]
- }
- ]
- },
- {
- "id": "a043b62a.154eb8",
- "type": "delay",
- "z": "ca70aebf.8b7e2",
- "name": "",
- "pauseType": "delayv",
- "timeout": "5",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 870,
- "y": 160,
- "wires": [
- [
- "ba82b244.7038"
- ]
- ]
- },
- {
- "id": "72e79261.8b793c",
- "type": "inject",
- "z": "ca70aebf.8b7e2",
- "name": "Startup",
- "topic": "",
- "payload": "false",
- "payloadType": "bool",
- "repeat": "",
- "crontab": "",
- "once": true,
- "x": 930,
- "y": 260,
- "wires": [
- [
- "ba82b244.7038"
- ]
- ]
- },
- {
- "id": "242a47ed.f7eb88",
- "type": "change",
- "z": "ca70aebf.8b7e2",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "reset",
- "pt": "msg",
- "to": "true",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 670,
- "y": 160,
- "wires": [
- [
- "a043b62a.154eb8"
- ]
- ]
- },
- {
- "id": "58c7f41c.bb4dfc",
- "type": "delay",
- "z": "ca70aebf.8b7e2",
- "name": "",
- "pauseType": "delay",
- "timeout": "10",
- "timeoutUnits": "milliseconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 660,
- "y": 200,
- "wires": [
- [
- "a043b62a.154eb8"
- ]
- ]
- },
- {
- "id": "c0505779.bb6578",
- "type": "change",
- "z": "ca70aebf.8b7e2",
- "name": "Online",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "true",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1030,
- "y": 110,
- "wires": [
- [
- "f64a3784.374d88"
- ]
- ]
- },
- {
- "id": "ba82b244.7038",
- "type": "change",
- "z": "ca70aebf.8b7e2",
- "name": "Offline",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "false",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1030,
- "y": 160,
- "wires": [
- [
- "f64a3784.374d88"
- ]
- ]
- },
- {
- "id": "e97c5727.73a258",
- "type": "rbe",
- "z": "ca70aebf.8b7e2",
- "name": "",
- "func": "rbe",
- "gap": "",
- "start": "",
- "inout": "out",
- "x": 1300,
- "y": 140,
- "wires": [
- []
- ]
- },
- {
- "id": "b8c33dd6.c31fa",
- "type": "change",
- "z": "ca70aebf.8b7e2",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "delay",
- "pt": "msg",
- "to": "timeout",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 440,
- "y": 200,
- "wires": [
- [
- "58c7f41c.bb4dfc"
- ]
- ]
- },
- {
- "id": "8c9fdbba.b49398",
- "type": "comment",
- "z": "ca70aebf.8b7e2",
- "name": "Each incoming message will retrigger a new timeout (msg.timeout [ms]) before being reported offline",
- "info": "",
- "x": 590,
- "y": 40,
- "wires": []
- },
- {
- "id": "f64a3784.374d88",
- "type": "change",
- "z": "ca70aebf.8b7e2",
- "name": "Offline",
- "rules": [
- {
- "t": "set",
- "p": "topic",
- "pt": "msg",
- "to": "isonline",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 1170,
- "y": 140,
- "wires": [
- [
- "e97c5727.73a258"
- ]
- ]
- },
- {
- "id": "b74a483d.0b9a88",
- "type": "tab",
- "label": "ZONE C",
- "disabled": false,
- "info": ""
- },
- {
- "id": "38e3820b.dcef6e",
- "type": "tcp in",
- "z": "b74a483d.0b9a88",
- "name": "",
- "server": "client",
- "host": "10.0.0.20",
- "port": "10001",
- "datamode": "stream",
- "datatype": "buffer",
- "newline": "",
- "topic": "",
- "base64": false,
- "x": 110,
- "y": 420,
- "wires": [
- [
- "d381b0c2.af2b4"
- ]
- ]
- },
- {
- "id": "d381b0c2.af2b4",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "Convert to String",
- "func": "msg.payload = msg.payload.toString('utf8');\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 110,
- "y": 480,
- "wires": [
- [
- "6e44524e.45188c"
- ]
- ]
- },
- {
- "id": "b2cac58f.5093f8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BCONV",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BCONV",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 360,
- "wires": [
- [
- "88adbae1.6e4868",
- "c188edac.6016",
- "d464c5e8.c19258",
- "a9be97d2.240498",
- "5d4d5a93.0c1194",
- "c8ba0e81.8ffac",
- "733ee094.52e81",
- "3950077b.457468",
- "688a6ca7.566b64"
- ]
- ]
- },
- {
- "id": "2f6cab06.69fd34",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB326A",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB326A",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 400,
- "wires": [
- [
- "56579f1a.1571c"
- ]
- ]
- },
- {
- "id": "859d3a30.f09788",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB326B",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB326B",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 440,
- "wires": [
- [
- "5cef4025.24bd"
- ]
- ]
- },
- {
- "id": "cd433161.72831",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB327A",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB327A",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 480,
- "wires": [
- [
- "3965205a.4093b"
- ]
- ]
- },
- {
- "id": "f3e4793c.2eaec8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB329A",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB329A",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 520,
- "wires": [
- [
- "3ec16317.2bb52c"
- ]
- ]
- },
- {
- "id": "8d87ffa7.3bbc7",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB329B",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB329B",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 560,
- "wires": [
- [
- "717c5daf.c0c454"
- ]
- ]
- },
- {
- "id": "c9191bd3.6ae6b8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB330A",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB330A",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 600,
- "wires": [
- [
- "918df522.53df08"
- ]
- ]
- },
- {
- "id": "d4bfa94.9d2d358",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB332A",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB332A",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 640,
- "wires": [
- [
- "5c8382a2.294a5c"
- ]
- ]
- },
- {
- "id": "7d535fe6.b3181",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB333A",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB333A",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 680,
- "wires": [
- [
- "c0f8270b.20e818"
- ]
- ]
- },
- {
- "id": "858e932.d798c7",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB333B",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB333B",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 720,
- "wires": [
- [
- "d839a666.c91438"
- ]
- ]
- },
- {
- "id": "d2e9b578.801ea8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB333C",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB333C",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 760,
- "wires": [
- [
- "a198174.693a2e8"
- ]
- ]
- },
- {
- "id": "f7c67fc5.53f33",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB334A",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB334A",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 800,
- "wires": [
- [
- "8141606b.467ae"
- ]
- ]
- },
- {
- "id": "59157ad3.58ee54",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB334B",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB334B",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 840,
- "wires": [
- [
- "bd50a9ea.2c9258"
- ]
- ]
- },
- {
- "id": "adc7ba06.7c0918",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB335A",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "BB335A",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 580,
- "y": 880,
- "wires": [
- [
- "dd875094.190a1"
- ]
- ]
- },
- {
- "id": "6e44524e.45188c",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "5493",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "56A6",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "56A9",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "56A4",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "56A8",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "5495",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "56AA",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "56A5",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "5494",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "56A7",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "56AD",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "56AC",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "56AB",
- "vt": "str"
- },
- {
- "t": "cont",
- "v": "56AE",
- "vt": "str"
- },
- {
- "t": "else"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 15,
- "x": 90,
- "y": 660,
- "wires": [
- [
- "b2cac58f.5093f8"
- ],
- [
- "2f6cab06.69fd34"
- ],
- [
- "859d3a30.f09788"
- ],
- [
- "cd433161.72831"
- ],
- [
- "f3e4793c.2eaec8"
- ],
- [
- "8d87ffa7.3bbc7"
- ],
- [
- "c9191bd3.6ae6b8"
- ],
- [
- "d4bfa94.9d2d358"
- ],
- [
- "7d535fe6.b3181"
- ],
- [
- "858e932.d798c7"
- ],
- [
- "d2e9b578.801ea8"
- ],
- [
- "f7c67fc5.53f33"
- ],
- [
- "59157ad3.58ee54"
- ],
- [
- "adc7ba06.7c0918"
- ],
- []
- ],
- "outputLabels": [
- "BCONV",
- "BB326A",
- "BB326B",
- "BB327A",
- "BB329A",
- "BB329B",
- "BB330A",
- "BB332A",
- "BB333A",
- "BB333B",
- "BB333C",
- "BB334A",
- "BB334B",
- "BB335A",
- ""
- ]
- },
- {
- "id": "56579f1a.1571c",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count26A",
- "func": "value = flow.get('count26A')||0;\nvalue++;\nflow.set('count26A',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1740,
- "y": 360,
- "wires": [
- [
- "b527a6af.f6f118",
- "e51e965e.a063c8"
- ]
- ]
- },
- {
- "id": "b527a6af.f6f118",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff26A",
- "func": "count = flow.get('count26A');\nspec = global.get('spec26A');\ndiff = spec-count;\nflow.set('diff26A',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge26A',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2020,
- "y": 480,
- "wires": [
- [
- "1a71d364.c628dd",
- "1b309caa.301e53"
- ]
- ]
- },
- {
- "id": "84bf5cd0.196a7",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "a40434c4.724848",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count26A Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1740,
- "y": 460,
- "wires": [
- [
- "5127b2c2.2d78dc",
- "e51e965e.a063c8",
- "1b309caa.301e53"
- ]
- ]
- },
- {
- "id": "5127b2c2.2d78dc",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count26A Reset",
- "func": "flow.set('count26A',msg.payload);\nflow.set('judge26A', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 540,
- "wires": [
- [
- "1a71d364.c628dd"
- ]
- ]
- },
- {
- "id": "5cef4025.24bd",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count26B",
- "func": "value = flow.get('count26B')||0;\nvalue++;\nflow.set('count26B',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1740,
- "y": 680,
- "wires": [
- [
- "7febde79.998cf",
- "26e679b2.693226"
- ]
- ]
- },
- {
- "id": "7febde79.998cf",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff26B",
- "func": "count = flow.get('count26B');\nspec = global.get('spec26B');\ndiff = spec-count;\nflow.set('diff26B',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge26B',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2020,
- "y": 800,
- "wires": [
- [
- "9fc85e2e.dd707",
- "8df4a160.b6c09"
- ]
- ]
- },
- {
- "id": "65dae4b.abe561c",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "3aaeb6f7.f86caa",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count26B Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1780,
- "y": 780,
- "wires": [
- [
- "39069e82.289e32",
- "26e679b2.693226",
- "8df4a160.b6c09"
- ]
- ]
- },
- {
- "id": "39069e82.289e32",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count26B Reset",
- "func": "flow.set('count26B',msg.payload);\nflow.set('judge26B', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 860,
- "wires": [
- [
- "9fc85e2e.dd707"
- ]
- ]
- },
- {
- "id": "1a71d364.c628dd",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge26A",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2240,
- "y": 480,
- "wires": [
- [
- "f65078e7.dd1e28",
- "1bff9162.be389f"
- ]
- ]
- },
- {
- "id": "9fc85e2e.dd707",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge26B",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2220,
- "y": 800,
- "wires": [
- [
- "f65078e7.dd1e28",
- "1ad2cf1a.989561"
- ]
- ]
- },
- {
- "id": "f65078e7.dd1e28",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "STATION JUDGE",
- "func": "j1 = flow.get('judgeST26');\nj2 = flow.get('judge26A');\nj3 = flow.get('judge26B');\nj4 = flow.get('judge26C');\n\ns1 = global.get('specST26');\ns2 = global.get('spec26A');\ns3 = global.get('spec26B');\ns4 = global.get('spec26C');\n\nif (j1 == \"OVER\" || j2 == \"OVER\" || j3 == \"OVER\" || j4 == \"OVER\") {\n msg.payload = \"STOP\"\n}\n\nelse if ((j1 == \"OK\" || s1 == \"OFF\") && (j2 == \"OK\" || s2 == \"OFF\") && (j3 == \"OK\" || s3 == \"OFF\") && (j4 == \"OK\" || s4 == \"OFF\")) {\n msg.payload = \"RESET\"\n}\n\nelse {\n msg.payload = \"RUN\"\n}\n\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "x": 2490,
- "y": 620,
- "wires": [
- [
- "b5d70da6.c718f",
- "32e260db.9b8c7"
- ]
- ]
- },
- {
- "id": "aa8b8a78.6d7818",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "8039eabe.18e3c8",
- "order": 3,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "INITIALIZE ST26",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1050,
- "y": 600,
- "wires": [
- [
- "84bf5cd0.196a7",
- "65dae4b.abe561c",
- "a74de423.e3e308",
- "7ba1675d.f8e628"
- ]
- ]
- },
- {
- "id": "e51e965e.a063c8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "a40434c4.724848",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count26A",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2020,
- "y": 360,
- "wires": []
- },
- {
- "id": "1b309caa.301e53",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "a40434c4.724848",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff26A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2020,
- "y": 420,
- "wires": []
- },
- {
- "id": "26e679b2.693226",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "3aaeb6f7.f86caa",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count26B",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2020,
- "y": 680,
- "wires": []
- },
- {
- "id": "8df4a160.b6c09",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "3aaeb6f7.f86caa",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff26B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2020,
- "y": 740,
- "wires": []
- },
- {
- "id": "1bff9162.be389f",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "a40434c4.724848",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge26A",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge26A",
- "x": 2460,
- "y": 480,
- "wires": []
- },
- {
- "id": "1ad2cf1a.989561",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "3aaeb6f7.f86caa",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge26B",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge26B",
- "x": 2460,
- "y": 800,
- "wires": []
- },
- {
- "id": "8a709517.312758",
- "type": "delay",
- "z": "b74a483d.0b9a88",
- "name": "",
- "pauseType": "delay",
- "timeout": "1",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 1080,
- "y": 640,
- "wires": [
- [
- "a74de423.e3e308",
- "84bf5cd0.196a7",
- "65dae4b.abe561c",
- "7ba1675d.f8e628"
- ]
- ]
- },
- {
- "id": "9ee8a01c.f67c2",
- "type": "ui_dropdown",
- "z": "b74a483d.0b9a88",
- "name": "",
- "label": "ST26 MODEL",
- "tooltip": "",
- "place": "Select model",
- "group": "8039eabe.18e3c8",
- "order": 2,
- "width": "0",
- "height": "0",
- "passthru": false,
- "options": [
- {
- "label": "NONE",
- "value": "NONE",
- "type": "str"
- },
- {
- "label": "BB3",
- "value": "BB3",
- "type": "str"
- }
- ],
- "payload": "",
- "topic": "",
- "x": 120,
- "y": 1280,
- "wires": [
- [
- "5b994a9e.a752a4"
- ]
- ]
- },
- {
- "id": "5b994a9e.a752a4",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "NONE",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "BB3",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 2,
- "x": 270,
- "y": 1280,
- "wires": [
- [
- "844744f7.d47018"
- ],
- [
- "3b05e4c6.fb7cbc"
- ]
- ]
- },
- {
- "id": "23b2adce.629912",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec26A",
- "rules": [
- {
- "t": "set",
- "p": "spec26A",
- "pt": "global",
- "to": "2",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec26A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 440,
- "y": 1600,
- "wires": [
- [
- "6fff4499.0f031c"
- ]
- ]
- },
- {
- "id": "dc59cd49.07d23",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec26A",
- "rules": [
- {
- "t": "set",
- "p": "spec26A",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec26A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 440,
- "y": 1420,
- "wires": [
- [
- "6fff4499.0f031c"
- ]
- ]
- },
- {
- "id": "844744f7.d47018",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST26 NONE",
- "links": [
- "70b40bdc.bfd6f4"
- ],
- "x": 510,
- "y": 1280,
- "wires": [],
- "l": true
- },
- {
- "id": "3b05e4c6.fb7cbc",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST26 BB3",
- "links": [
- "df68cd26.c41e1"
- ],
- "x": 510,
- "y": 1320,
- "wires": [],
- "l": true
- },
- {
- "id": "95ecbe55.c696d",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec26B",
- "rules": [
- {
- "t": "set",
- "p": "spec26B",
- "pt": "global",
- "to": "2",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec26B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 440,
- "y": 1640,
- "wires": [
- [
- "a9c9dae0.8b6798"
- ]
- ]
- },
- {
- "id": "b62c6a31.d4a378",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec26B",
- "rules": [
- {
- "t": "set",
- "p": "spec26B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec26B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 440,
- "y": 1460,
- "wires": [
- [
- "a9c9dae0.8b6798"
- ]
- ]
- },
- {
- "id": "6fff4499.0f031c",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "a40434c4.724848",
- "order": 3,
- "width": "0",
- "height": "0",
- "name": "",
- "label": "spec26A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 720,
- "y": 1420,
- "wires": []
- },
- {
- "id": "a9c9dae0.8b6798",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "3aaeb6f7.f86caa",
- "order": 3,
- "width": "0",
- "height": "0",
- "name": "",
- "label": "spec26B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 720,
- "y": 1460,
- "wires": []
- },
- {
- "id": "21258dcf.05bb72",
- "type": "mqtt out",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/poke",
- "qos": "2",
- "retain": "false",
- "broker": "23c3b4e6.a04dbc",
- "x": 490,
- "y": 60,
- "wires": []
- },
- {
- "id": "e83b9ec1.c6df8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 specST26",
- "rules": [
- {
- "t": "set",
- "p": "specST26",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST26",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 440,
- "y": 1560,
- "wires": [
- [
- "f7dcc6b0.08d258"
- ]
- ]
- },
- {
- "id": "3c8d238a.3d98bc",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE specST26",
- "rules": [
- {
- "t": "set",
- "p": "specST26",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST26",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 450,
- "y": 1380,
- "wires": [
- [
- "f7dcc6b0.08d258"
- ]
- ]
- },
- {
- "id": "70b40bdc.bfd6f4",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST26 NONE",
- "links": [
- "844744f7.d47018"
- ],
- "x": 110,
- "y": 1380,
- "wires": [
- [
- "3c8d238a.3d98bc",
- "dc59cd49.07d23",
- "b62c6a31.d4a378",
- "e5efd0c5.9d5ea"
- ]
- ],
- "l": true
- },
- {
- "id": "df68cd26.c41e1",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST26 BB3",
- "links": [
- "3b05e4c6.fb7cbc"
- ],
- "x": 100,
- "y": 1560,
- "wires": [
- [
- "e83b9ec1.c6df8",
- "23b2adce.629912",
- "95ecbe55.c696d",
- "24daa436.39b8dc"
- ]
- ],
- "l": true
- },
- {
- "id": "f7dcc6b0.08d258",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "51db6c5e.ed1df4",
- "order": 3,
- "width": "0",
- "height": "0",
- "name": "",
- "label": "specST26",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 720,
- "y": 1380,
- "wires": []
- },
- {
- "id": "c188edac.6016",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST26",
- "func": "value = flow.get('countST26')||0;\nvalue++;\nflow.set('countST26',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1750,
- "y": 20,
- "wires": [
- [
- "7700caae.22afb4",
- "2b219be2.f06724"
- ]
- ]
- },
- {
- "id": "7700caae.22afb4",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diffST26",
- "func": "count = flow.get('countST26');\nspec = global.get('specST26');\ndiff = spec-count;\nflow.set('diffST26',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judgeST26',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2000,
- "y": 140,
- "wires": [
- [
- "3a4068fb.89a9b8",
- "9b715114.85e41"
- ]
- ]
- },
- {
- "id": "a74de423.e3e308",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "51db6c5e.ed1df4",
- "order": 5,
- "width": "0",
- "height": "0",
- "passthru": true,
- "label": "countST26 Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1730,
- "y": 120,
- "wires": [
- [
- "e06c5a60.61cd68",
- "2b219be2.f06724",
- "9b715114.85e41"
- ]
- ]
- },
- {
- "id": "e06c5a60.61cd68",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST26 Reset",
- "func": "flow.set('countST26',msg.payload);\nflow.set('judgeST26', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2030,
- "y": 200,
- "wires": [
- [
- "3a4068fb.89a9b8"
- ]
- ]
- },
- {
- "id": "3a4068fb.89a9b8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judgeST26",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2240,
- "y": 140,
- "wires": [
- [
- "a3cf6827.9c2648",
- "f65078e7.dd1e28"
- ]
- ]
- },
- {
- "id": "2b219be2.f06724",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "51db6c5e.ed1df4",
- "order": 1,
- "width": "0",
- "height": "0",
- "name": "",
- "label": "countST26",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2010,
- "y": 20,
- "wires": []
- },
- {
- "id": "9b715114.85e41",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "51db6c5e.ed1df4",
- "order": 4,
- "width": "0",
- "height": "0",
- "name": "",
- "label": "diffST26",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2000,
- "y": 80,
- "wires": []
- },
- {
- "id": "a3cf6827.9c2648",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "51db6c5e.ed1df4",
- "order": 2,
- "width": "0",
- "height": "0",
- "label": "judgeST26",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judgeST26",
- "x": 2470,
- "y": 140,
- "wires": []
- },
- {
- "id": "6f12d4ff.06e90c",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count26C",
- "func": "value = flow.get('count26C')||0;\nvalue++;\nflow.set('count26C',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1740,
- "y": 980,
- "wires": [
- [
- "ba099ace.3ec8e8",
- "e419b85.5f53e48"
- ]
- ]
- },
- {
- "id": "ba099ace.3ec8e8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff26C",
- "func": "count = flow.get('count26C');\nspec = global.get('spec26C');\ndiff = spec-count;\nflow.set('diff26C',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge26C',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2020,
- "y": 1120,
- "wires": [
- [
- "dd7c09a9.9b0028",
- "d34fd001.11079"
- ]
- ]
- },
- {
- "id": "7ba1675d.f8e628",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "9c1d95a1.cd8938",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count26C Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1780,
- "y": 1120,
- "wires": [
- [
- "18cb0db3.ae56c2",
- "e419b85.5f53e48",
- "d34fd001.11079"
- ]
- ]
- },
- {
- "id": "18cb0db3.ae56c2",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count26C Reset",
- "func": "flow.set('count26C',msg.payload);\nflow.set('judge26C', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 1180,
- "wires": [
- [
- "dd7c09a9.9b0028"
- ]
- ]
- },
- {
- "id": "dd7c09a9.9b0028",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge26C",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2220,
- "y": 1120,
- "wires": [
- [
- "156ff391.ae3d4c",
- "f65078e7.dd1e28"
- ]
- ]
- },
- {
- "id": "e419b85.5f53e48",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "9c1d95a1.cd8938",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count26C",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2020,
- "y": 1000,
- "wires": []
- },
- {
- "id": "d34fd001.11079",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "9c1d95a1.cd8938",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff26C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2020,
- "y": 1060,
- "wires": []
- },
- {
- "id": "156ff391.ae3d4c",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "9c1d95a1.cd8938",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge26C",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge26C",
- "x": 2460,
- "y": 1120,
- "wires": []
- },
- {
- "id": "24daa436.39b8dc",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec26C",
- "rules": [
- {
- "t": "set",
- "p": "spec26C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec26C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 440,
- "y": 1680,
- "wires": [
- [
- "fe18d47e.5d6778"
- ]
- ]
- },
- {
- "id": "e5efd0c5.9d5ea",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec26C",
- "rules": [
- {
- "t": "set",
- "p": "spec26C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec26C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 440,
- "y": 1500,
- "wires": [
- [
- "fe18d47e.5d6778"
- ]
- ]
- },
- {
- "id": "fe18d47e.5d6778",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "9c1d95a1.cd8938",
- "order": 3,
- "width": "0",
- "height": "0",
- "name": "",
- "label": "spec26C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 720,
- "y": 1500,
- "wires": []
- },
- {
- "id": "927eeb13.8145e8",
- "type": "mqtt in",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/heartBeat",
- "qos": "2",
- "datatype": "auto",
- "broker": "23c3b4e6.a04dbc",
- "x": 140,
- "y": 140,
- "wires": [
- [
- "43995997.98a2c8"
- ]
- ]
- },
- {
- "id": "1a89e8ee.c53937",
- "type": "subflow:ca70aebf.8b7e2",
- "z": "b74a483d.0b9a88",
- "name": "",
- "env": [],
- "x": 470,
- "y": 140,
- "wires": [
- [
- "85cd71ba.360b4",
- "a2473cb1.13c6a"
- ]
- ]
- },
- {
- "id": "43995997.98a2c8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "Timeout 30 sec ",
- "rules": [
- {
- "t": "set",
- "p": "timeout",
- "pt": "msg",
- "to": "30000",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 300,
- "y": 140,
- "wires": [
- [
- "1a89e8ee.c53937"
- ]
- ]
- },
- {
- "id": "85cd71ba.360b4",
- "type": "ui_switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "label": "{{msg.topic}}",
- "tooltip": "",
- "group": "b9fbbfeb.2e8af",
- "order": 5,
- "width": "0",
- "height": "0",
- "passthru": true,
- "decouple": "false",
- "topic": "",
- "style": "",
- "onvalue": "true",
- "onvalueType": "bool",
- "onicon": "check_circle",
- "oncolor": "green",
- "offvalue": "false",
- "offvalueType": "bool",
- "officon": "error_outline",
- "offcolor": "red",
- "x": 650,
- "y": 200,
- "wires": [
- []
- ]
- },
- {
- "id": "ee729e50.5f384",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "enabled",
- "pt": "msg",
- "to": "false",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 300,
- "y": 200,
- "wires": [
- [
- "afb4b388.671e5"
- ]
- ]
- },
- {
- "id": "afb4b388.671e5",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 480,
- "y": 200,
- "wires": [
- [
- "85cd71ba.360b4"
- ]
- ]
- },
- {
- "id": "9ff263bc.c8eaf",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "repeat": "",
- "crontab": "",
- "once": true,
- "x": 130,
- "y": 200,
- "wires": [
- [
- "ee729e50.5f384"
- ]
- ]
- },
- {
- "id": "9b864f57.e5887",
- "type": "trigger",
- "z": "b74a483d.0b9a88",
- "op1": "1",
- "op2": "0",
- "op1type": "str",
- "op2type": "str",
- "duration": "1",
- "extend": false,
- "units": "s",
- "reset": "",
- "bytopic": "all",
- "name": "",
- "x": 320,
- "y": 60,
- "wires": [
- [
- "21258dcf.05bb72"
- ]
- ]
- },
- {
- "id": "8cbb3312.11809",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "ping",
- "payloadType": "str",
- "repeat": "3",
- "crontab": "",
- "once": true,
- "onceDelay": 0.1,
- "x": 150,
- "y": 60,
- "wires": [
- [
- "9b864f57.e5887"
- ]
- ]
- },
- {
- "id": "ea5275fa.f3b188",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "26C TICK",
- "group": "9c1d95a1.cd8938",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "26C TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1580,
- "y": 920,
- "wires": [
- [
- "6f12d4ff.06e90c"
- ]
- ]
- },
- {
- "id": "b5d70da6.c718f",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "RESET",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "STOP",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 2450,
- "y": 680,
- "wires": [
- [
- "8a709517.312758"
- ],
- [
- "fe5f9e35.ffbed"
- ]
- ]
- },
- {
- "id": "32e260db.9b8c7",
- "type": "rbe",
- "z": "b74a483d.0b9a88",
- "name": "",
- "func": "rbe",
- "gap": "",
- "start": "",
- "inout": "out",
- "property": "payload",
- "x": 2690,
- "y": 620,
- "wires": [
- [
- "fe231aec.e9edd8"
- ]
- ]
- },
- {
- "id": "1929173d.1f4a89",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "ST26 TICK",
- "group": "51db6c5e.ed1df4",
- "order": 6,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "ST26 TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1330,
- "y": 20,
- "wires": [
- [
- "c188edac.6016"
- ]
- ]
- },
- {
- "id": "a4aecf1f.26ab6",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "26A TICK",
- "group": "a40434c4.724848",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "26A TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1520,
- "y": 300,
- "wires": [
- [
- "56579f1a.1571c"
- ]
- ]
- },
- {
- "id": "4da8b9e1.10d598",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "26B TICK",
- "group": "3aaeb6f7.f86caa",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "26B TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1520,
- "y": 600,
- "wires": [
- [
- "5cef4025.24bd"
- ]
- ]
- },
- {
- "id": "867a9cdf.72c2c",
- "type": "ui_dropdown",
- "z": "b74a483d.0b9a88",
- "name": "",
- "label": "ST27 MODEL",
- "tooltip": "",
- "place": "Select model",
- "group": "4dd4cf21.1cb1f",
- "order": 2,
- "width": "0",
- "height": "0",
- "passthru": false,
- "options": [
- {
- "label": "NONE",
- "value": "NONE",
- "type": "str"
- },
- {
- "label": "BB3",
- "value": "BB3",
- "type": "str"
- }
- ],
- "payload": "",
- "topic": "",
- "x": 100,
- "y": 1740,
- "wires": [
- [
- "72238f74.717b7"
- ]
- ]
- },
- {
- "id": "72238f74.717b7",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "NONE",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "BB3",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 2,
- "x": 250,
- "y": 1740,
- "wires": [
- [
- "3e5309e3.bf8306"
- ],
- [
- "2afe1251.8ce50e"
- ]
- ]
- },
- {
- "id": "f3db6e0f.1033b",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec27A",
- "rules": [
- {
- "t": "set",
- "p": "spec27A",
- "pt": "global",
- "to": "2",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec27A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2060,
- "wires": [
- [
- "4c7e0b8f.4ee174"
- ]
- ]
- },
- {
- "id": "3cf6eb7a.df9e94",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec27A",
- "rules": [
- {
- "t": "set",
- "p": "spec27A",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec27A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 1880,
- "wires": [
- [
- "4c7e0b8f.4ee174"
- ]
- ]
- },
- {
- "id": "3e5309e3.bf8306",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST27 NONE",
- "links": [
- "169e64d6.1a779b"
- ],
- "x": 490,
- "y": 1740,
- "wires": [],
- "l": true
- },
- {
- "id": "2afe1251.8ce50e",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST27 BB3",
- "links": [
- "c8792d9.e4861d"
- ],
- "x": 490,
- "y": 1780,
- "wires": [],
- "l": true
- },
- {
- "id": "44bd32a0.db895c",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec27B",
- "rules": [
- {
- "t": "set",
- "p": "spec27B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec27B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2100,
- "wires": [
- [
- "c014fa88.08b248"
- ]
- ]
- },
- {
- "id": "cf8ed343.cbfa3",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec27B",
- "rules": [
- {
- "t": "set",
- "p": "spec27B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec27B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 1920,
- "wires": [
- [
- "c014fa88.08b248"
- ]
- ]
- },
- {
- "id": "4c7e0b8f.4ee174",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "d5de1677.b88b38",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec27A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 1880,
- "wires": []
- },
- {
- "id": "c014fa88.08b248",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "d6f2c179.1cc21",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec27B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 1920,
- "wires": []
- },
- {
- "id": "10f1a73a.252eb9",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 specST27",
- "rules": [
- {
- "t": "set",
- "p": "specST27",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST27",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2020,
- "wires": [
- [
- "93c65a0a.cda728"
- ]
- ]
- },
- {
- "id": "860700ae.3e63c",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE specST27",
- "rules": [
- {
- "t": "set",
- "p": "specST27",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST27",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 430,
- "y": 1840,
- "wires": [
- [
- "93c65a0a.cda728"
- ]
- ]
- },
- {
- "id": "93c65a0a.cda728",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "ce8a0a2.8c0b3f8",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "specST27",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 1840,
- "wires": []
- },
- {
- "id": "2bf1407d.342ef",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec27C",
- "rules": [
- {
- "t": "set",
- "p": "spec27C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec27C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2140,
- "wires": [
- [
- "766140b0.78a1b"
- ]
- ]
- },
- {
- "id": "a679165.97466e8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec27C",
- "rules": [
- {
- "t": "set",
- "p": "spec27C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec27C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 1960,
- "wires": [
- [
- "766140b0.78a1b"
- ]
- ]
- },
- {
- "id": "766140b0.78a1b",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "64eafc2.f099c04",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec27C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 1960,
- "wires": []
- },
- {
- "id": "169e64d6.1a779b",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST27 NONE",
- "links": [
- "3e5309e3.bf8306"
- ],
- "x": 90,
- "y": 1840,
- "wires": [
- [
- "860700ae.3e63c",
- "3cf6eb7a.df9e94",
- "cf8ed343.cbfa3",
- "a679165.97466e8"
- ]
- ],
- "l": true
- },
- {
- "id": "c8792d9.e4861d",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST27 BB3",
- "links": [
- "2afe1251.8ce50e"
- ],
- "x": 80,
- "y": 2020,
- "wires": [
- [
- "10f1a73a.252eb9",
- "44bd32a0.db895c",
- "f3db6e0f.1033b",
- "2bf1407d.342ef"
- ]
- ],
- "l": true
- },
- {
- "id": "3965205a.4093b",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count27A",
- "func": "value = flow.get('count27A')||0;\nvalue++;\nflow.set('count27A',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1760,
- "y": 1580,
- "wires": [
- [
- "358d802c.385b4",
- "914e16cb.46dd38"
- ]
- ]
- },
- {
- "id": "358d802c.385b4",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff27A",
- "func": "count = flow.get('count27A');\nspec = global.get('spec27A');\ndiff = spec-count;\nflow.set('diff27A',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge27A',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 1700,
- "wires": [
- [
- "cb189586.211af8",
- "ff0b9fac.d6aac"
- ]
- ]
- },
- {
- "id": "b9024d1.adb7fb",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "d5de1677.b88b38",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count27A Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1760,
- "y": 1680,
- "wires": [
- [
- "f283553b.fcdfd8",
- "914e16cb.46dd38",
- "ff0b9fac.d6aac"
- ]
- ]
- },
- {
- "id": "f283553b.fcdfd8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count27A Reset",
- "func": "flow.set('count27A',msg.payload);\nflow.set('judge27A', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2060,
- "y": 1760,
- "wires": [
- [
- "cb189586.211af8"
- ]
- ]
- },
- {
- "id": "d82e5ea.164e7a",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count27B",
- "func": "value = flow.get('count27B')||0;\nvalue++;\nflow.set('count27B',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1760,
- "y": 1900,
- "wires": [
- [
- "b5695e95.1bba2",
- "8785ddd3.f9417"
- ]
- ]
- },
- {
- "id": "b5695e95.1bba2",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff27B",
- "func": "count = flow.get('count27B');\nspec = global.get('spec27B');\ndiff = spec-count;\nflow.set('diff27B',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge27B',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 2020,
- "wires": [
- [
- "176c4e57.315492",
- "d57d3b5c.110d48"
- ]
- ]
- },
- {
- "id": "d1093cd3.f4aea",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "d6f2c179.1cc21",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count27B Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1800,
- "y": 2000,
- "wires": [
- [
- "febe2d35.be3cb",
- "8785ddd3.f9417",
- "d57d3b5c.110d48"
- ]
- ]
- },
- {
- "id": "febe2d35.be3cb",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count27B Reset",
- "func": "flow.set('count27B',msg.payload);\nflow.set('judge27B', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2060,
- "y": 2080,
- "wires": [
- [
- "176c4e57.315492"
- ]
- ]
- },
- {
- "id": "cb189586.211af8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge27A",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2260,
- "y": 1700,
- "wires": [
- [
- "947bfe90.8a1af",
- "594b3e18.0e986"
- ]
- ]
- },
- {
- "id": "176c4e57.315492",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge27B",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2240,
- "y": 2020,
- "wires": [
- [
- "947bfe90.8a1af",
- "b9d3806c.11b2d"
- ]
- ]
- },
- {
- "id": "947bfe90.8a1af",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "STATION JUDGE",
- "func": "j1 = flow.get('judgeST27');\nj2 = flow.get('judge27A');\nj3 = flow.get('judge27B');\nj4 = flow.get('judge27C');\n\ns1 = global.get('specST27');\ns2 = global.get('spec27A');\ns3 = global.get('spec27B');\ns4 = global.get('spec27C');\n\nif (j1 == \"OVER\" || j2 == \"OVER\" || j3 == \"OVER\" || j4 == \"OVER\") {\n msg.payload = \"STOP\"\n}\n\nelse if ((j1 == \"OK\" || s1 == \"OFF\") && (j2 == \"OK\" || s2 == \"OFF\") && (j3 == \"OK\" || s3 == \"OFF\") && (j4 == \"OK\" || s4 == \"OFF\")) {\n msg.payload = \"RESET\"\n}\n\nelse {\n msg.payload = \"RUN\"\n}\n\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "x": 2510,
- "y": 1880,
- "wires": [
- [
- "ea31587c.232718",
- "e9b65ee3.8e9f9"
- ]
- ]
- },
- {
- "id": "b82f46c0.fba878",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "4dd4cf21.1cb1f",
- "order": 3,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "INITIALIZE ST27",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1070,
- "y": 1820,
- "wires": [
- [
- "b9024d1.adb7fb",
- "d1093cd3.f4aea",
- "9fb7df2b.460ec",
- "275df42e.bf911c"
- ]
- ]
- },
- {
- "id": "914e16cb.46dd38",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "d5de1677.b88b38",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count27A",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2040,
- "y": 1580,
- "wires": []
- },
- {
- "id": "ff0b9fac.d6aac",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "d5de1677.b88b38",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff27A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2040,
- "y": 1640,
- "wires": []
- },
- {
- "id": "8785ddd3.f9417",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "d6f2c179.1cc21",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count27B",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2040,
- "y": 1900,
- "wires": []
- },
- {
- "id": "d57d3b5c.110d48",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "d6f2c179.1cc21",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff27B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2040,
- "y": 1960,
- "wires": []
- },
- {
- "id": "594b3e18.0e986",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "d5de1677.b88b38",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge27A",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge27A",
- "x": 2480,
- "y": 1700,
- "wires": []
- },
- {
- "id": "b9d3806c.11b2d",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "d6f2c179.1cc21",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge27B",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge27B",
- "x": 2460,
- "y": 2080,
- "wires": []
- },
- {
- "id": "408a8b40.e40024",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "4dd4cf21.1cb1f",
- "order": 1,
- "width": 0,
- "height": 0,
- "label": "ST27 STATUS",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "ST27 STATUS",
- "x": 2760,
- "y": 1940,
- "wires": []
- },
- {
- "id": "527dc556.f6e7bc",
- "type": "mqtt out",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st27",
- "qos": "2",
- "retain": "false",
- "broker": "23c3b4e6.a04dbc",
- "x": 2830,
- "y": 1780,
- "wires": []
- },
- {
- "id": "1ecd1619.55d5aa",
- "type": "mqtt in",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st27",
- "qos": "2",
- "datatype": "utf8",
- "broker": "23c3b4e6.a04dbc",
- "x": 2830,
- "y": 1840,
- "wires": [
- [
- "408a8b40.e40024",
- "5784ad94.576854"
- ]
- ]
- },
- {
- "id": "4b41b010.97488",
- "type": "delay",
- "z": "b74a483d.0b9a88",
- "name": "",
- "pauseType": "delay",
- "timeout": "1",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 1100,
- "y": 1860,
- "wires": [
- [
- "9fb7df2b.460ec",
- "b9024d1.adb7fb",
- "d1093cd3.f4aea",
- "275df42e.bf911c"
- ]
- ]
- },
- {
- "id": "d464c5e8.c19258",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST27",
- "func": "value = flow.get('countST27')||0;\nvalue++;\nflow.set('countST27',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1770,
- "y": 1240,
- "wires": [
- [
- "dea1fcc3.774fc",
- "41043859.560278"
- ]
- ]
- },
- {
- "id": "dea1fcc3.774fc",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diffST27",
- "func": "count = flow.get('countST27');\nspec = global.get('specST27');\ndiff = spec-count;\nflow.set('diffST27',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judgeST27',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2020,
- "y": 1360,
- "wires": [
- [
- "e92ffe6.e1c64",
- "ce325103.7b307"
- ]
- ]
- },
- {
- "id": "9fb7df2b.460ec",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "ce8a0a2.8c0b3f8",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "countST27 Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1750,
- "y": 1340,
- "wires": [
- [
- "63dd7246.33048c",
- "41043859.560278",
- "ce325103.7b307"
- ]
- ]
- },
- {
- "id": "63dd7246.33048c",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST27 Reset",
- "func": "flow.set('countST27',msg.payload);\nflow.set('judgeST27', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2050,
- "y": 1420,
- "wires": [
- [
- "e92ffe6.e1c64"
- ]
- ]
- },
- {
- "id": "e92ffe6.e1c64",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judgeST27",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2260,
- "y": 1360,
- "wires": [
- [
- "92daaa3c.462ee8",
- "947bfe90.8a1af"
- ]
- ]
- },
- {
- "id": "41043859.560278",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "ce8a0a2.8c0b3f8",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "countST27",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2030,
- "y": 1240,
- "wires": []
- },
- {
- "id": "ce325103.7b307",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "ce8a0a2.8c0b3f8",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diffST27",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2020,
- "y": 1300,
- "wires": []
- },
- {
- "id": "92daaa3c.462ee8",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "ce8a0a2.8c0b3f8",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judgeST27",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judgeST27",
- "x": 2490,
- "y": 1360,
- "wires": []
- },
- {
- "id": "1ecfc231.33b9ce",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count27C",
- "func": "value = flow.get('count27C')||0;\nvalue++;\nflow.set('count27C',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1760,
- "y": 2200,
- "wires": [
- [
- "2f61594b.f681c6",
- "f2a47ad.797a188"
- ]
- ]
- },
- {
- "id": "2f61594b.f681c6",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff27C",
- "func": "count = flow.get('count27C');\nspec = global.get('spec27C');\ndiff = spec-count;\nflow.set('diff27C',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge27C',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 2340,
- "wires": [
- [
- "a5e42819.345c98",
- "8176f457.f02608"
- ]
- ]
- },
- {
- "id": "275df42e.bf911c",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "64eafc2.f099c04",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count27C Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1800,
- "y": 2340,
- "wires": [
- [
- "d5030dba.aa468",
- "f2a47ad.797a188",
- "8176f457.f02608"
- ]
- ]
- },
- {
- "id": "d5030dba.aa468",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count27C Reset",
- "func": "flow.set('count27C',msg.payload);\nflow.set('judge27C', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2060,
- "y": 2400,
- "wires": [
- [
- "a5e42819.345c98"
- ]
- ]
- },
- {
- "id": "a5e42819.345c98",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge27C",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2240,
- "y": 2340,
- "wires": [
- [
- "52254bb9.a15944",
- "947bfe90.8a1af"
- ]
- ]
- },
- {
- "id": "f2a47ad.797a188",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "64eafc2.f099c04",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count27C",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2040,
- "y": 2220,
- "wires": []
- },
- {
- "id": "8176f457.f02608",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "64eafc2.f099c04",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff27C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2040,
- "y": 2280,
- "wires": []
- },
- {
- "id": "52254bb9.a15944",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "64eafc2.f099c04",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge27C",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge27C",
- "x": 2480,
- "y": 2340,
- "wires": []
- },
- {
- "id": "723b605a.571b4",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "27C TICK",
- "group": "64eafc2.f099c04",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "27C TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1580,
- "y": 2120,
- "wires": [
- [
- "1ecfc231.33b9ce"
- ]
- ]
- },
- {
- "id": "ea31587c.232718",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "RESET",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "STOP",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 2470,
- "y": 1960,
- "wires": [
- [
- "4b41b010.97488"
- ],
- [
- "b3bd1502.5ca6f8"
- ]
- ]
- },
- {
- "id": "e9b65ee3.8e9f9",
- "type": "rbe",
- "z": "b74a483d.0b9a88",
- "name": "",
- "func": "rbe",
- "gap": "",
- "start": "",
- "inout": "out",
- "property": "payload",
- "x": 2670,
- "y": 1780,
- "wires": [
- [
- "527dc556.f6e7bc"
- ]
- ]
- },
- {
- "id": "ecbf93de.8469e",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "ST27 TICK",
- "group": "ce8a0a2.8c0b3f8",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "ST27 TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1510,
- "y": 1200,
- "wires": [
- [
- "d464c5e8.c19258"
- ]
- ]
- },
- {
- "id": "81556309.3803b",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "27A TICK",
- "group": "d5de1677.b88b38",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "27A TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1540,
- "y": 1520,
- "wires": [
- [
- "3965205a.4093b"
- ]
- ]
- },
- {
- "id": "3a1252b0.b716fe",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "27B TICK",
- "group": "d6f2c179.1cc21",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "27B TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1580,
- "y": 1840,
- "wires": [
- [
- "d82e5ea.164e7a"
- ]
- ]
- },
- {
- "id": "c8e29ce7.82ff3",
- "type": "ui_dropdown",
- "z": "b74a483d.0b9a88",
- "name": "",
- "label": "ST29 MODEL",
- "tooltip": "",
- "place": "Select model",
- "group": "e69148a6.10a7f8",
- "order": 2,
- "width": "0",
- "height": "0",
- "passthru": false,
- "options": [
- {
- "label": "NONE",
- "value": "NONE",
- "type": "str"
- },
- {
- "label": "BB3",
- "value": "BB3",
- "type": "str"
- }
- ],
- "payload": "",
- "topic": "",
- "x": 120,
- "y": 2200,
- "wires": [
- [
- "c64a0069.af24d"
- ]
- ]
- },
- {
- "id": "c64a0069.af24d",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "NONE",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "BB3",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 2,
- "x": 270,
- "y": 2200,
- "wires": [
- [
- "c28638b8.8195a8"
- ],
- [
- "284d046e.7b912c"
- ]
- ]
- },
- {
- "id": "42bea698.e9bc38",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec29A",
- "rules": [
- {
- "t": "set",
- "p": "spec29A",
- "pt": "global",
- "to": "3",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec29A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2520,
- "wires": [
- [
- "46af4fd3.948d4"
- ]
- ]
- },
- {
- "id": "dc1adcb2.00557",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec29A",
- "rules": [
- {
- "t": "set",
- "p": "spec29A",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec29A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2340,
- "wires": [
- [
- "46af4fd3.948d4"
- ]
- ]
- },
- {
- "id": "c28638b8.8195a8",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST29 NONE",
- "links": [
- "bd940d35.d56b5"
- ],
- "x": 510,
- "y": 2200,
- "wires": [],
- "l": true
- },
- {
- "id": "284d046e.7b912c",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST29 BB3",
- "links": [
- "ca556cac.03955"
- ],
- "x": 510,
- "y": 2240,
- "wires": [],
- "l": true
- },
- {
- "id": "4c11a54e.69c83c",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec29B",
- "rules": [
- {
- "t": "set",
- "p": "spec29B",
- "pt": "global",
- "to": "2",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec29B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2560,
- "wires": [
- [
- "2aba550.ac8acac"
- ]
- ]
- },
- {
- "id": "e3d3230f.3b8d",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec29B",
- "rules": [
- {
- "t": "set",
- "p": "spec29B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec29B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2380,
- "wires": [
- [
- "2aba550.ac8acac"
- ]
- ]
- },
- {
- "id": "46af4fd3.948d4",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "1f0d1716.15c069",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec29A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 2340,
- "wires": []
- },
- {
- "id": "2aba550.ac8acac",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "b72c3b7b.6203d8",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec29B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 2380,
- "wires": []
- },
- {
- "id": "126fdead.c3bc81",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 specST29",
- "rules": [
- {
- "t": "set",
- "p": "specST29",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST29",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2480,
- "wires": [
- [
- "bc699b56.00eb78"
- ]
- ]
- },
- {
- "id": "4d8e429.34566bc",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE specST29",
- "rules": [
- {
- "t": "set",
- "p": "specST29",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST29",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 430,
- "y": 2300,
- "wires": [
- [
- "bc699b56.00eb78"
- ]
- ]
- },
- {
- "id": "bc699b56.00eb78",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "faee2894.5c29e8",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "specST29",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 2300,
- "wires": []
- },
- {
- "id": "5a116fc5.e6882",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec29C",
- "rules": [
- {
- "t": "set",
- "p": "spec29C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec29C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2600,
- "wires": [
- [
- "2227db0d.75c954"
- ]
- ]
- },
- {
- "id": "a2212289.11294",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec29C",
- "rules": [
- {
- "t": "set",
- "p": "spec29C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec29C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2420,
- "wires": [
- [
- "2227db0d.75c954"
- ]
- ]
- },
- {
- "id": "2227db0d.75c954",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "e031de2.eeffc2",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec29C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 2420,
- "wires": []
- },
- {
- "id": "bd940d35.d56b5",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST29 NONE",
- "links": [
- "c28638b8.8195a8"
- ],
- "x": 110,
- "y": 2300,
- "wires": [
- [
- "4d8e429.34566bc",
- "dc1adcb2.00557",
- "e3d3230f.3b8d",
- "a2212289.11294"
- ]
- ],
- "l": true
- },
- {
- "id": "ca556cac.03955",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST29 BB3",
- "links": [
- "284d046e.7b912c"
- ],
- "x": 100,
- "y": 2480,
- "wires": [
- [
- "126fdead.c3bc81",
- "4c11a54e.69c83c",
- "42bea698.e9bc38",
- "5a116fc5.e6882"
- ]
- ],
- "l": true
- },
- {
- "id": "3ec16317.2bb52c",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count29A",
- "func": "value = flow.get('count29A')||0;\nvalue++;\nflow.set('count29A',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1760,
- "y": 2840,
- "wires": [
- [
- "711e08d.dc887f8",
- "ee37ddfd.ad23e"
- ]
- ]
- },
- {
- "id": "711e08d.dc887f8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff29A",
- "func": "count = flow.get('count29A');\nspec = global.get('spec29A');\ndiff = spec-count;\nflow.set('diff29A',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge29A',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 2960,
- "wires": [
- [
- "21f4fd7c.a27dd2",
- "f23ac1b0.51387"
- ]
- ]
- },
- {
- "id": "d67c49df.833108",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "1f0d1716.15c069",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count29A Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1760,
- "y": 2940,
- "wires": [
- [
- "70996744.78b3b8",
- "ee37ddfd.ad23e",
- "f23ac1b0.51387"
- ]
- ]
- },
- {
- "id": "70996744.78b3b8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count29A Reset",
- "func": "flow.set('count29A',msg.payload);\nflow.set('judge29A', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2060,
- "y": 3020,
- "wires": [
- [
- "21f4fd7c.a27dd2"
- ]
- ]
- },
- {
- "id": "717c5daf.c0c454",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count29B",
- "func": "value = flow.get('count29B')||0;\nvalue++;\nflow.set('count29B',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1760,
- "y": 3160,
- "wires": [
- [
- "fe22b7ff.90f938",
- "f9d003cb.c0537"
- ]
- ]
- },
- {
- "id": "fe22b7ff.90f938",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff29B",
- "func": "count = flow.get('count29B');\nspec = global.get('spec29B');\ndiff = spec-count;\nflow.set('diff29B',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge29B',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 3280,
- "wires": [
- [
- "ef161046.a4c16",
- "e1e9c3d4.241f"
- ]
- ]
- },
- {
- "id": "ccb32688.0e6358",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "b72c3b7b.6203d8",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count29B Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1800,
- "y": 3260,
- "wires": [
- [
- "71bdea86.e70714",
- "f9d003cb.c0537",
- "e1e9c3d4.241f"
- ]
- ]
- },
- {
- "id": "71bdea86.e70714",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count29B Reset",
- "func": "flow.set('count29B',msg.payload);\nflow.set('judge29B', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2060,
- "y": 3340,
- "wires": [
- [
- "ef161046.a4c16"
- ]
- ]
- },
- {
- "id": "21f4fd7c.a27dd2",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge29A",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2260,
- "y": 2960,
- "wires": [
- [
- "6022c75e.207788",
- "b0a7ef51.8b9ee"
- ]
- ]
- },
- {
- "id": "ef161046.a4c16",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge29B",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2240,
- "y": 3280,
- "wires": [
- [
- "6022c75e.207788",
- "e6191d6e.c819a"
- ]
- ]
- },
- {
- "id": "6022c75e.207788",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "STATION JUDGE",
- "func": "j1 = flow.get('judgeST29');\nj2 = flow.get('judge29A');\nj3 = flow.get('judge29B');\nj4 = flow.get('judge29C');\n\ns1 = global.get('specST29');\ns2 = global.get('spec29A');\ns3 = global.get('spec29B');\ns4 = global.get('spec29C');\n\nif (j1 == \"OVER\" || j2 == \"OVER\" || j3 == \"OVER\" || j4 == \"OVER\") {\n msg.payload = \"STOP\"\n}\n\nelse if ((j1 == \"OK\" || s1 == \"OFF\") && (j2 == \"OK\" || s2 == \"OFF\") && (j3 == \"OK\" || s3 == \"OFF\") && (j4 == \"OK\" || s4 == \"OFF\")) {\n msg.payload = \"RESET\"\n}\n\nelse {\n msg.payload = \"RUN\"\n}\n\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "x": 2530,
- "y": 3100,
- "wires": [
- [
- "1ef8e348.88f67d",
- "da346f60.f2ca6"
- ]
- ]
- },
- {
- "id": "c42cb0e1.ed9dd",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "e69148a6.10a7f8",
- "order": 3,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "INITIALIZE ST29",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1070,
- "y": 3080,
- "wires": [
- [
- "d67c49df.833108",
- "ccb32688.0e6358",
- "afcba91c.1f1dd8",
- "799af64f.fcc108"
- ]
- ]
- },
- {
- "id": "ee37ddfd.ad23e",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "1f0d1716.15c069",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count29A",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2040,
- "y": 2840,
- "wires": []
- },
- {
- "id": "f23ac1b0.51387",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "1f0d1716.15c069",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff29A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2040,
- "y": 2900,
- "wires": []
- },
- {
- "id": "f9d003cb.c0537",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "b72c3b7b.6203d8",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count29B",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2040,
- "y": 3160,
- "wires": []
- },
- {
- "id": "e1e9c3d4.241f",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "b72c3b7b.6203d8",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff29B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2040,
- "y": 3220,
- "wires": []
- },
- {
- "id": "b0a7ef51.8b9ee",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "1f0d1716.15c069",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge29A",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge29A",
- "x": 2480,
- "y": 2960,
- "wires": []
- },
- {
- "id": "e6191d6e.c819a",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "b72c3b7b.6203d8",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge29B",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge29B",
- "x": 2480,
- "y": 3340,
- "wires": []
- },
- {
- "id": "6aa56a1.2275994",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "e69148a6.10a7f8",
- "order": 1,
- "width": 0,
- "height": 0,
- "label": "ST29 STATUS",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "ST29 STATUS",
- "x": 2780,
- "y": 3160,
- "wires": []
- },
- {
- "id": "db10c277.6ce3",
- "type": "mqtt out",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st29",
- "qos": "2",
- "retain": "false",
- "broker": "23c3b4e6.a04dbc",
- "x": 2810,
- "y": 3000,
- "wires": []
- },
- {
- "id": "720e1b5f.f7b4a4",
- "type": "mqtt in",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st29",
- "qos": "2",
- "datatype": "utf8",
- "broker": "23c3b4e6.a04dbc",
- "x": 2810,
- "y": 3060,
- "wires": [
- [
- "6aa56a1.2275994",
- "3b226929.87a166"
- ]
- ]
- },
- {
- "id": "fd5438a8.9815e8",
- "type": "delay",
- "z": "b74a483d.0b9a88",
- "name": "",
- "pauseType": "delay",
- "timeout": "1",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 1100,
- "y": 3120,
- "wires": [
- [
- "afcba91c.1f1dd8",
- "d67c49df.833108",
- "ccb32688.0e6358",
- "799af64f.fcc108"
- ]
- ]
- },
- {
- "id": "a9be97d2.240498",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST29",
- "func": "value = flow.get('countST29')||0;\nvalue++;\nflow.set('countST29',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1770,
- "y": 2500,
- "wires": [
- [
- "8b925b3c.b5be98",
- "f542efe.09ebf1"
- ]
- ]
- },
- {
- "id": "8b925b3c.b5be98",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diffST29",
- "func": "count = flow.get('countST29');\nspec = global.get('specST29');\ndiff = spec-count;\nflow.set('diffST29',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judgeST29',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2020,
- "y": 2620,
- "wires": [
- [
- "98ac37bc.8dcc78",
- "db946498.fcd7d8"
- ]
- ]
- },
- {
- "id": "afcba91c.1f1dd8",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "faee2894.5c29e8",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "countST29 Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1750,
- "y": 2600,
- "wires": [
- [
- "e974819a.714ef",
- "f542efe.09ebf1",
- "db946498.fcd7d8"
- ]
- ]
- },
- {
- "id": "e974819a.714ef",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST29 Reset",
- "func": "flow.set('countST29',msg.payload);\nflow.set('judgeST29', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2050,
- "y": 2680,
- "wires": [
- [
- "98ac37bc.8dcc78"
- ]
- ]
- },
- {
- "id": "98ac37bc.8dcc78",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judgeST29",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2260,
- "y": 2620,
- "wires": [
- [
- "f9db765a.3cd158",
- "6022c75e.207788"
- ]
- ]
- },
- {
- "id": "f542efe.09ebf1",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "faee2894.5c29e8",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "countST29",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2030,
- "y": 2500,
- "wires": []
- },
- {
- "id": "db946498.fcd7d8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "faee2894.5c29e8",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diffST29",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2020,
- "y": 2560,
- "wires": []
- },
- {
- "id": "f9db765a.3cd158",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "faee2894.5c29e8",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judgeST29",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judgeST29",
- "x": 2490,
- "y": 2620,
- "wires": []
- },
- {
- "id": "268382b.c01467e",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count29C",
- "func": "value = flow.get('count29C')||0;\nvalue++;\nflow.set('count29C',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1760,
- "y": 3460,
- "wires": [
- [
- "5c49cf62.8bab4",
- "225f4e3f.892a22"
- ]
- ]
- },
- {
- "id": "5c49cf62.8bab4",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff29C",
- "func": "count = flow.get('count29C');\nspec = global.get('spec29C');\ndiff = spec-count;\nflow.set('diff29C',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge29C',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 3600,
- "wires": [
- [
- "74ffbdf6.3e89f4",
- "b10095cf.8f9a18"
- ]
- ]
- },
- {
- "id": "799af64f.fcc108",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "e031de2.eeffc2",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count29C Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1800,
- "y": 3600,
- "wires": [
- [
- "c7d317c4.38a518",
- "225f4e3f.892a22",
- "b10095cf.8f9a18"
- ]
- ]
- },
- {
- "id": "c7d317c4.38a518",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count29C Reset",
- "func": "flow.set('count29C',msg.payload);\nflow.set('judge29C', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2060,
- "y": 3660,
- "wires": [
- [
- "74ffbdf6.3e89f4"
- ]
- ]
- },
- {
- "id": "74ffbdf6.3e89f4",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge29C",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2240,
- "y": 3600,
- "wires": [
- [
- "4a8715b4.66886c",
- "6022c75e.207788"
- ]
- ]
- },
- {
- "id": "225f4e3f.892a22",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "e031de2.eeffc2",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count29C",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2040,
- "y": 3480,
- "wires": []
- },
- {
- "id": "b10095cf.8f9a18",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "e031de2.eeffc2",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff29C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2040,
- "y": 3540,
- "wires": []
- },
- {
- "id": "4a8715b4.66886c",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "e031de2.eeffc2",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge29C",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge29C",
- "x": 2480,
- "y": 3600,
- "wires": []
- },
- {
- "id": "74aac660.db82f8",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "29C TICK",
- "group": "e031de2.eeffc2",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "29C TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1620,
- "y": 3380,
- "wires": [
- [
- "268382b.c01467e"
- ]
- ]
- },
- {
- "id": "1ef8e348.88f67d",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "RESET",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "STOP",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 2490,
- "y": 3180,
- "wires": [
- [
- "fd5438a8.9815e8"
- ],
- [
- "383dc8ec.868c38"
- ]
- ]
- },
- {
- "id": "da346f60.f2ca6",
- "type": "rbe",
- "z": "b74a483d.0b9a88",
- "name": "",
- "func": "rbe",
- "gap": "",
- "start": "",
- "inout": "out",
- "property": "payload",
- "x": 2650,
- "y": 3000,
- "wires": [
- [
- "db10c277.6ce3"
- ]
- ]
- },
- {
- "id": "964636a5.7f6b68",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "ST29 TICK",
- "group": "faee2894.5c29e8",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "ST29 TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1550,
- "y": 2440,
- "wires": [
- [
- "a9be97d2.240498"
- ]
- ]
- },
- {
- "id": "39f9a8eb.ddb4b8",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "29A TICK",
- "group": "1f0d1716.15c069",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "29A TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1540,
- "y": 2780,
- "wires": [
- [
- "3ec16317.2bb52c"
- ]
- ]
- },
- {
- "id": "eda79484.431298",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "29B TICK",
- "group": "b72c3b7b.6203d8",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "29B TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1600,
- "y": 3060,
- "wires": [
- [
- "717c5daf.c0c454"
- ]
- ]
- },
- {
- "id": "b4ba6b02.2a7098",
- "type": "ui_dropdown",
- "z": "b74a483d.0b9a88",
- "name": "",
- "label": "ST30 MODEL",
- "tooltip": "",
- "place": "Select model",
- "group": "72048c22.c7c4a4",
- "order": 2,
- "width": "0",
- "height": "0",
- "passthru": false,
- "options": [
- {
- "label": "NONE",
- "value": "NONE",
- "type": "str"
- },
- {
- "label": "BB3",
- "value": "BB3",
- "type": "str"
- }
- ],
- "payload": "",
- "topic": "",
- "x": 120,
- "y": 2660,
- "wires": [
- [
- "926837fe.adcc98"
- ]
- ]
- },
- {
- "id": "926837fe.adcc98",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "NONE",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "BB3",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 2,
- "x": 270,
- "y": 2660,
- "wires": [
- [
- "fb9b433e.d11de"
- ],
- [
- "84ae0851.230778"
- ]
- ]
- },
- {
- "id": "339bea2b.5faf46",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec30A",
- "rules": [
- {
- "t": "set",
- "p": "spec30A",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec30A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2980,
- "wires": [
- [
- "68817ac5.e22fa4"
- ]
- ]
- },
- {
- "id": "5766c7ed.d32ec8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec30A",
- "rules": [
- {
- "t": "set",
- "p": "spec30A",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec30A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2800,
- "wires": [
- [
- "68817ac5.e22fa4"
- ]
- ]
- },
- {
- "id": "fb9b433e.d11de",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST30 NONE",
- "links": [
- "82c1a1a2.60f1c"
- ],
- "x": 510,
- "y": 2660,
- "wires": [],
- "l": true
- },
- {
- "id": "84ae0851.230778",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST30 BB3",
- "links": [
- "4ec9a20e.9845ac"
- ],
- "x": 510,
- "y": 2700,
- "wires": [],
- "l": true
- },
- {
- "id": "72846f1.333bf9",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec30B",
- "rules": [
- {
- "t": "set",
- "p": "spec30B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec30B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3020,
- "wires": [
- [
- "5f14d25f.e5f70c"
- ]
- ]
- },
- {
- "id": "64e4f7cf.610c58",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec30B",
- "rules": [
- {
- "t": "set",
- "p": "spec30B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec30B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2840,
- "wires": [
- [
- "5f14d25f.e5f70c"
- ]
- ]
- },
- {
- "id": "68817ac5.e22fa4",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "181b356b.84532b",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec30A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 2800,
- "wires": []
- },
- {
- "id": "5f14d25f.e5f70c",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "f4578e82.05df1",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec30B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 2840,
- "wires": []
- },
- {
- "id": "e37a25a9.fbb3a8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 specST30",
- "rules": [
- {
- "t": "set",
- "p": "specST30",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST30",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2940,
- "wires": [
- [
- "5637ee08.798b"
- ]
- ]
- },
- {
- "id": "b6aa0015.d2a9d",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE specST30",
- "rules": [
- {
- "t": "set",
- "p": "specST30",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST30",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 430,
- "y": 2760,
- "wires": [
- [
- "5637ee08.798b"
- ]
- ]
- },
- {
- "id": "5637ee08.798b",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "a0262020.026aa",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "specST30",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 2760,
- "wires": []
- },
- {
- "id": "4dbc795a.f611a8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec30C",
- "rules": [
- {
- "t": "set",
- "p": "spec30C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec30C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3060,
- "wires": [
- [
- "cafba03f.4d8a5"
- ]
- ]
- },
- {
- "id": "98cbf106.e80b2",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec30C",
- "rules": [
- {
- "t": "set",
- "p": "spec30C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec30C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 2880,
- "wires": [
- [
- "cafba03f.4d8a5"
- ]
- ]
- },
- {
- "id": "cafba03f.4d8a5",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "4ec9044f.cecb5c",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec30C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 2880,
- "wires": []
- },
- {
- "id": "82c1a1a2.60f1c",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST30 NONE",
- "links": [
- "fb9b433e.d11de"
- ],
- "x": 110,
- "y": 2760,
- "wires": [
- [
- "b6aa0015.d2a9d",
- "5766c7ed.d32ec8",
- "64e4f7cf.610c58",
- "98cbf106.e80b2"
- ]
- ],
- "l": true
- },
- {
- "id": "4ec9a20e.9845ac",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST30 BB3",
- "links": [
- "84ae0851.230778"
- ],
- "x": 100,
- "y": 2940,
- "wires": [
- [
- "e37a25a9.fbb3a8",
- "72846f1.333bf9",
- "339bea2b.5faf46",
- "4dbc795a.f611a8"
- ]
- ],
- "l": true
- },
- {
- "id": "918df522.53df08",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count30A",
- "func": "value = flow.get('count30A')||0;\nvalue++;\nflow.set('count30A',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1760,
- "y": 4120,
- "wires": [
- [
- "f6b1b051.1ee4e",
- "48b9d1d2.ee4e7"
- ]
- ]
- },
- {
- "id": "f6b1b051.1ee4e",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff30A",
- "func": "count = flow.get('count30A');\nspec = global.get('spec30A');\ndiff = spec-count;\nflow.set('diff30A',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge30A',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 4240,
- "wires": [
- [
- "ffe0a514.e287c8",
- "19272dd2.9e7612"
- ]
- ]
- },
- {
- "id": "83d109ca.572d28",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "181b356b.84532b",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count30A Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1760,
- "y": 4220,
- "wires": [
- [
- "48e2947b.bb4c4c",
- "48b9d1d2.ee4e7",
- "19272dd2.9e7612"
- ]
- ]
- },
- {
- "id": "48e2947b.bb4c4c",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count30A Reset",
- "func": "flow.set('count30A',msg.payload);\nflow.set('judge30A', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2060,
- "y": 4300,
- "wires": [
- [
- "ffe0a514.e287c8"
- ]
- ]
- },
- {
- "id": "87a24c99.9bc6f",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count30B",
- "func": "value = flow.get('count30B')||0;\nvalue++;\nflow.set('count30B',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1760,
- "y": 4440,
- "wires": [
- [
- "2cb5cdc8.be2f72",
- "fe88895e.2e3298"
- ]
- ]
- },
- {
- "id": "2cb5cdc8.be2f72",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff30B",
- "func": "count = flow.get('count30B');\nspec = global.get('spec30B');\ndiff = spec-count;\nflow.set('diff30B',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge30B',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 4560,
- "wires": [
- [
- "3d7ec808.d3a2b8",
- "a0134c8f.d9248"
- ]
- ]
- },
- {
- "id": "db9ddce1.38729",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "f4578e82.05df1",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count30B Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1800,
- "y": 4540,
- "wires": [
- [
- "b3074a88.ab38c8",
- "fe88895e.2e3298",
- "a0134c8f.d9248"
- ]
- ]
- },
- {
- "id": "b3074a88.ab38c8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count30B Reset",
- "func": "flow.set('count30B',msg.payload);\nflow.set('judge30B', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2060,
- "y": 4620,
- "wires": [
- [
- "3d7ec808.d3a2b8"
- ]
- ]
- },
- {
- "id": "ffe0a514.e287c8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge30A",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2260,
- "y": 4240,
- "wires": [
- [
- "87ebe68b.63e9b8",
- "66ace871.075898"
- ]
- ]
- },
- {
- "id": "3d7ec808.d3a2b8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge30B",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2240,
- "y": 4560,
- "wires": [
- [
- "87ebe68b.63e9b8",
- "20dcadcd.a5f832"
- ]
- ]
- },
- {
- "id": "87ebe68b.63e9b8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "STATION JUDGE",
- "func": "j1 = flow.get('judgeST30');\nj2 = flow.get('judge30A');\nj3 = flow.get('judge30B');\nj4 = flow.get('judge30C');\n\ns1 = global.get('specST30');\ns2 = global.get('spec30A');\ns3 = global.get('spec30B');\ns4 = global.get('spec30C');\n\nif (j1 == \"OVER\" || j2 == \"OVER\" || j3 == \"OVER\" || j4 == \"OVER\") {\n msg.payload = \"STOP\"\n}\n\nelse if ((j1 == \"OK\" || s1 == \"OFF\") && (j2 == \"OK\" || s2 == \"OFF\") && (j3 == \"OK\" || s3 == \"OFF\") && (j4 == \"OK\" || s4 == \"OFF\")) {\n msg.payload = \"RESET\"\n}\n\nelse {\n msg.payload = \"RUN\"\n}\n\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "x": 2510,
- "y": 4400,
- "wires": [
- [
- "a16ff1ee.50366",
- "5186b491.6acbac"
- ]
- ]
- },
- {
- "id": "b9454a4c.da12b8",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "72048c22.c7c4a4",
- "order": 3,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "INITIALIZE ST30",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1070,
- "y": 4360,
- "wires": [
- [
- "83d109ca.572d28",
- "db9ddce1.38729",
- "2354a3b5.8a22bc",
- "6c1c5002.b90fe"
- ]
- ]
- },
- {
- "id": "48b9d1d2.ee4e7",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "181b356b.84532b",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count30A",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2040,
- "y": 4120,
- "wires": []
- },
- {
- "id": "19272dd2.9e7612",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "181b356b.84532b",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff30A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2040,
- "y": 4180,
- "wires": []
- },
- {
- "id": "fe88895e.2e3298",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "f4578e82.05df1",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count30B",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2040,
- "y": 4440,
- "wires": []
- },
- {
- "id": "a0134c8f.d9248",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "f4578e82.05df1",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff30B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2040,
- "y": 4500,
- "wires": []
- },
- {
- "id": "66ace871.075898",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "181b356b.84532b",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge30A",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge30A",
- "x": 2480,
- "y": 4240,
- "wires": []
- },
- {
- "id": "20dcadcd.a5f832",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "f4578e82.05df1",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge30B",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge30B",
- "x": 2480,
- "y": 4620,
- "wires": []
- },
- {
- "id": "11d478b0.3667c7",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "72048c22.c7c4a4",
- "order": 1,
- "width": 0,
- "height": 0,
- "label": "ST30 STATUS",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "ST30 STATUS",
- "x": 2760,
- "y": 4500,
- "wires": []
- },
- {
- "id": "12acce48.355a72",
- "type": "mqtt out",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st30",
- "qos": "2",
- "retain": "false",
- "broker": "23c3b4e6.a04dbc",
- "x": 2790,
- "y": 4340,
- "wires": []
- },
- {
- "id": "92f8a723.6d2838",
- "type": "mqtt in",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st30",
- "qos": "2",
- "datatype": "utf8",
- "broker": "23c3b4e6.a04dbc",
- "x": 2790,
- "y": 4400,
- "wires": [
- [
- "11d478b0.3667c7",
- "e323d11f.27242"
- ]
- ]
- },
- {
- "id": "f0d0f4e1.18ea18",
- "type": "delay",
- "z": "b74a483d.0b9a88",
- "name": "",
- "pauseType": "delay",
- "timeout": "1",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 1100,
- "y": 4400,
- "wires": [
- [
- "2354a3b5.8a22bc",
- "83d109ca.572d28",
- "db9ddce1.38729",
- "6c1c5002.b90fe"
- ]
- ]
- },
- {
- "id": "5d4d5a93.0c1194",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST30",
- "func": "value = flow.get('countST30')||0;\nvalue++;\nflow.set('countST30',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1770,
- "y": 3780,
- "wires": [
- [
- "a44f3e3b.b2174",
- "d84a6b61.9518a8"
- ]
- ]
- },
- {
- "id": "a44f3e3b.b2174",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diffST30",
- "func": "count = flow.get('countST30');\nspec = global.get('specST30');\ndiff = spec-count;\nflow.set('diffST30',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judgeST30',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2020,
- "y": 3900,
- "wires": [
- [
- "f3982e97.5c8a1",
- "fd7877ad.56d688"
- ]
- ]
- },
- {
- "id": "2354a3b5.8a22bc",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "a0262020.026aa",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "countST30 Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1750,
- "y": 3880,
- "wires": [
- [
- "9b64c039.62d7a",
- "d84a6b61.9518a8",
- "fd7877ad.56d688"
- ]
- ]
- },
- {
- "id": "9b64c039.62d7a",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST30 Reset",
- "func": "flow.set('countST30',msg.payload);\nflow.set('judgeST30', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2050,
- "y": 3960,
- "wires": [
- [
- "f3982e97.5c8a1"
- ]
- ]
- },
- {
- "id": "f3982e97.5c8a1",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judgeST30",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2260,
- "y": 3900,
- "wires": [
- [
- "22da0c10.ad2ab4",
- "87ebe68b.63e9b8"
- ]
- ]
- },
- {
- "id": "d84a6b61.9518a8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "a0262020.026aa",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "countST30",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2030,
- "y": 3780,
- "wires": []
- },
- {
- "id": "fd7877ad.56d688",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "a0262020.026aa",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diffST30",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2020,
- "y": 3840,
- "wires": []
- },
- {
- "id": "22da0c10.ad2ab4",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "a0262020.026aa",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judgeST30",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judgeST30",
- "x": 2490,
- "y": 3900,
- "wires": []
- },
- {
- "id": "f4b9732.6cb0d9",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count30C",
- "func": "value = flow.get('count30C')||0;\nvalue++;\nflow.set('count30C',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 1760,
- "y": 4740,
- "wires": [
- [
- "624567b0.e2c158",
- "b06a354.968c7c8"
- ]
- ]
- },
- {
- "id": "624567b0.e2c158",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff30C",
- "func": "count = flow.get('count30C');\nspec = global.get('spec30C');\ndiff = spec-count;\nflow.set('diff30C',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge30C',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 2040,
- "y": 4880,
- "wires": [
- [
- "ac7a89db.e4b128",
- "b441fc26.c6c82"
- ]
- ]
- },
- {
- "id": "6c1c5002.b90fe",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "4ec9044f.cecb5c",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count30C Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 1800,
- "y": 4880,
- "wires": [
- [
- "4f1e8e83.405d7",
- "b06a354.968c7c8",
- "b441fc26.c6c82"
- ]
- ]
- },
- {
- "id": "4f1e8e83.405d7",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count30C Reset",
- "func": "flow.set('count30C',msg.payload);\nflow.set('judge30C', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 2060,
- "y": 4940,
- "wires": [
- [
- "ac7a89db.e4b128"
- ]
- ]
- },
- {
- "id": "ac7a89db.e4b128",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge30C",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 2240,
- "y": 4880,
- "wires": [
- [
- "292e0d2d.a8ed92",
- "87ebe68b.63e9b8"
- ]
- ]
- },
- {
- "id": "b06a354.968c7c8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "4ec9044f.cecb5c",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count30C",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 2040,
- "y": 4760,
- "wires": []
- },
- {
- "id": "b441fc26.c6c82",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "4ec9044f.cecb5c",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff30C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 2040,
- "y": 4820,
- "wires": []
- },
- {
- "id": "292e0d2d.a8ed92",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "4ec9044f.cecb5c",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge30C",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge30C",
- "x": 2480,
- "y": 4880,
- "wires": []
- },
- {
- "id": "b8b7608d.7222c",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "30C TICK",
- "group": "4ec9044f.cecb5c",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "30C TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1600,
- "y": 4680,
- "wires": [
- [
- "f4b9732.6cb0d9"
- ]
- ]
- },
- {
- "id": "a16ff1ee.50366",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "RESET",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "STOP",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 2470,
- "y": 4460,
- "wires": [
- [
- "f0d0f4e1.18ea18"
- ],
- [
- "6ee8bfcb.61671"
- ]
- ]
- },
- {
- "id": "5186b491.6acbac",
- "type": "rbe",
- "z": "b74a483d.0b9a88",
- "name": "",
- "func": "rbe",
- "gap": "",
- "start": "",
- "inout": "out",
- "property": "payload",
- "x": 2630,
- "y": 4340,
- "wires": [
- [
- "12acce48.355a72"
- ]
- ]
- },
- {
- "id": "8ee7d6fc.8eefe8",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "ST30 TICK",
- "group": "a0262020.026aa",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "ST30 TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1510,
- "y": 3720,
- "wires": [
- [
- "5d4d5a93.0c1194"
- ]
- ]
- },
- {
- "id": "d650ca12.8d3f08",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "30A TICK",
- "group": "181b356b.84532b",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "30A TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1540,
- "y": 4060,
- "wires": [
- [
- "918df522.53df08"
- ]
- ]
- },
- {
- "id": "b1c465d3.34e638",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "30B TICK",
- "group": "f4578e82.05df1",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "30B TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 1560,
- "y": 4360,
- "wires": [
- [
- "87a24c99.9bc6f"
- ]
- ]
- },
- {
- "id": "a116cb8d.639888",
- "type": "ui_dropdown",
- "z": "b74a483d.0b9a88",
- "name": "",
- "label": "ST32 MODEL",
- "tooltip": "",
- "place": "Select model",
- "group": "aa3b7f55.e0f49",
- "order": 2,
- "width": "0",
- "height": "0",
- "passthru": false,
- "options": [
- {
- "label": "NONE",
- "value": "NONE",
- "type": "str"
- },
- {
- "label": "BB3",
- "value": "BB3",
- "type": "str"
- }
- ],
- "payload": "",
- "topic": "",
- "x": 120,
- "y": 3120,
- "wires": [
- [
- "57aba2c.4abda5c"
- ]
- ]
- },
- {
- "id": "57aba2c.4abda5c",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "NONE",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "BB3",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 2,
- "x": 270,
- "y": 3120,
- "wires": [
- [
- "2762779c.132668"
- ],
- [
- "37ef85c2.d8bcaa"
- ]
- ]
- },
- {
- "id": "1b7a8996.175f66",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec32A",
- "rules": [
- {
- "t": "set",
- "p": "spec32A",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec32A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3440,
- "wires": [
- [
- "7fbb2bb0.e90744"
- ]
- ]
- },
- {
- "id": "f185cf3c.96522",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec32A",
- "rules": [
- {
- "t": "set",
- "p": "spec32A",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec32A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3260,
- "wires": [
- [
- "7fbb2bb0.e90744"
- ]
- ]
- },
- {
- "id": "2762779c.132668",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST32 NONE",
- "links": [
- "3ea5a003.57dd4"
- ],
- "x": 510,
- "y": 3120,
- "wires": [],
- "l": true
- },
- {
- "id": "37ef85c2.d8bcaa",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST32 BB3",
- "links": [
- "7c721c0c.458af4"
- ],
- "x": 510,
- "y": 3160,
- "wires": [],
- "l": true
- },
- {
- "id": "3756dc50.7ef5d4",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec32B",
- "rules": [
- {
- "t": "set",
- "p": "spec32B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec32B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3480,
- "wires": [
- [
- "ea5d0e0a.94d15"
- ]
- ]
- },
- {
- "id": "90d9c521.306028",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec32B",
- "rules": [
- {
- "t": "set",
- "p": "spec32B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec32B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3300,
- "wires": [
- [
- "ea5d0e0a.94d15"
- ]
- ]
- },
- {
- "id": "7fbb2bb0.e90744",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "4bd96acf.7ea134",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec32A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 3260,
- "wires": []
- },
- {
- "id": "ea5d0e0a.94d15",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "115da480.fad6eb",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec32B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 3300,
- "wires": []
- },
- {
- "id": "be04e458.071158",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 specST32",
- "rules": [
- {
- "t": "set",
- "p": "specST32",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST32",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3400,
- "wires": [
- [
- "c2af6be.f52d698"
- ]
- ]
- },
- {
- "id": "ed2e9773.017fb8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE specST32",
- "rules": [
- {
- "t": "set",
- "p": "specST32",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST32",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 430,
- "y": 3220,
- "wires": [
- [
- "c2af6be.f52d698"
- ]
- ]
- },
- {
- "id": "c2af6be.f52d698",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "72239b05.9c4394",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "specST32",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 3220,
- "wires": []
- },
- {
- "id": "1d13a7f9.1259b8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec32C",
- "rules": [
- {
- "t": "set",
- "p": "spec32C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec32C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3520,
- "wires": [
- [
- "47377e46.b39fa"
- ]
- ]
- },
- {
- "id": "78d980d4.48d89",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec32C",
- "rules": [
- {
- "t": "set",
- "p": "spec32C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec32C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3340,
- "wires": [
- [
- "47377e46.b39fa"
- ]
- ]
- },
- {
- "id": "47377e46.b39fa",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "7dac71b.107799",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec32C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 3340,
- "wires": []
- },
- {
- "id": "3ea5a003.57dd4",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST32 NONE",
- "links": [
- "2762779c.132668"
- ],
- "x": 110,
- "y": 3220,
- "wires": [
- [
- "ed2e9773.017fb8",
- "f185cf3c.96522",
- "90d9c521.306028",
- "78d980d4.48d89"
- ]
- ],
- "l": true
- },
- {
- "id": "7c721c0c.458af4",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST32 BB3",
- "links": [
- "37ef85c2.d8bcaa"
- ],
- "x": 100,
- "y": 3400,
- "wires": [
- [
- "be04e458.071158",
- "3756dc50.7ef5d4",
- "1b7a8996.175f66",
- "1d13a7f9.1259b8"
- ]
- ],
- "l": true
- },
- {
- "id": "5c8382a2.294a5c",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count32A",
- "func": "value = flow.get('count32A')||0;\nvalue++;\nflow.set('count32A',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 360,
- "wires": [
- [
- "d5ae7df2.67807",
- "c5968045.cd749"
- ]
- ]
- },
- {
- "id": "d5ae7df2.67807",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff32A",
- "func": "count = flow.get('count32A');\nspec = global.get('spec32A');\ndiff = spec-count;\nflow.set('diff32A',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge32A',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 480,
- "wires": [
- [
- "59aa21c2.0dac5",
- "23fbb5ea.bbc21a"
- ]
- ]
- },
- {
- "id": "6ad279c8.94b1e8",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "4bd96acf.7ea134",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count32A Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3760,
- "y": 460,
- "wires": [
- [
- "67bb25b2.27411c",
- "c5968045.cd749",
- "23fbb5ea.bbc21a"
- ]
- ]
- },
- {
- "id": "67bb25b2.27411c",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count32A Reset",
- "func": "flow.set('count32A',msg.payload);\nflow.set('judge32A', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 540,
- "wires": [
- [
- "59aa21c2.0dac5"
- ]
- ]
- },
- {
- "id": "562174b7.3a3b5c",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count32B",
- "func": "value = flow.get('count32B')||0;\nvalue++;\nflow.set('count32B',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 680,
- "wires": [
- [
- "45d3c0e9.4d3ea",
- "1d3cfd0.7b3ee03"
- ]
- ]
- },
- {
- "id": "45d3c0e9.4d3ea",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff32B",
- "func": "count = flow.get('count32B');\nspec = global.get('spec32B');\ndiff = spec-count;\nflow.set('diff32B',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge32B',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 800,
- "wires": [
- [
- "20040c11.65e384",
- "c2b709c1.7c0ed8"
- ]
- ]
- },
- {
- "id": "ae024f7c.33e34",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "115da480.fad6eb",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count32B Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3800,
- "y": 780,
- "wires": [
- [
- "c8f51c46.80d7",
- "1d3cfd0.7b3ee03",
- "c2b709c1.7c0ed8"
- ]
- ]
- },
- {
- "id": "c8f51c46.80d7",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count32B Reset",
- "func": "flow.set('count32B',msg.payload);\nflow.set('judge32B', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 860,
- "wires": [
- [
- "20040c11.65e384"
- ]
- ]
- },
- {
- "id": "59aa21c2.0dac5",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge32A",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4260,
- "y": 480,
- "wires": [
- [
- "9b06cbc5.b6aec8",
- "d9cb4e35.86082"
- ]
- ]
- },
- {
- "id": "20040c11.65e384",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge32B",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4240,
- "y": 800,
- "wires": [
- [
- "9b06cbc5.b6aec8",
- "e5f237fd.3708c8"
- ]
- ]
- },
- {
- "id": "9b06cbc5.b6aec8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "STATION JUDGE",
- "func": "j1 = flow.get('judgeST32');\nj2 = flow.get('judge32A');\nj3 = flow.get('judge32B');\nj4 = flow.get('judge32C');\n\ns1 = global.get('specST32');\ns2 = global.get('spec32A');\ns3 = global.get('spec32B');\ns4 = global.get('spec32C');\n\nif (j1 == \"OVER\" || j2 == \"OVER\" || j3 == \"OVER\" || j4 == \"OVER\") {\n msg.payload = \"STOP\"\n}\n\nelse if ((j1 == \"OK\" || s1 == \"OFF\") && (j2 == \"OK\" || s2 == \"OFF\") && (j3 == \"OK\" || s3 == \"OFF\") && (j4 == \"OK\" || s4 == \"OFF\")) {\n msg.payload = \"RESET\"\n}\n\nelse {\n msg.payload = \"RUN\"\n}\n\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "x": 4510,
- "y": 640,
- "wires": [
- [
- "18371529.65fb4b",
- "b06d0cd4.fbbe9"
- ]
- ]
- },
- {
- "id": "128280f9.a0935f",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "aa3b7f55.e0f49",
- "order": 3,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "INITIALIZE ST32",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3070,
- "y": 600,
- "wires": [
- [
- "6ad279c8.94b1e8",
- "ae024f7c.33e34",
- "2c51f14f.b8c28e",
- "db07606f.2c0ac"
- ]
- ]
- },
- {
- "id": "c5968045.cd749",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "4bd96acf.7ea134",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count32A",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 360,
- "wires": []
- },
- {
- "id": "23fbb5ea.bbc21a",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "4bd96acf.7ea134",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff32A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 420,
- "wires": []
- },
- {
- "id": "1d3cfd0.7b3ee03",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "115da480.fad6eb",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count32B",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 680,
- "wires": []
- },
- {
- "id": "c2b709c1.7c0ed8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "115da480.fad6eb",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff32B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 740,
- "wires": []
- },
- {
- "id": "d9cb4e35.86082",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "4bd96acf.7ea134",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge32A",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge32A",
- "x": 4480,
- "y": 480,
- "wires": []
- },
- {
- "id": "e5f237fd.3708c8",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "115da480.fad6eb",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge32B",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge32B",
- "x": 4500,
- "y": 840,
- "wires": []
- },
- {
- "id": "18c0ce4a.da9272",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "aa3b7f55.e0f49",
- "order": 1,
- "width": 0,
- "height": 0,
- "label": "ST32 STATUS",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "ST32 STATUS",
- "x": 4900,
- "y": 760,
- "wires": []
- },
- {
- "id": "ed48c021.07455",
- "type": "mqtt out",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st32",
- "qos": "2",
- "retain": "false",
- "broker": "23c3b4e6.a04dbc",
- "x": 4870,
- "y": 640,
- "wires": []
- },
- {
- "id": "26cfe7a7.685678",
- "type": "mqtt in",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st32",
- "qos": "2",
- "datatype": "utf8",
- "broker": "23c3b4e6.a04dbc",
- "x": 4870,
- "y": 700,
- "wires": [
- [
- "18c0ce4a.da9272",
- "3a8fefc5.e1e7a"
- ]
- ]
- },
- {
- "id": "731f99a.6645a68",
- "type": "delay",
- "z": "b74a483d.0b9a88",
- "name": "",
- "pauseType": "delay",
- "timeout": "1",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3100,
- "y": 640,
- "wires": [
- [
- "2c51f14f.b8c28e",
- "6ad279c8.94b1e8",
- "ae024f7c.33e34",
- "db07606f.2c0ac"
- ]
- ]
- },
- {
- "id": "c8ba0e81.8ffac",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST32",
- "func": "value = flow.get('countST32')||0;\nvalue++;\nflow.set('countST32',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3770,
- "y": 20,
- "wires": [
- [
- "43993008.c64f2",
- "dfc884ba.ccdb88"
- ]
- ]
- },
- {
- "id": "43993008.c64f2",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diffST32",
- "func": "count = flow.get('countST32');\nspec = global.get('specST32');\ndiff = spec-count;\nflow.set('diffST32',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judgeST32',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4020,
- "y": 140,
- "wires": [
- [
- "aa638b5d.f465f8",
- "710c1209.dd41fc"
- ]
- ]
- },
- {
- "id": "2c51f14f.b8c28e",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "72239b05.9c4394",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "countST32 Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3750,
- "y": 120,
- "wires": [
- [
- "28fd1c8f.42d724",
- "dfc884ba.ccdb88",
- "710c1209.dd41fc"
- ]
- ]
- },
- {
- "id": "28fd1c8f.42d724",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST32 Reset",
- "func": "flow.set('countST32',msg.payload);\nflow.set('judgeST32', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4050,
- "y": 200,
- "wires": [
- [
- "aa638b5d.f465f8"
- ]
- ]
- },
- {
- "id": "aa638b5d.f465f8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judgeST32",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4260,
- "y": 140,
- "wires": [
- [
- "50cec5fc.c3399c",
- "9b06cbc5.b6aec8"
- ]
- ]
- },
- {
- "id": "dfc884ba.ccdb88",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "72239b05.9c4394",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "countST32",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4030,
- "y": 20,
- "wires": []
- },
- {
- "id": "710c1209.dd41fc",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "72239b05.9c4394",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diffST32",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4020,
- "y": 80,
- "wires": []
- },
- {
- "id": "50cec5fc.c3399c",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "72239b05.9c4394",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judgeST32",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judgeST32",
- "x": 4490,
- "y": 140,
- "wires": []
- },
- {
- "id": "3964bc10.cc56c4",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count32C",
- "func": "value = flow.get('count32C')||0;\nvalue++;\nflow.set('count32C',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 980,
- "wires": [
- [
- "d5e0231a.823fa",
- "b3a5b22b.b309a"
- ]
- ]
- },
- {
- "id": "d5e0231a.823fa",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff32C",
- "func": "count = flow.get('count32C');\nspec = global.get('spec32C');\ndiff = spec-count;\nflow.set('diff32C',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge32C',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 1120,
- "wires": [
- [
- "8e142b94.0edae8",
- "301e821c.2dec1e"
- ]
- ]
- },
- {
- "id": "db07606f.2c0ac",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "7dac71b.107799",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count32C Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3800,
- "y": 1120,
- "wires": [
- [
- "6fd8e2c3.0f74fc",
- "b3a5b22b.b309a",
- "301e821c.2dec1e"
- ]
- ]
- },
- {
- "id": "6fd8e2c3.0f74fc",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count32C Reset",
- "func": "flow.set('count32C',msg.payload);\nflow.set('judge32C', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 1180,
- "wires": [
- [
- "8e142b94.0edae8"
- ]
- ]
- },
- {
- "id": "8e142b94.0edae8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge32C",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4240,
- "y": 1120,
- "wires": [
- [
- "1d2f0b3e.0bc6a5",
- "9b06cbc5.b6aec8"
- ]
- ]
- },
- {
- "id": "b3a5b22b.b309a",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "7dac71b.107799",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count32C",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 1000,
- "wires": []
- },
- {
- "id": "301e821c.2dec1e",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "7dac71b.107799",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff32C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 1060,
- "wires": []
- },
- {
- "id": "1d2f0b3e.0bc6a5",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "7dac71b.107799",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge32C",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge32C",
- "x": 4480,
- "y": 1120,
- "wires": []
- },
- {
- "id": "1213326c.abdaae",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "32C TICK",
- "group": "7dac71b.107799",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "32C TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3580,
- "y": 920,
- "wires": [
- [
- "3964bc10.cc56c4"
- ]
- ]
- },
- {
- "id": "18371529.65fb4b",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "RESET",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "STOP",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 4470,
- "y": 700,
- "wires": [
- [
- "731f99a.6645a68"
- ],
- [
- "fb7f1d5b.5902f"
- ]
- ]
- },
- {
- "id": "b06d0cd4.fbbe9",
- "type": "rbe",
- "z": "b74a483d.0b9a88",
- "name": "",
- "func": "rbe",
- "gap": "",
- "start": "",
- "inout": "out",
- "property": "payload",
- "x": 4710,
- "y": 640,
- "wires": [
- [
- "ed48c021.07455"
- ]
- ]
- },
- {
- "id": "62741453.10ec2c",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "ST32 TICK",
- "group": "72239b05.9c4394",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "ST32 TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3510,
- "y": 20,
- "wires": [
- [
- "c8ba0e81.8ffac"
- ]
- ]
- },
- {
- "id": "f9263256.85615",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "32A TICK",
- "group": "4bd96acf.7ea134",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "32A TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3540,
- "y": 320,
- "wires": [
- [
- "5c8382a2.294a5c"
- ]
- ]
- },
- {
- "id": "e8f87ae7.6b2a68",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "32B TICK",
- "group": "115da480.fad6eb",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "32B TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3560,
- "y": 620,
- "wires": [
- [
- "562174b7.3a3b5c"
- ]
- ]
- },
- {
- "id": "53708486.0a193c",
- "type": "ui_dropdown",
- "z": "b74a483d.0b9a88",
- "name": "",
- "label": "ST33 MODEL",
- "tooltip": "",
- "place": "Select model",
- "group": "cd6fe491.995378",
- "order": 2,
- "width": "0",
- "height": "0",
- "passthru": false,
- "options": [
- {
- "label": "NONE",
- "value": "NONE",
- "type": "str"
- },
- {
- "label": "BB3",
- "value": "BB3",
- "type": "str"
- }
- ],
- "payload": "",
- "topic": "",
- "x": 120,
- "y": 3580,
- "wires": [
- [
- "b0b34a16.c71ff8"
- ]
- ]
- },
- {
- "id": "b0b34a16.c71ff8",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "NONE",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "BB3",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 2,
- "x": 270,
- "y": 3580,
- "wires": [
- [
- "6289dfc2.70bf1"
- ],
- [
- "3a5d789d.f03908"
- ]
- ]
- },
- {
- "id": "9421ecf0.30857",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec33A",
- "rules": [
- {
- "t": "set",
- "p": "spec33A",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec33A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3900,
- "wires": [
- [
- "1d09af50.7852a1"
- ]
- ]
- },
- {
- "id": "1641d666.90840a",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec33A",
- "rules": [
- {
- "t": "set",
- "p": "spec33A",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec33A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3720,
- "wires": [
- [
- "1d09af50.7852a1"
- ]
- ]
- },
- {
- "id": "6289dfc2.70bf1",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST33 NONE",
- "links": [
- "aea13a90.316c18"
- ],
- "x": 510,
- "y": 3580,
- "wires": [],
- "l": true
- },
- {
- "id": "3a5d789d.f03908",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST33 BB3",
- "links": [
- "c0f9e41e.bbc818"
- ],
- "x": 510,
- "y": 3620,
- "wires": [],
- "l": true
- },
- {
- "id": "d58c051a.db9038",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec33B",
- "rules": [
- {
- "t": "set",
- "p": "spec33B",
- "pt": "global",
- "to": "2",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec33B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3940,
- "wires": [
- [
- "d8f85d55.a42c1"
- ]
- ]
- },
- {
- "id": "6f4f5901.cd5758",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec33B",
- "rules": [
- {
- "t": "set",
- "p": "spec33B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec33B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3760,
- "wires": [
- [
- "d8f85d55.a42c1"
- ]
- ]
- },
- {
- "id": "1d09af50.7852a1",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "574536c5.0aa488",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec33A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 3720,
- "wires": []
- },
- {
- "id": "d8f85d55.a42c1",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "36d01bee.00ce94",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec33B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 3760,
- "wires": []
- },
- {
- "id": "f1b49268.9850e",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 specST33",
- "rules": [
- {
- "t": "set",
- "p": "specST33",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST33",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3860,
- "wires": [
- [
- "28591d76.0c14c2"
- ]
- ]
- },
- {
- "id": "6377f095.12de7",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE specST33",
- "rules": [
- {
- "t": "set",
- "p": "specST33",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST33",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 430,
- "y": 3680,
- "wires": [
- [
- "28591d76.0c14c2"
- ]
- ]
- },
- {
- "id": "28591d76.0c14c2",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "d428e163.e1935",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "specST33",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 3680,
- "wires": []
- },
- {
- "id": "c5ed291d.c1d598",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec33C",
- "rules": [
- {
- "t": "set",
- "p": "spec33C",
- "pt": "global",
- "to": "2",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec33C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3980,
- "wires": [
- [
- "6166d85a.1727a8"
- ]
- ]
- },
- {
- "id": "883790cb.7f6d",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec33C",
- "rules": [
- {
- "t": "set",
- "p": "spec33C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec33C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 3800,
- "wires": [
- [
- "6166d85a.1727a8"
- ]
- ]
- },
- {
- "id": "6166d85a.1727a8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "b274fb2a.6777b8",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec33C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 3800,
- "wires": []
- },
- {
- "id": "aea13a90.316c18",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST33 NONE",
- "links": [
- "6289dfc2.70bf1"
- ],
- "x": 110,
- "y": 3680,
- "wires": [
- [
- "6377f095.12de7",
- "1641d666.90840a",
- "6f4f5901.cd5758",
- "883790cb.7f6d"
- ]
- ],
- "l": true
- },
- {
- "id": "c0f9e41e.bbc818",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST33 BB3",
- "links": [
- "3a5d789d.f03908"
- ],
- "x": 100,
- "y": 3860,
- "wires": [
- [
- "f1b49268.9850e",
- "d58c051a.db9038",
- "9421ecf0.30857",
- "c5ed291d.c1d598"
- ]
- ],
- "l": true
- },
- {
- "id": "c0f8270b.20e818",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count33A",
- "func": "value = flow.get('count33A')||0;\nvalue++;\nflow.set('count33A',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 1620,
- "wires": [
- [
- "1fdbd2b5.85b15d",
- "475e87ad.a1ddf8"
- ]
- ]
- },
- {
- "id": "1fdbd2b5.85b15d",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff33A",
- "func": "count = flow.get('count33A');\nspec = global.get('spec33A');\ndiff = spec-count;\nflow.set('diff33A',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge33A',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 1740,
- "wires": [
- [
- "1d00bd00.909853",
- "ae6a054a.f6d4f8"
- ]
- ]
- },
- {
- "id": "b20adcda.a083",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "574536c5.0aa488",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count33A Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3760,
- "y": 1720,
- "wires": [
- [
- "5963a9ea.0c7ed8",
- "475e87ad.a1ddf8",
- "ae6a054a.f6d4f8"
- ]
- ]
- },
- {
- "id": "5963a9ea.0c7ed8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count33A Reset",
- "func": "flow.set('count33A',msg.payload);\nflow.set('judge33A', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 1800,
- "wires": [
- [
- "1d00bd00.909853"
- ]
- ]
- },
- {
- "id": "d839a666.c91438",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count33B",
- "func": "value = flow.get('count33B')||0;\nvalue++;\nflow.set('count33B',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 1940,
- "wires": [
- [
- "2a962958.6e3656",
- "813fe2d0.94e92"
- ]
- ]
- },
- {
- "id": "2a962958.6e3656",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff33B",
- "func": "count = flow.get('count33B');\nspec = global.get('spec33B');\ndiff = spec-count;\nflow.set('diff33B',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge33B',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 2060,
- "wires": [
- [
- "fa21ecad.43e59",
- "88ec834f.e9fa3"
- ]
- ]
- },
- {
- "id": "871fe8eb.d91d18",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "36d01bee.00ce94",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count33B Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3800,
- "y": 2040,
- "wires": [
- [
- "d36844fd.f03ef8",
- "813fe2d0.94e92",
- "88ec834f.e9fa3"
- ]
- ]
- },
- {
- "id": "d36844fd.f03ef8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count33B Reset",
- "func": "flow.set('count33B',msg.payload);\nflow.set('judge33B', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 2120,
- "wires": [
- [
- "fa21ecad.43e59"
- ]
- ]
- },
- {
- "id": "1d00bd00.909853",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge33A",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4260,
- "y": 1740,
- "wires": [
- [
- "e53a6e04.51618",
- "e69c87de.b92888"
- ]
- ]
- },
- {
- "id": "fa21ecad.43e59",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge33B",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4240,
- "y": 2060,
- "wires": [
- [
- "e53a6e04.51618",
- "3b4b16ab.3aff5a"
- ]
- ]
- },
- {
- "id": "e53a6e04.51618",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "STATION JUDGE",
- "func": "j1 = flow.get('judgeST33');\nj2 = flow.get('judge33A');\nj3 = flow.get('judge33B');\nj4 = flow.get('judge33C');\n\ns1 = global.get('specST33');\ns2 = global.get('spec33A');\ns3 = global.get('spec33B');\ns4 = global.get('spec33C');\n\nif (j1 == \"OVER\" || j2 == \"OVER\" || j3 == \"OVER\" || j4 == \"OVER\") {\n msg.payload = \"STOP\"\n}\n\nelse if ((j1 == \"OK\" || s1 == \"OFF\") && (j2 == \"OK\" || s2 == \"OFF\") && (j3 == \"OK\" || s3 == \"OFF\") && (j4 == \"OK\" || s4 == \"OFF\")) {\n msg.payload = \"RESET\"\n}\n\nelse {\n msg.payload = \"RUN\"\n}\n\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "x": 4510,
- "y": 1900,
- "wires": [
- [
- "8ae54ee6.41f26",
- "878b204c.fb001"
- ]
- ]
- },
- {
- "id": "4c6618e8.d3e0a8",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "cd6fe491.995378",
- "order": 3,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "INITIALIZE ST33",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3070,
- "y": 1860,
- "wires": [
- [
- "b20adcda.a083",
- "871fe8eb.d91d18",
- "5ab055d9.f41e2c",
- "c3fff7ae.1250d8"
- ]
- ]
- },
- {
- "id": "475e87ad.a1ddf8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "574536c5.0aa488",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count33A",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 1620,
- "wires": []
- },
- {
- "id": "ae6a054a.f6d4f8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "574536c5.0aa488",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff33A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 1680,
- "wires": []
- },
- {
- "id": "813fe2d0.94e92",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "36d01bee.00ce94",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count33B",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 1940,
- "wires": []
- },
- {
- "id": "88ec834f.e9fa3",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "36d01bee.00ce94",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff33B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 2000,
- "wires": []
- },
- {
- "id": "e69c87de.b92888",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "574536c5.0aa488",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge33A",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge33A",
- "x": 4480,
- "y": 1740,
- "wires": []
- },
- {
- "id": "3b4b16ab.3aff5a",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "36d01bee.00ce94",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge33B",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge33B",
- "x": 4480,
- "y": 2120,
- "wires": []
- },
- {
- "id": "9f293e86.5e58e",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "cd6fe491.995378",
- "order": 1,
- "width": 0,
- "height": 0,
- "label": "ST33 STATUS",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "ST33 STATUS",
- "x": 4900,
- "y": 2020,
- "wires": []
- },
- {
- "id": "681ef799.90fc48",
- "type": "mqtt out",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st33",
- "qos": "2",
- "retain": "false",
- "broker": "23c3b4e6.a04dbc",
- "x": 4870,
- "y": 1900,
- "wires": []
- },
- {
- "id": "14607ed.e224d81",
- "type": "mqtt in",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st33",
- "qos": "2",
- "datatype": "utf8",
- "broker": "23c3b4e6.a04dbc",
- "x": 4870,
- "y": 1960,
- "wires": [
- [
- "9f293e86.5e58e",
- "6eba776e.bd9058"
- ]
- ]
- },
- {
- "id": "166fcaff.57ac75",
- "type": "delay",
- "z": "b74a483d.0b9a88",
- "name": "",
- "pauseType": "delay",
- "timeout": "1",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3100,
- "y": 1900,
- "wires": [
- [
- "5ab055d9.f41e2c",
- "b20adcda.a083",
- "871fe8eb.d91d18",
- "c3fff7ae.1250d8"
- ]
- ]
- },
- {
- "id": "733ee094.52e81",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST33",
- "func": "value = flow.get('countST33')||0;\nvalue++;\nflow.set('countST33',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3770,
- "y": 1280,
- "wires": [
- [
- "c5298935.859a88",
- "b5d33b1a.6a1698"
- ]
- ]
- },
- {
- "id": "c5298935.859a88",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diffST33",
- "func": "count = flow.get('countST33');\nspec = global.get('specST33');\ndiff = spec-count;\nflow.set('diffST33',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judgeST33',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4020,
- "y": 1400,
- "wires": [
- [
- "ad9c2c5.ce8a5d",
- "95281a54.b05028"
- ]
- ]
- },
- {
- "id": "5ab055d9.f41e2c",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "d428e163.e1935",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "countST33 Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3750,
- "y": 1380,
- "wires": [
- [
- "3205115c.06ffbe",
- "b5d33b1a.6a1698",
- "95281a54.b05028"
- ]
- ]
- },
- {
- "id": "3205115c.06ffbe",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST33 Reset",
- "func": "flow.set('countST33',msg.payload);\nflow.set('judgeST33', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4050,
- "y": 1460,
- "wires": [
- [
- "ad9c2c5.ce8a5d"
- ]
- ]
- },
- {
- "id": "ad9c2c5.ce8a5d",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judgeST33",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4260,
- "y": 1400,
- "wires": [
- [
- "ba3dff35.d35e4",
- "e53a6e04.51618"
- ]
- ]
- },
- {
- "id": "b5d33b1a.6a1698",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "d428e163.e1935",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "countST33",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4030,
- "y": 1280,
- "wires": []
- },
- {
- "id": "95281a54.b05028",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "d428e163.e1935",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diffST33",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4020,
- "y": 1340,
- "wires": []
- },
- {
- "id": "ba3dff35.d35e4",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "d428e163.e1935",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judgeST33",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judgeST33",
- "x": 4490,
- "y": 1400,
- "wires": []
- },
- {
- "id": "a198174.693a2e8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count33C",
- "func": "value = flow.get('count33C')||0;\nvalue++;\nflow.set('count33C',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 2240,
- "wires": [
- [
- "1f0d5439.f3a82c",
- "74bc9ab3.8990c4"
- ]
- ]
- },
- {
- "id": "1f0d5439.f3a82c",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff33C",
- "func": "count = flow.get('count33C');\nspec = global.get('spec33C');\ndiff = spec-count;\nflow.set('diff33C',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge33C',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 2380,
- "wires": [
- [
- "a55f1730.6da608",
- "7eaf4006.28dab"
- ]
- ]
- },
- {
- "id": "c3fff7ae.1250d8",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "b274fb2a.6777b8",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count33C Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3800,
- "y": 2380,
- "wires": [
- [
- "b5ca36d2.bc2bd8",
- "74bc9ab3.8990c4",
- "7eaf4006.28dab"
- ]
- ]
- },
- {
- "id": "b5ca36d2.bc2bd8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count33C Reset",
- "func": "flow.set('count33C',msg.payload);\nflow.set('judge33C', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 2440,
- "wires": [
- [
- "a55f1730.6da608"
- ]
- ]
- },
- {
- "id": "a55f1730.6da608",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge33C",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4240,
- "y": 2380,
- "wires": [
- [
- "b18e01b7.fdb7c",
- "e53a6e04.51618"
- ]
- ]
- },
- {
- "id": "74bc9ab3.8990c4",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "b274fb2a.6777b8",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count33C",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 2260,
- "wires": []
- },
- {
- "id": "7eaf4006.28dab",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "b274fb2a.6777b8",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff33C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 2320,
- "wires": []
- },
- {
- "id": "b18e01b7.fdb7c",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "b274fb2a.6777b8",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge33C",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge33C",
- "x": 4480,
- "y": 2380,
- "wires": []
- },
- {
- "id": "2b2f7bf2.243734",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "33C TICK",
- "group": "b274fb2a.6777b8",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "33C TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3580,
- "y": 2140,
- "wires": [
- [
- "a198174.693a2e8"
- ]
- ]
- },
- {
- "id": "8ae54ee6.41f26",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "RESET",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "STOP",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 4470,
- "y": 1980,
- "wires": [
- [
- "166fcaff.57ac75"
- ],
- [
- "949bf402.839cc8"
- ]
- ]
- },
- {
- "id": "878b204c.fb001",
- "type": "rbe",
- "z": "b74a483d.0b9a88",
- "name": "",
- "func": "rbe",
- "gap": "",
- "start": "",
- "inout": "out",
- "property": "payload",
- "x": 4710,
- "y": 1900,
- "wires": [
- [
- "681ef799.90fc48"
- ]
- ]
- },
- {
- "id": "c755ad94.b035a",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "ST33 TICK",
- "group": "d428e163.e1935",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "ST33 TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3510,
- "y": 1240,
- "wires": [
- [
- "733ee094.52e81"
- ]
- ]
- },
- {
- "id": "8e45799d.a962b8",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "33A TICK",
- "group": "574536c5.0aa488",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "33A TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3540,
- "y": 1560,
- "wires": [
- [
- "c0f8270b.20e818"
- ]
- ]
- },
- {
- "id": "ce5a68c.ddc6a98",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "33B TICK",
- "group": "36d01bee.00ce94",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "33B TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3520,
- "y": 1860,
- "wires": [
- [
- "d839a666.c91438"
- ]
- ]
- },
- {
- "id": "8690f794.ab0428",
- "type": "ui_dropdown",
- "z": "b74a483d.0b9a88",
- "name": "",
- "label": "ST34 MODEL",
- "tooltip": "",
- "place": "Select model",
- "group": "9339cb95.7b4128",
- "order": 2,
- "width": "0",
- "height": "0",
- "passthru": false,
- "options": [
- {
- "label": "NONE",
- "value": "NONE",
- "type": "str"
- },
- {
- "label": "BB3",
- "value": "BB3",
- "type": "str"
- }
- ],
- "payload": "",
- "topic": "",
- "x": 120,
- "y": 4040,
- "wires": [
- [
- "479785d3.1077ec"
- ]
- ]
- },
- {
- "id": "479785d3.1077ec",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "NONE",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "BB3",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 2,
- "x": 270,
- "y": 4040,
- "wires": [
- [
- "90f6cded.2b266"
- ],
- [
- "2ba2667b.a6f2ba"
- ]
- ]
- },
- {
- "id": "e0951a43.437c08",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec34A",
- "rules": [
- {
- "t": "set",
- "p": "spec34A",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec34A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4360,
- "wires": [
- [
- "902d8952.224f08"
- ]
- ]
- },
- {
- "id": "863dea42.f80ee8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec34A",
- "rules": [
- {
- "t": "set",
- "p": "spec34A",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec34A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4180,
- "wires": [
- [
- "902d8952.224f08"
- ]
- ]
- },
- {
- "id": "90f6cded.2b266",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST34 NONE",
- "links": [
- "e074099e.b24938"
- ],
- "x": 510,
- "y": 4040,
- "wires": [],
- "l": true
- },
- {
- "id": "2ba2667b.a6f2ba",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST34 BB3",
- "links": [
- "7e80f6c8.1c5aa8"
- ],
- "x": 510,
- "y": 4080,
- "wires": [],
- "l": true
- },
- {
- "id": "1efff34c.370afd",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec34B",
- "rules": [
- {
- "t": "set",
- "p": "spec34B",
- "pt": "global",
- "to": "2",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec34B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4400,
- "wires": [
- [
- "f1c7828f.d04a1"
- ]
- ]
- },
- {
- "id": "260b5827.87a418",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec34B",
- "rules": [
- {
- "t": "set",
- "p": "spec34B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec34B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4220,
- "wires": [
- [
- "f1c7828f.d04a1"
- ]
- ]
- },
- {
- "id": "902d8952.224f08",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "6906fa75.d8bf24",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec34A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 4180,
- "wires": []
- },
- {
- "id": "f1c7828f.d04a1",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "346e64dc.d50d4c",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec34B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 4220,
- "wires": []
- },
- {
- "id": "61197802.856ca8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 specST34",
- "rules": [
- {
- "t": "set",
- "p": "specST34",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST34",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4320,
- "wires": [
- [
- "b17d8ef0.45fe4"
- ]
- ]
- },
- {
- "id": "a79f286e.db95f8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE specST34",
- "rules": [
- {
- "t": "set",
- "p": "specST34",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST34",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 430,
- "y": 4140,
- "wires": [
- [
- "b17d8ef0.45fe4"
- ]
- ]
- },
- {
- "id": "b17d8ef0.45fe4",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "2acfd920.1a1976",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "specST34",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 4140,
- "wires": []
- },
- {
- "id": "27714c64.005224",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec34C",
- "rules": [
- {
- "t": "set",
- "p": "spec34C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec34C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4440,
- "wires": [
- [
- "fd399c10.9bb34"
- ]
- ]
- },
- {
- "id": "d204dc88.3ea53",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec34C",
- "rules": [
- {
- "t": "set",
- "p": "spec34C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec34C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4260,
- "wires": [
- [
- "fd399c10.9bb34"
- ]
- ]
- },
- {
- "id": "fd399c10.9bb34",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "45b1689d.4c2918",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec34C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 4260,
- "wires": []
- },
- {
- "id": "e074099e.b24938",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST34 NONE",
- "links": [
- "90f6cded.2b266"
- ],
- "x": 110,
- "y": 4140,
- "wires": [
- [
- "a79f286e.db95f8",
- "863dea42.f80ee8",
- "260b5827.87a418",
- "d204dc88.3ea53"
- ]
- ],
- "l": true
- },
- {
- "id": "7e80f6c8.1c5aa8",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST34 BB3",
- "links": [
- "2ba2667b.a6f2ba"
- ],
- "x": 100,
- "y": 4320,
- "wires": [
- [
- "61197802.856ca8",
- "1efff34c.370afd",
- "e0951a43.437c08",
- "27714c64.005224"
- ]
- ],
- "l": true
- },
- {
- "id": "8141606b.467ae",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count34A",
- "func": "value = flow.get('count34A')||0;\nvalue++;\nflow.set('count34A',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 2920,
- "wires": [
- [
- "ef8fc348.e998f",
- "36500858.c83ac8"
- ]
- ]
- },
- {
- "id": "ef8fc348.e998f",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff34A",
- "func": "count = flow.get('count34A');\nspec = global.get('spec34A');\ndiff = spec-count;\nflow.set('diff34A',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge34A',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 3040,
- "wires": [
- [
- "368edc8c.8bf884",
- "d51616ea.da6ab8"
- ]
- ]
- },
- {
- "id": "8d5439c7.a80738",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "6906fa75.d8bf24",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count34A Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3760,
- "y": 3020,
- "wires": [
- [
- "c4f0454c.922cc8",
- "36500858.c83ac8",
- "d51616ea.da6ab8"
- ]
- ]
- },
- {
- "id": "c4f0454c.922cc8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count34A Reset",
- "func": "flow.set('count34A',msg.payload);\nflow.set('judge34A', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 3100,
- "wires": [
- [
- "368edc8c.8bf884"
- ]
- ]
- },
- {
- "id": "bd50a9ea.2c9258",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count34B",
- "func": "value = flow.get('count34B')||0;\nvalue++;\nflow.set('count34B',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 3240,
- "wires": [
- [
- "1c682ccc.7590f3",
- "fde5623d.4834c"
- ]
- ]
- },
- {
- "id": "1c682ccc.7590f3",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff34B",
- "func": "count = flow.get('count34B');\nspec = global.get('spec34B');\ndiff = spec-count;\nflow.set('diff34B',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge34B',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 3360,
- "wires": [
- [
- "718a4829.d13788",
- "d81a25e1.fa70b8"
- ]
- ]
- },
- {
- "id": "18587373.a8f51d",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "346e64dc.d50d4c",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count34B Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3800,
- "y": 3340,
- "wires": [
- [
- "20ca604a.d3b17",
- "fde5623d.4834c",
- "d81a25e1.fa70b8"
- ]
- ]
- },
- {
- "id": "20ca604a.d3b17",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count34B Reset",
- "func": "flow.set('count34B',msg.payload);\nflow.set('judge34B', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 3420,
- "wires": [
- [
- "718a4829.d13788"
- ]
- ]
- },
- {
- "id": "368edc8c.8bf884",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge34A",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4260,
- "y": 3040,
- "wires": [
- [
- "6136924d.03144c",
- "6527dc82.4beb44"
- ]
- ]
- },
- {
- "id": "718a4829.d13788",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge34B",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4240,
- "y": 3360,
- "wires": [
- [
- "6136924d.03144c",
- "bd4296e.c748e68"
- ]
- ]
- },
- {
- "id": "6136924d.03144c",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "STATION JUDGE",
- "func": "j1 = flow.get('judgeST34');\nj2 = flow.get('judge34A');\nj3 = flow.get('judge34B');\nj4 = flow.get('judge34C');\n\ns1 = global.get('specST34');\ns2 = global.get('spec34A');\ns3 = global.get('spec34B');\ns4 = global.get('spec34C');\n\nif (j1 == \"OVER\" || j2 == \"OVER\" || j3 == \"OVER\" || j4 == \"OVER\") {\n msg.payload = \"STOP\"\n}\n\nelse if ((j1 == \"OK\" || s1 == \"OFF\") && (j2 == \"OK\" || s2 == \"OFF\") && (j3 == \"OK\" || s3 == \"OFF\") && (j4 == \"OK\" || s4 == \"OFF\")) {\n msg.payload = \"RESET\"\n}\n\nelse {\n msg.payload = \"RUN\"\n}\n\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "x": 4510,
- "y": 3200,
- "wires": [
- [
- "8930fe43.39454",
- "d0e1887b.10b878"
- ]
- ]
- },
- {
- "id": "96118ef9.9d383",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "9339cb95.7b4128",
- "order": 3,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "INITIALIZE ST34",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3070,
- "y": 3160,
- "wires": [
- [
- "8d5439c7.a80738",
- "18587373.a8f51d",
- "2d37681b.0fd488",
- "76f1c95d.4a1c48"
- ]
- ]
- },
- {
- "id": "36500858.c83ac8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "6906fa75.d8bf24",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count34A",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 2920,
- "wires": []
- },
- {
- "id": "d51616ea.da6ab8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "6906fa75.d8bf24",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff34A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 2980,
- "wires": []
- },
- {
- "id": "fde5623d.4834c",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "346e64dc.d50d4c",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count34B",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 3240,
- "wires": []
- },
- {
- "id": "d81a25e1.fa70b8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "346e64dc.d50d4c",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff34B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 3300,
- "wires": []
- },
- {
- "id": "6527dc82.4beb44",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "6906fa75.d8bf24",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge34A",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge34A",
- "x": 4480,
- "y": 3040,
- "wires": []
- },
- {
- "id": "bd4296e.c748e68",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "346e64dc.d50d4c",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge34B",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge34B",
- "x": 4480,
- "y": 3420,
- "wires": []
- },
- {
- "id": "d20da57a.2ac228",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "9339cb95.7b4128",
- "order": 1,
- "width": 0,
- "height": 0,
- "label": "ST34 STATUS",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "ST34 STATUS",
- "x": 4900,
- "y": 3320,
- "wires": []
- },
- {
- "id": "d1a3ce11.22b9e",
- "type": "mqtt out",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st34",
- "qos": "2",
- "retain": "false",
- "broker": "23c3b4e6.a04dbc",
- "x": 4870,
- "y": 3200,
- "wires": []
- },
- {
- "id": "743e38ef.ac6688",
- "type": "mqtt in",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st34",
- "qos": "2",
- "datatype": "utf8",
- "broker": "23c3b4e6.a04dbc",
- "x": 4870,
- "y": 3260,
- "wires": [
- [
- "d20da57a.2ac228",
- "6c294870.cdcc68"
- ]
- ]
- },
- {
- "id": "e0a9948a.87b7a8",
- "type": "delay",
- "z": "b74a483d.0b9a88",
- "name": "",
- "pauseType": "delay",
- "timeout": "1",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3100,
- "y": 3200,
- "wires": [
- [
- "2d37681b.0fd488",
- "8d5439c7.a80738",
- "18587373.a8f51d",
- "76f1c95d.4a1c48"
- ]
- ]
- },
- {
- "id": "3950077b.457468",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST34",
- "func": "value = flow.get('countST34')||0;\nvalue++;\nflow.set('countST34',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3770,
- "y": 2580,
- "wires": [
- [
- "1979fa8a.c547a5",
- "4f331a4a.e025e4"
- ]
- ]
- },
- {
- "id": "1979fa8a.c547a5",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diffST34",
- "func": "count = flow.get('countST34');\nspec = global.get('specST34');\ndiff = spec-count;\nflow.set('diffST34',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judgeST34',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4020,
- "y": 2700,
- "wires": [
- [
- "ebe22c8e.3b991",
- "211bf90c.741f66"
- ]
- ]
- },
- {
- "id": "2d37681b.0fd488",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "2acfd920.1a1976",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "countST34 Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3750,
- "y": 2680,
- "wires": [
- [
- "81c6af6b.8e88f",
- "4f331a4a.e025e4",
- "211bf90c.741f66"
- ]
- ]
- },
- {
- "id": "81c6af6b.8e88f",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST34 Reset",
- "func": "flow.set('countST34',msg.payload);\nflow.set('judgeST34', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4050,
- "y": 2760,
- "wires": [
- [
- "ebe22c8e.3b991"
- ]
- ]
- },
- {
- "id": "ebe22c8e.3b991",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judgeST34",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4260,
- "y": 2700,
- "wires": [
- [
- "fb208d2a.15925",
- "6136924d.03144c"
- ]
- ]
- },
- {
- "id": "4f331a4a.e025e4",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "2acfd920.1a1976",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "countST34",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4030,
- "y": 2580,
- "wires": []
- },
- {
- "id": "211bf90c.741f66",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "2acfd920.1a1976",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diffST34",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4020,
- "y": 2640,
- "wires": []
- },
- {
- "id": "fb208d2a.15925",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "2acfd920.1a1976",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judgeST34",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judgeST34",
- "x": 4490,
- "y": 2700,
- "wires": []
- },
- {
- "id": "4ec4d671.45d528",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count34C",
- "func": "value = flow.get('count34C')||0;\nvalue++;\nflow.set('count34C',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 3540,
- "wires": [
- [
- "9655f44d.ce6b68",
- "b3e321e4.be82f"
- ]
- ]
- },
- {
- "id": "9655f44d.ce6b68",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff34C",
- "func": "count = flow.get('count34C');\nspec = global.get('spec34C');\ndiff = spec-count;\nflow.set('diff34C',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge34C',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 3680,
- "wires": [
- [
- "7a626b06.8531c4",
- "e51ff059.589cb"
- ]
- ]
- },
- {
- "id": "76f1c95d.4a1c48",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "45b1689d.4c2918",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count34C Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3800,
- "y": 3680,
- "wires": [
- [
- "c3258447.406ca8",
- "b3e321e4.be82f",
- "e51ff059.589cb"
- ]
- ]
- },
- {
- "id": "c3258447.406ca8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count34C Reset",
- "func": "flow.set('count34C',msg.payload);\nflow.set('judge34C', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 3740,
- "wires": [
- [
- "7a626b06.8531c4"
- ]
- ]
- },
- {
- "id": "7a626b06.8531c4",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge34C",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4240,
- "y": 3680,
- "wires": [
- [
- "cdf35736.516838",
- "6136924d.03144c"
- ]
- ]
- },
- {
- "id": "b3e321e4.be82f",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "45b1689d.4c2918",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count34C",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 3560,
- "wires": []
- },
- {
- "id": "e51ff059.589cb",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "45b1689d.4c2918",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff34C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 3620,
- "wires": []
- },
- {
- "id": "cdf35736.516838",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "45b1689d.4c2918",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge34C",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge34C",
- "x": 4480,
- "y": 3680,
- "wires": []
- },
- {
- "id": "64a1cdd5.7e4be4",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "34C TICK",
- "group": "45b1689d.4c2918",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "34C TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3600,
- "y": 3460,
- "wires": [
- [
- "4ec4d671.45d528"
- ]
- ]
- },
- {
- "id": "8930fe43.39454",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "RESET",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "STOP",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 4470,
- "y": 3260,
- "wires": [
- [
- "e0a9948a.87b7a8"
- ],
- [
- "1eab5ee3.805571"
- ]
- ]
- },
- {
- "id": "d0e1887b.10b878",
- "type": "rbe",
- "z": "b74a483d.0b9a88",
- "name": "",
- "func": "rbe",
- "gap": "",
- "start": "",
- "inout": "out",
- "property": "payload",
- "x": 4710,
- "y": 3200,
- "wires": [
- [
- "d1a3ce11.22b9e"
- ]
- ]
- },
- {
- "id": "293aa4e2.aec15c",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "ST34 TICK",
- "group": "2acfd920.1a1976",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "ST34 TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3510,
- "y": 2640,
- "wires": [
- [
- "3950077b.457468"
- ]
- ]
- },
- {
- "id": "921728d8.06da28",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "34A TICK",
- "group": "6906fa75.d8bf24",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "34A TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3540,
- "y": 2880,
- "wires": [
- [
- "8141606b.467ae"
- ]
- ]
- },
- {
- "id": "27115339.51f41c",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "34B TICK",
- "group": "346e64dc.d50d4c",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "34B TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3520,
- "y": 3140,
- "wires": [
- [
- "bd50a9ea.2c9258"
- ]
- ]
- },
- {
- "id": "5236776.ffe2d88",
- "type": "ui_dropdown",
- "z": "b74a483d.0b9a88",
- "name": "",
- "label": "ST35 MODEL",
- "tooltip": "",
- "place": "Select model",
- "group": "b40a7a73.52dfb8",
- "order": 2,
- "width": "0",
- "height": "0",
- "passthru": false,
- "options": [
- {
- "label": "NONE",
- "value": "NONE",
- "type": "str"
- },
- {
- "label": "BB3",
- "value": "BB3",
- "type": "str"
- }
- ],
- "payload": "",
- "topic": "",
- "x": 120,
- "y": 4520,
- "wires": [
- [
- "aef3ae66.11ead"
- ]
- ]
- },
- {
- "id": "aef3ae66.11ead",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "NONE",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "BB3",
- "vt": "str"
- }
- ],
- "checkall": "false",
- "repair": false,
- "outputs": 2,
- "x": 270,
- "y": 4520,
- "wires": [
- [
- "501755e3.8704dc"
- ],
- [
- "1fe943f9.32d29c"
- ]
- ]
- },
- {
- "id": "12abb173.e3af8f",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec35A",
- "rules": [
- {
- "t": "set",
- "p": "spec35A",
- "pt": "global",
- "to": "3",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec35A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4840,
- "wires": [
- [
- "a715502a.45b34"
- ]
- ]
- },
- {
- "id": "b3d73a1f.6b1f08",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec35A",
- "rules": [
- {
- "t": "set",
- "p": "spec35A",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec35A",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4660,
- "wires": [
- [
- "a715502a.45b34"
- ]
- ]
- },
- {
- "id": "501755e3.8704dc",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST35 NONE",
- "links": [
- "6bb2fa9.623d704"
- ],
- "x": 510,
- "y": 4520,
- "wires": [],
- "l": true
- },
- {
- "id": "1fe943f9.32d29c",
- "type": "link out",
- "z": "b74a483d.0b9a88",
- "name": "ST35 BB3",
- "links": [
- "8c63af3f.2b2a9"
- ],
- "x": 510,
- "y": 4560,
- "wires": [],
- "l": true
- },
- {
- "id": "3bb372e9.5ed29e",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec35B",
- "rules": [
- {
- "t": "set",
- "p": "spec35B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec35B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4880,
- "wires": [
- [
- "1246d47a.f4d22c"
- ]
- ]
- },
- {
- "id": "88501f58.8c28b",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec35B",
- "rules": [
- {
- "t": "set",
- "p": "spec35B",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec35B",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4700,
- "wires": [
- [
- "1246d47a.f4d22c"
- ]
- ]
- },
- {
- "id": "a715502a.45b34",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "9fa650d3.8b1ad",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec35A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 4660,
- "wires": []
- },
- {
- "id": "1246d47a.f4d22c",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "886a7ac5.534ff8",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec35B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 4700,
- "wires": []
- },
- {
- "id": "3a27131f.af74ac",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 specST35",
- "rules": [
- {
- "t": "set",
- "p": "specST35",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST35",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4800,
- "wires": [
- [
- "4bee224a.06d20c"
- ]
- ]
- },
- {
- "id": "556066fa.ae0ad8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE specST35",
- "rules": [
- {
- "t": "set",
- "p": "specST35",
- "pt": "global",
- "to": "1",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "specST35",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 430,
- "y": 4620,
- "wires": [
- [
- "4bee224a.06d20c"
- ]
- ]
- },
- {
- "id": "4bee224a.06d20c",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "34efde9f.15c342",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "specST35",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 4620,
- "wires": []
- },
- {
- "id": "c540e3b7.d80fc",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "BB3 spec35C",
- "rules": [
- {
- "t": "set",
- "p": "spec35C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec35C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4920,
- "wires": [
- [
- "15834e30.8a2ce2"
- ]
- ]
- },
- {
- "id": "c70c7493.7ed798",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "NONE spec35C",
- "rules": [
- {
- "t": "set",
- "p": "spec35C",
- "pt": "global",
- "to": "OFF",
- "tot": "str"
- },
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "spec35C",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 420,
- "y": 4740,
- "wires": [
- [
- "15834e30.8a2ce2"
- ]
- ]
- },
- {
- "id": "15834e30.8a2ce2",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "81407b75.5ce838",
- "order": 3,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "spec35C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 680,
- "y": 4740,
- "wires": []
- },
- {
- "id": "6bb2fa9.623d704",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST35 NONE",
- "links": [
- "501755e3.8704dc"
- ],
- "x": 110,
- "y": 4620,
- "wires": [
- [
- "556066fa.ae0ad8",
- "b3d73a1f.6b1f08",
- "88501f58.8c28b",
- "c70c7493.7ed798"
- ]
- ],
- "l": true
- },
- {
- "id": "8c63af3f.2b2a9",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "ST35 BB3",
- "links": [
- "1fe943f9.32d29c"
- ],
- "x": 100,
- "y": 4800,
- "wires": [
- [
- "3a27131f.af74ac",
- "3bb372e9.5ed29e",
- "12abb173.e3af8f",
- "c540e3b7.d80fc"
- ]
- ],
- "l": true
- },
- {
- "id": "dd875094.190a1",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count35A",
- "func": "value = flow.get('count35A')||0;\nvalue++;\nflow.set('count35A',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 4160,
- "wires": [
- [
- "e3bd464c.6754b8",
- "3b1f34cb.04c9ec"
- ]
- ]
- },
- {
- "id": "e3bd464c.6754b8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff35A",
- "func": "count = flow.get('count35A');\nspec = global.get('spec35A');\ndiff = spec-count;\nflow.set('diff35A',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge35A',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 4280,
- "wires": [
- [
- "3b7a287e.f62b68",
- "b6422b13.09acd8"
- ]
- ]
- },
- {
- "id": "35e8de18.6fc6f2",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "9fa650d3.8b1ad",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count35A Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3760,
- "y": 4260,
- "wires": [
- [
- "72dca949.9fd7b8",
- "3b1f34cb.04c9ec",
- "b6422b13.09acd8"
- ]
- ]
- },
- {
- "id": "72dca949.9fd7b8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count35A Reset",
- "func": "flow.set('count35A',msg.payload);\nflow.set('judge35A', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 4340,
- "wires": [
- [
- "3b7a287e.f62b68"
- ]
- ]
- },
- {
- "id": "56bdfa23.bc9ff4",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count35B",
- "func": "value = flow.get('count35B')||0;\nvalue++;\nflow.set('count35B',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 4480,
- "wires": [
- [
- "a7321906.ff7e78",
- "6cdf89c3.98c1a8"
- ]
- ]
- },
- {
- "id": "a7321906.ff7e78",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff35B",
- "func": "count = flow.get('count35B');\nspec = global.get('spec35B');\ndiff = spec-count;\nflow.set('diff35B',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge35B',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 4600,
- "wires": [
- [
- "a91232d4.73ceb",
- "87c5b8bb.2928b8"
- ]
- ]
- },
- {
- "id": "abe69cb5.26285",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "886a7ac5.534ff8",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count35B Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3800,
- "y": 4580,
- "wires": [
- [
- "fc04f3e1.a4db3",
- "6cdf89c3.98c1a8",
- "87c5b8bb.2928b8"
- ]
- ]
- },
- {
- "id": "fc04f3e1.a4db3",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count35B Reset",
- "func": "flow.set('count35B',msg.payload);\nflow.set('judge35B', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 4660,
- "wires": [
- [
- "a91232d4.73ceb"
- ]
- ]
- },
- {
- "id": "3b7a287e.f62b68",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge35A",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4260,
- "y": 4280,
- "wires": [
- [
- "b0185a45.2ffb88",
- "75faa13e.4bd13"
- ]
- ]
- },
- {
- "id": "a91232d4.73ceb",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge35B",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4240,
- "y": 4600,
- "wires": [
- [
- "b0185a45.2ffb88",
- "7ffbc71c.095368"
- ]
- ]
- },
- {
- "id": "b0185a45.2ffb88",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "STATION JUDGE",
- "func": "j1 = flow.get('judgeST35');\nj2 = flow.get('judge35A');\nj3 = flow.get('judge35B');\nj4 = flow.get('judge35C');\n\ns1 = global.get('specST35');\ns2 = global.get('spec35A');\ns3 = global.get('spec35B');\ns4 = global.get('spec35C');\n\nif (j1 == \"OVER\" || j2 == \"OVER\" || j3 == \"OVER\" || j4 == \"OVER\") {\n msg.payload = \"STOP\"\n}\n\nelse if ((j1 == \"OK\" || s1 == \"OFF\") && (j2 == \"OK\" || s2 == \"OFF\") && (j3 == \"OK\" || s3 == \"OFF\") && (j4 == \"OK\" || s4 == \"OFF\")) {\n msg.payload = \"RESET\"\n}\n\nelse {\n msg.payload = \"RUN\"\n}\n\nreturn msg;\n",
- "outputs": 1,
- "noerr": 0,
- "x": 4510,
- "y": 4440,
- "wires": [
- [
- "487fc37e.08785c",
- "bfb65c1f.354b5"
- ]
- ]
- },
- {
- "id": "402f7dd.2d7d084",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "b40a7a73.52dfb8",
- "order": 3,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "INITIALIZE ST35",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3070,
- "y": 4400,
- "wires": [
- [
- "35e8de18.6fc6f2",
- "abe69cb5.26285",
- "5462e11f.3bfa1",
- "36071d93.3951f2"
- ]
- ]
- },
- {
- "id": "3b1f34cb.04c9ec",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "9fa650d3.8b1ad",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count35A",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 4160,
- "wires": []
- },
- {
- "id": "b6422b13.09acd8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "9fa650d3.8b1ad",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff35A",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 4220,
- "wires": []
- },
- {
- "id": "6cdf89c3.98c1a8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "886a7ac5.534ff8",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count35B",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 4480,
- "wires": []
- },
- {
- "id": "87c5b8bb.2928b8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "886a7ac5.534ff8",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff35B",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 4540,
- "wires": []
- },
- {
- "id": "75faa13e.4bd13",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "9fa650d3.8b1ad",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge35A",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge35A",
- "x": 4480,
- "y": 4280,
- "wires": []
- },
- {
- "id": "7ffbc71c.095368",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "886a7ac5.534ff8",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge35B",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge35B",
- "x": 4480,
- "y": 4640,
- "wires": []
- },
- {
- "id": "fc8f97ed.215a08",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "b40a7a73.52dfb8",
- "order": 1,
- "width": 0,
- "height": 0,
- "label": "ST35 STATUS",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "ST35 STATUS",
- "x": 4900,
- "y": 4560,
- "wires": []
- },
- {
- "id": "96932c2c.37e78",
- "type": "mqtt out",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st35",
- "qos": "2",
- "retain": "false",
- "broker": "23c3b4e6.a04dbc",
- "x": 4870,
- "y": 4440,
- "wires": []
- },
- {
- "id": "be0859a8.6ba628",
- "type": "mqtt in",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st35",
- "qos": "2",
- "datatype": "utf8",
- "broker": "23c3b4e6.a04dbc",
- "x": 4870,
- "y": 4500,
- "wires": [
- [
- "fc8f97ed.215a08",
- "e8aedbd4.931c58"
- ]
- ]
- },
- {
- "id": "76e138bd.7dd178",
- "type": "delay",
- "z": "b74a483d.0b9a88",
- "name": "",
- "pauseType": "delay",
- "timeout": "1",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 3100,
- "y": 4440,
- "wires": [
- [
- "5462e11f.3bfa1",
- "35e8de18.6fc6f2",
- "abe69cb5.26285",
- "36071d93.3951f2"
- ]
- ]
- },
- {
- "id": "688a6ca7.566b64",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST35",
- "func": "value = flow.get('countST35')||0;\nvalue++;\nflow.set('countST35',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3770,
- "y": 3820,
- "wires": [
- [
- "14f6d663.7c3f3a",
- "a57db37e.5e0aa"
- ]
- ]
- },
- {
- "id": "14f6d663.7c3f3a",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diffST35",
- "func": "count = flow.get('countST35');\nspec = global.get('specST35');\ndiff = spec-count;\nflow.set('diffST35',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judgeST35',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4020,
- "y": 3940,
- "wires": [
- [
- "8442129c.b9baa",
- "1095a864.439cb8"
- ]
- ]
- },
- {
- "id": "5462e11f.3bfa1",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "34efde9f.15c342",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "countST35 Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3750,
- "y": 3920,
- "wires": [
- [
- "9e3e68d1.291b38",
- "a57db37e.5e0aa",
- "1095a864.439cb8"
- ]
- ]
- },
- {
- "id": "9e3e68d1.291b38",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "countST35 Reset",
- "func": "flow.set('countST35',msg.payload);\nflow.set('judgeST35', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4050,
- "y": 4000,
- "wires": [
- [
- "8442129c.b9baa"
- ]
- ]
- },
- {
- "id": "8442129c.b9baa",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judgeST35",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4260,
- "y": 3940,
- "wires": [
- [
- "e22f12af.ac777",
- "b0185a45.2ffb88"
- ]
- ]
- },
- {
- "id": "a57db37e.5e0aa",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "34efde9f.15c342",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "countST35",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4030,
- "y": 3820,
- "wires": []
- },
- {
- "id": "1095a864.439cb8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "34efde9f.15c342",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diffST35",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4020,
- "y": 3880,
- "wires": []
- },
- {
- "id": "e22f12af.ac777",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "34efde9f.15c342",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judgeST35",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judgeST35",
- "x": 4490,
- "y": 3940,
- "wires": []
- },
- {
- "id": "4a92e772.950758",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count35C",
- "func": "value = flow.get('count35C')||0;\nvalue++;\nflow.set('count35C',value);\nreturn { payload : value };",
- "outputs": 1,
- "noerr": 0,
- "x": 3760,
- "y": 4780,
- "wires": [
- [
- "b5a229df.0fa208",
- "ce39b9cf.cfa7c8"
- ]
- ]
- },
- {
- "id": "b5a229df.0fa208",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "diff35C",
- "func": "count = flow.get('count35C');\nspec = global.get('spec35C');\ndiff = spec-count;\nflow.set('diff35C',diff);\n\nif (diff > 0) {\n judge = \"PENDING\"\n}\nif (diff === 0) {\n judge = \"OK\"\n} \nif (diff < 0 ) {\n judge = \"OVER\"\n}\nflow.set('judge35C',judge);\n\nreturn { payload : diff };",
- "outputs": 1,
- "noerr": 0,
- "x": 4040,
- "y": 4920,
- "wires": [
- [
- "d7769901.7b9de8",
- "b0167753.029f98"
- ]
- ]
- },
- {
- "id": "36071d93.3951f2",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "81407b75.5ce838",
- "order": 5,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "count35C Reset",
- "tooltip": "",
- "color": "red",
- "bgcolor": "black",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 3800,
- "y": 4920,
- "wires": [
- [
- "a95efc56.4db48",
- "ce39b9cf.cfa7c8",
- "b0167753.029f98"
- ]
- ]
- },
- {
- "id": "a95efc56.4db48",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "count35C Reset",
- "func": "flow.set('count35C',msg.payload);\nflow.set('judge35C', \"PENDING\");\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 4060,
- "y": 4980,
- "wires": [
- [
- "d7769901.7b9de8"
- ]
- ]
- },
- {
- "id": "d7769901.7b9de8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "judge35C",
- "tot": "flow"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 4240,
- "y": 4920,
- "wires": [
- [
- "e79f7d33.7979a",
- "b0185a45.2ffb88"
- ]
- ]
- },
- {
- "id": "ce39b9cf.cfa7c8",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "81407b75.5ce838",
- "order": 1,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "count35C",
- "format": "<font size=\"50\">{{msg.payload}}</font>",
- "layout": "row-spread",
- "x": 4040,
- "y": 4800,
- "wires": []
- },
- {
- "id": "b0167753.029f98",
- "type": "ui_text",
- "z": "b74a483d.0b9a88",
- "group": "81407b75.5ce838",
- "order": 4,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "diff35C",
- "format": "{{msg.payload}}",
- "layout": "row-spread",
- "x": 4040,
- "y": 4860,
- "wires": []
- },
- {
- "id": "e79f7d33.7979a",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "81407b75.5ce838",
- "order": 2,
- "width": 0,
- "height": 0,
- "label": "judge35C",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "yellow",
- "value": "PENDING",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "OK",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "OVER",
- "valueType": "str"
- }
- ],
- "name": "judge35C",
- "x": 4480,
- "y": 4920,
- "wires": []
- },
- {
- "id": "f8b347cc.953848",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "35C TICK",
- "group": "81407b75.5ce838",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "35C TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3600,
- "y": 4700,
- "wires": [
- [
- "4a92e772.950758"
- ]
- ]
- },
- {
- "id": "487fc37e.08785c",
- "type": "switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "RESET",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "STOP",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 4470,
- "y": 4520,
- "wires": [
- [
- "76e138bd.7dd178"
- ],
- [
- "75e0a800.2aaf58"
- ]
- ]
- },
- {
- "id": "bfb65c1f.354b5",
- "type": "rbe",
- "z": "b74a483d.0b9a88",
- "name": "",
- "func": "rbe",
- "gap": "",
- "start": "",
- "inout": "out",
- "property": "payload",
- "x": 4710,
- "y": 4440,
- "wires": [
- [
- "96932c2c.37e78"
- ]
- ]
- },
- {
- "id": "13edb9c9.34cd06",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "ST35 TICK",
- "group": "34efde9f.15c342",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "ST35 TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3530,
- "y": 3760,
- "wires": [
- [
- "688a6ca7.566b64"
- ]
- ]
- },
- {
- "id": "e120669b.168a58",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "35A TICK",
- "group": "9fa650d3.8b1ad",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "35A TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3540,
- "y": 4100,
- "wires": [
- [
- "dd875094.190a1"
- ]
- ]
- },
- {
- "id": "1b3c21d4.c7d38e",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "35B TICK",
- "group": "886a7ac5.534ff8",
- "order": 6,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "35B TICK",
- "tooltip": "",
- "color": "blue",
- "bgcolor": "black",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 3520,
- "y": 4420,
- "wires": [
- [
- "56bdfa23.bc9ff4"
- ]
- ]
- },
- {
- "id": "a2473cb1.13c6a",
- "type": "Invert",
- "z": "b74a483d.0b9a88",
- "name": "Invert",
- "x": 650,
- "y": 140,
- "wires": [
- [
- "cfd3ac56.a840a"
- ]
- ]
- },
- {
- "id": "d29f1ad7.f61728",
- "type": "ui_ui_control",
- "z": "b74a483d.0b9a88",
- "name": "",
- "x": 1100,
- "y": 1700,
- "wires": [
- []
- ]
- },
- {
- "id": "d0edef40.9af5",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "733941c3.48ab2",
- "order": 2,
- "width": "1",
- "height": "1",
- "passthru": false,
- "label": "GO",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "1",
- "payloadType": "str",
- "topic": "",
- "x": 1090,
- "y": 1380,
- "wires": [
- [
- "d29f1ad7.f61728"
- ]
- ]
- },
- {
- "id": "c8418594.9ea088",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "4ad1866e.5088f8",
- "order": 2,
- "width": "1",
- "height": "1",
- "passthru": false,
- "label": "GO",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "2",
- "payloadType": "str",
- "topic": "",
- "x": 1090,
- "y": 1420,
- "wires": [
- [
- "d29f1ad7.f61728"
- ]
- ]
- },
- {
- "id": "24a6ba78.f112d6",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "f27d4ac6.42e6e8",
- "order": 2,
- "width": "1",
- "height": "1",
- "passthru": false,
- "label": "GO",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "4",
- "payloadType": "str",
- "topic": "",
- "x": 1090,
- "y": 1500,
- "wires": [
- [
- "d29f1ad7.f61728"
- ]
- ]
- },
- {
- "id": "bc8156a1.0fbd08",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "5379f7b1.cd9b28",
- "order": 2,
- "width": "1",
- "height": "1",
- "passthru": false,
- "label": "GO",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "3",
- "payloadType": "str",
- "topic": "",
- "x": 1090,
- "y": 1460,
- "wires": [
- [
- "d29f1ad7.f61728"
- ]
- ]
- },
- {
- "id": "fa0f70c4.5790d",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "e62729b1.e0c408",
- "order": 2,
- "width": "1",
- "height": "1",
- "passthru": false,
- "label": "GO",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "5",
- "payloadType": "str",
- "topic": "",
- "x": 1090,
- "y": 1540,
- "wires": [
- [
- "d29f1ad7.f61728"
- ]
- ]
- },
- {
- "id": "ecf9e355.02d2b",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "6f54e459.43d16c",
- "order": 2,
- "width": "1",
- "height": "1",
- "passthru": false,
- "label": "GO",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "6",
- "payloadType": "str",
- "topic": "",
- "x": 1090,
- "y": 1580,
- "wires": [
- [
- "d29f1ad7.f61728"
- ]
- ]
- },
- {
- "id": "669466e1.5f67f8",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "35d333dd.86415c",
- "order": 2,
- "width": "1",
- "height": "1",
- "passthru": false,
- "label": "GO",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "7",
- "payloadType": "str",
- "topic": "",
- "x": 1090,
- "y": 1620,
- "wires": [
- [
- "d29f1ad7.f61728"
- ]
- ]
- },
- {
- "id": "f8c7f2e5.5b9d",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "413c5f16.1ce2e",
- "order": 2,
- "width": "1",
- "height": "1",
- "passthru": false,
- "label": "GO",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "8",
- "payloadType": "str",
- "topic": "",
- "x": 1090,
- "y": 1660,
- "wires": [
- [
- "d29f1ad7.f61728"
- ]
- ]
- },
- {
- "id": "5784ad94.576854",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "4ad1866e.5088f8",
- "order": 1,
- "width": "1",
- "height": "1",
- "label": "",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "",
- "x": 2750,
- "y": 2020,
- "wires": []
- },
- {
- "id": "3b226929.87a166",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "5379f7b1.cd9b28",
- "order": 1,
- "width": "1",
- "height": "1",
- "label": "",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "",
- "x": 2750,
- "y": 3220,
- "wires": []
- },
- {
- "id": "e323d11f.27242",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "f27d4ac6.42e6e8",
- "order": 1,
- "width": "1",
- "height": "1",
- "label": "",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "",
- "x": 2770,
- "y": 4560,
- "wires": []
- },
- {
- "id": "3a8fefc5.e1e7a",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "e62729b1.e0c408",
- "order": 1,
- "width": "1",
- "height": "1",
- "label": "",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "",
- "x": 4850,
- "y": 820,
- "wires": []
- },
- {
- "id": "6eba776e.bd9058",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "6f54e459.43d16c",
- "order": 1,
- "width": "1",
- "height": "1",
- "label": "",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "",
- "x": 4830,
- "y": 2080,
- "wires": []
- },
- {
- "id": "6c294870.cdcc68",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "35d333dd.86415c",
- "order": 1,
- "width": "1",
- "height": "1",
- "label": "",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "",
- "x": 4870,
- "y": 3360,
- "wires": []
- },
- {
- "id": "e8aedbd4.931c58",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "413c5f16.1ce2e",
- "order": 1,
- "width": "1",
- "height": "1",
- "label": "",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "",
- "x": 4870,
- "y": 4620,
- "wires": []
- },
- {
- "id": "c66ea286.0c781",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "8039eabe.18e3c8",
- "order": 0,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "HOME",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 910,
- "y": 1380,
- "wires": [
- [
- "667b6c92.0f89b4"
- ]
- ]
- },
- {
- "id": "667b6c92.0f89b4",
- "type": "ui_ui_control",
- "z": "b74a483d.0b9a88",
- "name": "",
- "x": 920,
- "y": 1700,
- "wires": [
- []
- ]
- },
- {
- "id": "70cf03a2.446c3c",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "4dd4cf21.1cb1f",
- "order": 0,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "HOME",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 910,
- "y": 1420,
- "wires": [
- [
- "667b6c92.0f89b4"
- ]
- ]
- },
- {
- "id": "540f0686.22b6d8",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "e69148a6.10a7f8",
- "order": 0,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "HOME",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 910,
- "y": 1460,
- "wires": [
- [
- "667b6c92.0f89b4"
- ]
- ]
- },
- {
- "id": "77fa5ca6.fc9d84",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "72048c22.c7c4a4",
- "order": 0,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "HOME",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 910,
- "y": 1500,
- "wires": [
- [
- "667b6c92.0f89b4"
- ]
- ]
- },
- {
- "id": "29fd843.d28727c",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "aa3b7f55.e0f49",
- "order": 0,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "HOME",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 910,
- "y": 1540,
- "wires": [
- [
- "667b6c92.0f89b4"
- ]
- ]
- },
- {
- "id": "3990489a.b25d48",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "cd6fe491.995378",
- "order": 0,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "HOME",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 910,
- "y": 1580,
- "wires": [
- [
- "667b6c92.0f89b4"
- ]
- ]
- },
- {
- "id": "ec8e75af.176378",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "9339cb95.7b4128",
- "order": 0,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "HOME",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 910,
- "y": 1620,
- "wires": [
- [
- "667b6c92.0f89b4"
- ]
- ]
- },
- {
- "id": "bc0f7be.b17f788",
- "type": "ui_button",
- "z": "b74a483d.0b9a88",
- "name": "",
- "group": "b40a7a73.52dfb8",
- "order": 0,
- "width": "0",
- "height": "0",
- "passthru": false,
- "label": "HOME",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "0",
- "payloadType": "str",
- "topic": "",
- "x": 910,
- "y": 1660,
- "wires": [
- [
- "667b6c92.0f89b4"
- ]
- ]
- },
- {
- "id": "c0a59a50.163258",
- "type": "subflow:ca70aebf.8b7e2",
- "z": "b74a483d.0b9a88",
- "name": "",
- "env": [],
- "x": 490,
- "y": 280,
- "wires": [
- [
- "afd17387.60949",
- "31cb5605.a0db2a"
- ]
- ]
- },
- {
- "id": "acfceccf.86cc8",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "Timeout 40 sec ",
- "rules": [
- {
- "t": "set",
- "p": "timeout",
- "pt": "msg",
- "to": "80000",
- "tot": "num"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 320,
- "y": 280,
- "wires": [
- [
- "c0a59a50.163258"
- ]
- ]
- },
- {
- "id": "afd17387.60949",
- "type": "ui_switch",
- "z": "b74a483d.0b9a88",
- "name": "",
- "label": "{{msg.topic}}",
- "tooltip": "",
- "group": "59a7b6eb.cb9708",
- "order": 5,
- "width": "0",
- "height": "0",
- "passthru": true,
- "decouple": "false",
- "topic": "",
- "style": "",
- "onvalue": "true",
- "onvalueType": "bool",
- "onicon": "check_circle",
- "oncolor": "green",
- "offvalue": "false",
- "offvalueType": "bool",
- "officon": "error_outline",
- "offcolor": "red",
- "x": 670,
- "y": 320,
- "wires": [
- []
- ]
- },
- {
- "id": "3d0e5a7d.0a7ab6",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "enabled",
- "pt": "msg",
- "to": "false",
- "tot": "bool"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 320,
- "y": 320,
- "wires": [
- [
- "c8d53ab4.4bdf18"
- ]
- ]
- },
- {
- "id": "c8d53ab4.4bdf18",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "payload",
- "pt": "msg",
- "to": "",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 500,
- "y": 320,
- "wires": [
- [
- "afd17387.60949"
- ]
- ]
- },
- {
- "id": "fb77261d.5d00e8",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "repeat": "",
- "crontab": "",
- "once": true,
- "x": 130,
- "y": 320,
- "wires": [
- [
- "3d0e5a7d.0a7ab6"
- ]
- ]
- },
- {
- "id": "31cb5605.a0db2a",
- "type": "Invert",
- "z": "b74a483d.0b9a88",
- "name": "Invert",
- "x": 670,
- "y": 280,
- "wires": [
- [
- "d524823f.5c0a6"
- ]
- ]
- },
- {
- "id": "d524823f.5c0a6",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "isonlineHerutu",
- "pt": "flow",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 860,
- "y": 280,
- "wires": [
- [
- "c76f83bb.69d1b"
- ]
- ]
- },
- {
- "id": "cfd3ac56.a840a",
- "type": "change",
- "z": "b74a483d.0b9a88",
- "name": "",
- "rules": [
- {
- "t": "set",
- "p": "isonlineStopper",
- "pt": "flow",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 850,
- "y": 140,
- "wires": [
- [
- "c76f83bb.69d1b"
- ]
- ]
- },
- {
- "id": "c76f83bb.69d1b",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "OR",
- "func": "arduino = flow.get('isonlineStopper');\nherutu = flow.get('isonlineHerutu');\n\nif (arduino == true || herutu == true) {\n msg.payload = \"true\"\n}\n\nelse {\n msg.payload = false\n}\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 810,
- "y": 220,
- "wires": [
- [
- "3e1d37f0.558578"
- ]
- ]
- },
- {
- "id": "f82c51e1.28c87",
- "type": "link in",
- "z": "b74a483d.0b9a88",
- "name": "BCONV",
- "links": [
- "6a21dcce.28d3a4"
- ],
- "x": 90,
- "y": 280,
- "wires": [
- [
- "acfceccf.86cc8"
- ]
- ],
- "l": true
- },
- {
- "id": "faec80.7148838",
- "type": "rpi-gpio out",
- "z": "b74a483d.0b9a88",
- "name": "",
- "pin": "16",
- "set": true,
- "level": "0",
- "freq": "50",
- "out": "out",
- "x": 1000,
- "y": 380,
- "wires": []
- },
- {
- "id": "88adbae1.6e4868",
- "type": "trigger",
- "z": "b74a483d.0b9a88",
- "op1": "true",
- "op2": "false",
- "op1type": "bool",
- "op2type": "bool",
- "duration": "1",
- "extend": false,
- "units": "s",
- "reset": "",
- "bytopic": "all",
- "name": "",
- "x": 840,
- "y": 380,
- "wires": [
- [
- "faec80.7148838"
- ]
- ]
- },
- {
- "id": "fe231aec.e9edd8",
- "type": "mqtt out",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st260",
- "qos": "2",
- "retain": "false",
- "broker": "23c3b4e6.a04dbc",
- "x": 2830,
- "y": 620,
- "wires": []
- },
- {
- "id": "3e1d37f0.558578",
- "type": "rpi-gpio out",
- "z": "b74a483d.0b9a88",
- "name": "",
- "pin": "18",
- "set": true,
- "level": "0",
- "freq": "50",
- "out": "out",
- "x": 1000,
- "y": 220,
- "wires": []
- },
- {
- "id": "972c7142.d49b",
- "type": "mqtt in",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "/st260",
- "qos": "2",
- "datatype": "utf8",
- "broker": "23c3b4e6.a04dbc",
- "x": 2830,
- "y": 700,
- "wires": [
- [
- "d2746af6.b87d58",
- "5c826434.5837cc"
- ]
- ]
- },
- {
- "id": "d2746af6.b87d58",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "8039eabe.18e3c8",
- "order": 1,
- "width": 0,
- "height": 0,
- "label": "ST26 STATUS",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "ST26 STATUS",
- "x": 2760,
- "y": 800,
- "wires": []
- },
- {
- "id": "5c826434.5837cc",
- "type": "ui_led",
- "z": "b74a483d.0b9a88",
- "group": "733941c3.48ab2",
- "order": 1,
- "width": "1",
- "height": "1",
- "label": "",
- "labelPlacement": "left",
- "labelAlignment": "left",
- "colorForValue": [
- {
- "color": "blue",
- "value": "RESET",
- "valueType": "str"
- },
- {
- "color": "green",
- "value": "RUN",
- "valueType": "str"
- },
- {
- "color": "red",
- "value": "STOP",
- "valueType": "str"
- }
- ],
- "name": "",
- "x": 2750,
- "y": 880,
- "wires": []
- },
- {
- "id": "44b1f4db.e5043c",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 360,
- "wires": [
- [
- "b2cac58f.5093f8"
- ]
- ]
- },
- {
- "id": "d13456e9.2907e8",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 400,
- "wires": [
- [
- "2f6cab06.69fd34"
- ]
- ]
- },
- {
- "id": "a85a567c.172318",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 480,
- "wires": [
- [
- "cd433161.72831"
- ]
- ]
- },
- {
- "id": "9e5495ce.d6fee8",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 440,
- "wires": [
- [
- "859d3a30.f09788"
- ]
- ]
- },
- {
- "id": "396eb81f.875258",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 640,
- "wires": [
- [
- "d4bfa94.9d2d358"
- ]
- ]
- },
- {
- "id": "d8f8f0ff.ac248",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 600,
- "wires": [
- [
- "c9191bd3.6ae6b8"
- ]
- ]
- },
- {
- "id": "77738f2e.53fad",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 560,
- "wires": [
- [
- "8d87ffa7.3bbc7"
- ]
- ]
- },
- {
- "id": "de7a22e4.039bb",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 520,
- "wires": [
- [
- "f3e4793c.2eaec8"
- ]
- ]
- },
- {
- "id": "7cdfdfac.2f6dc",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 880,
- "wires": [
- [
- "adc7ba06.7c0918"
- ]
- ]
- },
- {
- "id": "f0bcfaa4.41f048",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 840,
- "wires": [
- [
- "59157ad3.58ee54"
- ]
- ]
- },
- {
- "id": "dc968ca2.0f48b",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 800,
- "wires": [
- [
- "f7c67fc5.53f33"
- ]
- ]
- },
- {
- "id": "8d718143.2a514",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 760,
- "wires": [
- [
- "d2e9b578.801ea8"
- ]
- ]
- },
- {
- "id": "cd11d73a.20d238",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 720,
- "wires": [
- [
- "858e932.d798c7"
- ]
- ]
- },
- {
- "id": "bcc3c1f9.8aab4",
- "type": "inject",
- "z": "b74a483d.0b9a88",
- "name": "",
- "topic": "",
- "payload": "1",
- "payloadType": "str",
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 350,
- "y": 680,
- "wires": [
- [
- "7d535fe6.b3181"
- ]
- ]
- },
- {
- "id": "fe5f9e35.ffbed",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "DELAY RESET",
- "func": "msg1={reset:true};\nreturn [msg1];",
- "outputs": 1,
- "noerr": 0,
- "x": 2480,
- "y": 740,
- "wires": [
- [
- "8a709517.312758"
- ]
- ]
- },
- {
- "id": "b3bd1502.5ca6f8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "DELAY RESET",
- "func": "msg1={reset:true};\nreturn [msg1];",
- "outputs": 1,
- "noerr": 0,
- "x": 2500,
- "y": 2040,
- "wires": [
- [
- "4b41b010.97488"
- ]
- ]
- },
- {
- "id": "383dc8ec.868c38",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "DELAY RESET",
- "func": "msg1={reset:true};\nreturn [msg1];",
- "outputs": 1,
- "noerr": 0,
- "x": 2520,
- "y": 3260,
- "wires": [
- [
- "fd5438a8.9815e8"
- ]
- ]
- },
- {
- "id": "6ee8bfcb.61671",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "DELAY RESET",
- "func": "msg1={reset:true};\nreturn [msg1];",
- "outputs": 1,
- "noerr": 0,
- "x": 2500,
- "y": 4520,
- "wires": [
- [
- "f0d0f4e1.18ea18"
- ]
- ]
- },
- {
- "id": "fb7f1d5b.5902f",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "DELAY RESET",
- "func": "msg1={reset:true};\nreturn [msg1];",
- "outputs": 1,
- "noerr": 0,
- "x": 4500,
- "y": 760,
- "wires": [
- [
- "731f99a.6645a68"
- ]
- ]
- },
- {
- "id": "949bf402.839cc8",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "DELAY RESET",
- "func": "msg1={reset:true};\nreturn [msg1];",
- "outputs": 1,
- "noerr": 0,
- "x": 4500,
- "y": 2040,
- "wires": [
- [
- "166fcaff.57ac75"
- ]
- ]
- },
- {
- "id": "1eab5ee3.805571",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "DELAY RESET",
- "func": "msg1={reset:true};\nreturn [msg1];",
- "outputs": 1,
- "noerr": 0,
- "x": 4500,
- "y": 3320,
- "wires": [
- [
- "e0a9948a.87b7a8"
- ]
- ]
- },
- {
- "id": "75e0a800.2aaf58",
- "type": "function",
- "z": "b74a483d.0b9a88",
- "name": "DELAY RESET",
- "func": "msg1={reset:true};\nreturn [msg1];",
- "outputs": 1,
- "noerr": 0,
- "x": 4500,
- "y": 4580,
- "wires": [
- [
- "76e138bd.7dd178"
- ]
- ]
- },
- {
- "id": "a40434c4.724848",
- "type": "ui_group",
- "z": "",
- "name": "26A",
- "tab": "19e748f5.fea0b7",
- "order": 3,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "3aaeb6f7.f86caa",
- "type": "ui_group",
- "z": "",
- "name": "26B",
- "tab": "19e748f5.fea0b7",
- "order": 4,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "8039eabe.18e3c8",
- "type": "ui_group",
- "z": "",
- "name": "ST26 MODEL",
- "tab": "19e748f5.fea0b7",
- "order": 1,
- "disp": true,
- "width": "5",
- "collapse": false
- },
- {
- "id": "23c3b4e6.a04dbc",
- "type": "mqtt-broker",
- "z": "",
- "name": "",
- "broker": "localhost",
- "port": "1883",
- "clientid": "",
- "usetls": false,
- "compatmode": true,
- "keepalive": "60",
- "cleansession": true,
- "birthTopic": "",
- "birthQos": "0",
- "birthRetain": "false",
- "birthPayload": "",
- "closeTopic": "",
- "closeQos": "0",
- "closeRetain": "false",
- "closePayload": "",
- "willTopic": "",
- "willQos": "0",
- "willRetain": "false",
- "willPayload": ""
- },
- {
- "id": "51db6c5e.ed1df4",
- "type": "ui_group",
- "z": "",
- "name": "ST26",
- "tab": "19e748f5.fea0b7",
- "order": 2,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "9c1d95a1.cd8938",
- "type": "ui_group",
- "z": "",
- "name": "26C",
- "tab": "19e748f5.fea0b7",
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "b9fbbfeb.2e8af",
- "type": "ui_group",
- "z": "",
- "name": "STOPPER",
- "tab": "293c92e4.776e2e",
- "order": 2,
- "disp": true,
- "width": "2",
- "collapse": false
- },
- {
- "id": "4dd4cf21.1cb1f",
- "type": "ui_group",
- "z": "",
- "name": "ST27 MODEL",
- "tab": "266ab511.86b3ba",
- "order": 1,
- "disp": true,
- "width": "5",
- "collapse": false
- },
- {
- "id": "d5de1677.b88b38",
- "type": "ui_group",
- "z": "",
- "name": "27A",
- "tab": "266ab511.86b3ba",
- "order": 3,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "d6f2c179.1cc21",
- "type": "ui_group",
- "z": "",
- "name": "27B",
- "tab": "266ab511.86b3ba",
- "order": 4,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "ce8a0a2.8c0b3f8",
- "type": "ui_group",
- "z": "",
- "name": "ST27",
- "tab": "266ab511.86b3ba",
- "order": 2,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "64eafc2.f099c04",
- "type": "ui_group",
- "z": "",
- "name": "27C",
- "tab": "266ab511.86b3ba",
- "order": 5,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "e69148a6.10a7f8",
- "type": "ui_group",
- "z": "",
- "name": "ST29 MODEL",
- "tab": "63675d19.c367c4",
- "order": 1,
- "disp": true,
- "width": "5",
- "collapse": false
- },
- {
- "id": "1f0d1716.15c069",
- "type": "ui_group",
- "z": "",
- "name": "29A",
- "tab": "63675d19.c367c4",
- "order": 3,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "b72c3b7b.6203d8",
- "type": "ui_group",
- "z": "",
- "name": "29B",
- "tab": "63675d19.c367c4",
- "order": 4,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "faee2894.5c29e8",
- "type": "ui_group",
- "z": "",
- "name": "ST29",
- "tab": "63675d19.c367c4",
- "order": 2,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "e031de2.eeffc2",
- "type": "ui_group",
- "z": "",
- "name": "29C",
- "tab": "63675d19.c367c4",
- "order": 5,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "72048c22.c7c4a4",
- "type": "ui_group",
- "z": "",
- "name": "ST30 MODEL",
- "tab": "c0e5abd.9512058",
- "order": 1,
- "disp": true,
- "width": "5",
- "collapse": false
- },
- {
- "id": "181b356b.84532b",
- "type": "ui_group",
- "z": "",
- "name": "30A",
- "tab": "c0e5abd.9512058",
- "order": 3,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "f4578e82.05df1",
- "type": "ui_group",
- "z": "",
- "name": "30B",
- "tab": "c0e5abd.9512058",
- "order": 4,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "a0262020.026aa",
- "type": "ui_group",
- "z": "",
- "name": "ST30",
- "tab": "c0e5abd.9512058",
- "order": 2,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "4ec9044f.cecb5c",
- "type": "ui_group",
- "z": "",
- "name": "30C",
- "tab": "c0e5abd.9512058",
- "order": 5,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "aa3b7f55.e0f49",
- "type": "ui_group",
- "z": "",
- "name": "ST32 MODEL",
- "tab": "17245e2c.918182",
- "order": 1,
- "disp": true,
- "width": "5",
- "collapse": false
- },
- {
- "id": "4bd96acf.7ea134",
- "type": "ui_group",
- "z": "",
- "name": "32A",
- "tab": "17245e2c.918182",
- "order": 3,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "115da480.fad6eb",
- "type": "ui_group",
- "z": "",
- "name": "32B",
- "tab": "17245e2c.918182",
- "order": 4,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "72239b05.9c4394",
- "type": "ui_group",
- "z": "",
- "name": "ST32",
- "tab": "17245e2c.918182",
- "order": 2,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "7dac71b.107799",
- "type": "ui_group",
- "z": "",
- "name": "32C",
- "tab": "17245e2c.918182",
- "order": 5,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "cd6fe491.995378",
- "type": "ui_group",
- "z": "",
- "name": "ST33 MODEL",
- "tab": "fe95f725.3a8f68",
- "order": 1,
- "disp": true,
- "width": "5",
- "collapse": false
- },
- {
- "id": "574536c5.0aa488",
- "type": "ui_group",
- "z": "",
- "name": "33A",
- "tab": "fe95f725.3a8f68",
- "order": 3,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "36d01bee.00ce94",
- "type": "ui_group",
- "z": "",
- "name": "33B",
- "tab": "fe95f725.3a8f68",
- "order": 4,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "d428e163.e1935",
- "type": "ui_group",
- "z": "",
- "name": "ST33",
- "tab": "fe95f725.3a8f68",
- "order": 2,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "b274fb2a.6777b8",
- "type": "ui_group",
- "z": "",
- "name": "33C",
- "tab": "fe95f725.3a8f68",
- "order": 5,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "9339cb95.7b4128",
- "type": "ui_group",
- "z": "",
- "name": "ST34 MODEL",
- "tab": "57c2a0d.3f9936",
- "order": 1,
- "disp": true,
- "width": "5",
- "collapse": false
- },
- {
- "id": "6906fa75.d8bf24",
- "type": "ui_group",
- "z": "",
- "name": "34A",
- "tab": "57c2a0d.3f9936",
- "order": 3,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "346e64dc.d50d4c",
- "type": "ui_group",
- "z": "",
- "name": "34B",
- "tab": "57c2a0d.3f9936",
- "order": 4,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "2acfd920.1a1976",
- "type": "ui_group",
- "z": "",
- "name": "ST34",
- "tab": "57c2a0d.3f9936",
- "order": 2,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "45b1689d.4c2918",
- "type": "ui_group",
- "z": "",
- "name": "34C",
- "tab": "57c2a0d.3f9936",
- "order": 5,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "b40a7a73.52dfb8",
- "type": "ui_group",
- "z": "",
- "name": "ST35 MODEL",
- "tab": "cf80360e.5dac08",
- "order": 1,
- "disp": true,
- "width": "5",
- "collapse": false
- },
- {
- "id": "9fa650d3.8b1ad",
- "type": "ui_group",
- "z": "",
- "name": "35A",
- "tab": "cf80360e.5dac08",
- "order": 3,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "886a7ac5.534ff8",
- "type": "ui_group",
- "z": "",
- "name": "35B",
- "tab": "cf80360e.5dac08",
- "order": 4,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "34efde9f.15c342",
- "type": "ui_group",
- "z": "",
- "name": "ST35",
- "tab": "cf80360e.5dac08",
- "order": 2,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "81407b75.5ce838",
- "type": "ui_group",
- "z": "",
- "name": "35C",
- "tab": "cf80360e.5dac08",
- "order": 5,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "733941c3.48ab2",
- "type": "ui_group",
- "z": "",
- "name": "ST26",
- "tab": "293c92e4.776e2e",
- "order": 3,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "4ad1866e.5088f8",
- "type": "ui_group",
- "z": "",
- "name": "ST27",
- "tab": "293c92e4.776e2e",
- "order": 4,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "f27d4ac6.42e6e8",
- "type": "ui_group",
- "z": "",
- "name": "ST30",
- "tab": "293c92e4.776e2e",
- "order": 6,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "5379f7b1.cd9b28",
- "type": "ui_group",
- "z": "",
- "name": "ST29",
- "tab": "293c92e4.776e2e",
- "order": 5,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "e62729b1.e0c408",
- "type": "ui_group",
- "z": "",
- "name": "ST32",
- "tab": "293c92e4.776e2e",
- "order": 7,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "6f54e459.43d16c",
- "type": "ui_group",
- "z": "",
- "name": "ST33",
- "tab": "293c92e4.776e2e",
- "order": 8,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "35d333dd.86415c",
- "type": "ui_group",
- "z": "",
- "name": "ST34",
- "tab": "293c92e4.776e2e",
- "order": 9,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "413c5f16.1ce2e",
- "type": "ui_group",
- "z": "",
- "name": "ST35",
- "tab": "293c92e4.776e2e",
- "order": 10,
- "disp": true,
- "width": "4",
- "collapse": false
- },
- {
- "id": "59a7b6eb.cb9708",
- "type": "ui_group",
- "z": "",
- "name": "CONVEYOR",
- "tab": "293c92e4.776e2e",
- "order": 1,
- "disp": true,
- "width": "2",
- "collapse": false
- },
- {
- "id": "19e748f5.fea0b7",
- "type": "ui_tab",
- "z": "",
- "name": "ST26",
- "icon": "dashboard",
- "order": 2,
- "disabled": false,
- "hidden": false
- },
- {
- "id": "293c92e4.776e2e",
- "type": "ui_tab",
- "z": "",
- "name": "ZONE C",
- "icon": "dashboard",
- "order": 1,
- "disabled": false,
- "hidden": false
- },
- {
- "id": "266ab511.86b3ba",
- "type": "ui_tab",
- "z": "",
- "name": "ST27",
- "icon": "dashboard",
- "order": 3,
- "disabled": false,
- "hidden": false
- },
- {
- "id": "63675d19.c367c4",
- "type": "ui_tab",
- "z": "",
- "name": "ST29",
- "icon": "dashboard",
- "order": 4,
- "disabled": false,
- "hidden": false
- },
- {
- "id": "c0e5abd.9512058",
- "type": "ui_tab",
- "z": "",
- "name": "ST30",
- "icon": "dashboard",
- "order": 5,
- "disabled": false,
- "hidden": false
- },
- {
- "id": "17245e2c.918182",
- "type": "ui_tab",
- "z": "",
- "name": "ST32",
- "icon": "dashboard",
- "order": 6,
- "disabled": false,
- "hidden": false
- },
- {
- "id": "fe95f725.3a8f68",
- "type": "ui_tab",
- "z": "",
- "name": "ST33",
- "icon": "dashboard",
- "order": 7,
- "disabled": false,
- "hidden": false
- },
- {
- "id": "57c2a0d.3f9936",
- "type": "ui_tab",
- "z": "",
- "name": "ST34",
- "icon": "dashboard",
- "order": 8,
- "disabled": false,
- "hidden": false
- },
- {
- "id": "cf80360e.5dac08",
- "type": "ui_tab",
- "z": "",
- "name": "ST35",
- "icon": "dashboard",
- "order": 9,
- "disabled": false,
- "hidden": false
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment