NodeRed
Flow.txt
— 3.3 KB
Dateiinhalt
[ { "id": "e2e7af78.4b5a8", "type": "mqtt in", "z": "cb92c00f.a497f", "name": "", "topic": "eltn-test/devices/+/up", "qos": "2", "broker": "f5eaf23.e661b9", "x": 180, "y": 80, "wires": [ [ "64968c52.67e504" ] ] }, { "id": "605c1808.e5ec48", "type": "debug", "z": "cb92c00f.a497f", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "x": 410, "y": 240, "wires": [] }, { "id": "bc7a8558.47f6a", "type": "worldmap", "z": "cb92c00f.a497f", "name": "", "lat": "", "lon": "", "zoom": "", "layer": "OSM grey", "cluster": "", "maxage": "", "usermenu": "show", "layers": "show", "panit": "false", "x": 150, "y": 320, "wires": [] }, { "id": "4684aeab.34eac", "type": "change", "z": "cb92c00f.a497f", "name": "", "rules": [ { "t": "set", "p": "dev_id", "pt": "msg", "to": "payload.dev_id", "tot": "jsonata" }, { "t": "set", "p": "payload", "pt": "msg", "to": "payload.payload_fields", "tot": "jsonata" }, { "t": "set", "p": "payload.lat", "pt": "msg", "to": "payload.latitude", "tot": "jsonata" }, { "t": "set", "p": "payload.lon", "pt": "msg", "to": "payload.longitude", "tot": "jsonata" }, { "t": "set", "p": "payload.name", "pt": "msg", "to": "dev_id", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 160, "y": 240, "wires": [ [ "605c1808.e5ec48", "bc7a8558.47f6a" ] ] }, { "id": "64968c52.67e504", "type": "json", "z": "cb92c00f.a497f", "name": "", "property": "payload", "action": "obj", "pretty": false, "x": 130, "y": 160, "wires": [ [ "4684aeab.34eac" ] ] }, { "id": "f5eaf23.e661b9", "type": "mqtt-broker", "z": "", "name": "TTN - ELTN", "broker": "eu.thethings.network", "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": "" } ]