[ { "id": "1055c7b5a6eebe27", "type": "tab", "label": "Icinga Status", "disabled": false, "info": "", "env": [] }, { "id": "06ec825c769361df", "type": "tab", "label": "JSON Data Test", "disabled": false, "info": "", "env": [] }, { "id": "fc0d07fcf403c479", "type": "tls-config", "name": "", "cert": "", "key": "", "ca": "", "certname": "", "keyname": "", "caname": "", "servername": "", "verifyservercert": false, "alpnprotocol": "" }, { "id": "05fec8f942fe86b0", "type": "inject", "z": "1055c7b5a6eebe27", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 260, "y": 220, "wires": [ [ "c94415368d366ac5" ] ] }, { "id": "c94415368d366ac5", "type": "http request", "z": "1055c7b5a6eebe27", "name": "Global Status", "method": "GET", "ret": "txt", "paytoqs": "ignore", "url": "https://192.168.200.11:5665/v1/status", "tls": "fc0d07fcf403c479", "persist": false, "proxy": "", "insecureHTTPParser": false, "authType": "basic", "senderr": false, "headers": [], "x": 520, "y": 220, "wires": [ [ "14aeffedac5ff373" ] ] }, { "id": "17b2139ad54c976a", "type": "debug", "z": "1055c7b5a6eebe27", "name": "Status", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 750, "y": 220, "wires": [] }, { "id": "14aeffedac5ff373", "type": "json", "z": "1055c7b5a6eebe27", "name": "", "property": "payload", "action": "obj", "pretty": false, "x": 650, "y": 320, "wires": [ [ "17b2139ad54c976a" ] ] }, { "id": "d001dc53.264018", "type": "template", "z": "06ec825c769361df", "name": "", "field": "payload", "fieldType": "msg", "format": "yaml", "syntax": "mustache", "template": "canada:\n fruits:\n - bleuet\n - framboise\n légumes:\n - tomate\n - patate\n - navet\nmexique:\n fruits:\n - café\n - orange\n légumes:\n - avocats", "output": "str", "x": 480, "y": 140, "wires": [ [ "9e173897.ccab38" ] ] }, { "id": "a631ad2e.febf2", "type": "inject", "z": "06ec825c769361df", "name": "", "repeat": "", "crontab": "", "once": true, "topic": "", "payload": "", "payloadType": "date", "x": 300, "y": 140, "wires": [ [ "d001dc53.264018" ] ] }, { "id": "9e173897.ccab38", "type": "yaml", "z": "06ec825c769361df", "name": "", "x": 620, "y": 140, "wires": [ [ "588f9990.21743" ] ] }, { "id": "588f9990.21743", "type": "change", "z": "06ec825c769361df", "name": "", "rules": [ { "t": "set", "p": "food", "pt": "flow", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 780, "y": 140, "wires": [ [] ] }, { "id": "5d6a8619.27e0c8", "type": "inject", "z": "06ec825c769361df", "name": "", "repeat": "", "crontab": "", "once": false, "topic": "", "payload": "repas", "payloadType": "flow", "x": 290, "y": 340, "wires": [ [ "3f38369a.fed952" ] ] }, { "id": "3f38369a.fed952", "type": "debug", "z": "06ec825c769361df", "name": "", "active": true, "console": "false", "complete": "false", "x": 800, "y": 340, "wires": [] }, { "id": "249e58ed.5231b8", "type": "inject", "z": "06ec825c769361df", "name": "", "repeat": "", "crontab": "", "once": false, "topic": "", "payload": "mexique", "payloadType": "str", "x": 290, "y": 420, "wires": [ [ "6d5ef611.7e4c9" ] ] }, { "id": "6d5ef611.7e4c9", "type": "change", "z": "06ec825c769361df", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$lookup($flowContext('food'), payload)", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 530, "y": 420, "wires": [ [ "3f38369a.fed952" ] ] }, { "id": "799e8f63.f79ab8", "type": "inject", "z": "06ec825c769361df", "name": "", "repeat": "", "crontab": "", "once": false, "topic": "", "payload": "canada", "payloadType": "str", "x": 280, "y": 460, "wires": [ [ "6d5ef611.7e4c9" ] ] }, { "id": "ea873589.6832e8", "type": "inject", "z": "06ec825c769361df", "name": "", "props": [ { "p": "payload", "v": "[\"mexique\", \"fruits\"]", "vt": "json" }, { "p": "topic", "v": "", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "topic": "", "payload": "[\"mexique\", \"fruits\"]", "payloadType": "json", "x": 320, "y": 560, "wires": [ [ "cc133563.e5759" ] ] }, { "id": "cc133563.e5759", "type": "change", "z": "06ec825c769361df", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$lookup($flowContext('food'), payload[0]) ~> $lookup(payload[1])", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 530, "y": 560, "wires": [ [ "3f38369a.fed952" ] ] }, { "id": "c19fefdd.daac4", "type": "inject", "z": "06ec825c769361df", "name": "", "repeat": "", "crontab": "", "once": false, "topic": "", "payload": "[\"canada\", \"légumes\"]", "payloadType": "json", "x": 330, "y": 600, "wires": [ [ "cc133563.e5759" ] ] }, { "id": "b434fc1b.4f748", "type": "comment", "z": "06ec825c769361df", "name": "Create a complex stucture", "info": "", "x": 320, "y": 80, "wires": [] }, { "id": "f15b4ee9.993e7", "type": "comment", "z": "06ec825c769361df", "name": "Filter the structure", "info": "", "x": 300, "y": 280, "wires": [] } ]