From 88b232a525de14f154d4f06f3783103f5bdbc934 Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Fri, 19 Nov 2021 12:56:08 +0100 Subject: [PATCH] flow: remove switch to workaround nodered bug --- flows/main.json | 61 +++++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/flows/main.json b/flows/main.json index 2a27966..6ebb3a6 100644 --- a/flows/main.json +++ b/flows/main.json @@ -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" + ] } ] \ No newline at end of file