flow: remove switch to workaround nodered bug

This commit is contained in:
Romain Bazile 2021-11-19 12:56:08 +01:00
parent f2e41dc8b6
commit 88b232a525

View file

@ -5173,33 +5173,6 @@
]
]
},
{
"id": "63b885ac.46f384",
"type": "switch",
"z": "f21ba04.c26266",
"name": "Check",
"property": "name",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "name in [\"Wifi\", \"Optic Configuration\", \"Fluidic Acquisition\"]",
"vt": "jsonata"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 270,
"y": 80,
"wires": [
[
"b9bf06d6.26c518",
"4c0400c.69a1e8",
"448b4c37.be50bc"
]
]
},
{
"id": "4c0400c.69a1e8",
"type": "exec",
@ -5426,7 +5399,7 @@
"y": 80,
"wires": [
[
"63b885ac.46f384"
"f103cd20eb4362a4"
]
]
},
@ -10839,9 +10812,8 @@
"repeat": "60",
"crontab": "",
"once": true,
"onceDelay": "2",
"onceDelay": "1",
"topic": "",
"payload": "",
"payloadType": "date",
"x": 270,
"y": 180,
@ -10920,5 +10892,34 @@
"9f501f49.45645"
]
]
},
{
"id": "f103cd20eb4362a4",
"type": "function",
"z": "f21ba04.c26266",
"name": "check tab",
"func": "if (msg.name === \"Wifi\"){\n return [msg, msg]\n}\n\nif ([\"Optic Configuration\", \"Fluidic Acquisition\", \"Segmentation\", \"Gallery\"].includes(msg.name)){\n return [null, msg]\n}",
"outputs": 2,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 260,
"y": 80,
"wires": [
[
"b9bf06d6.26c518",
"4c0400c.69a1e8",
"448b4c37.be50bc"
],
[
"4c0400c.69a1e8",
"448b4c37.be50bc"
]
],
"outputLabels": [
"interface",
"ip"
]
}
]