[ { "id": "579efc8a.629ba4", "type": "websocket in", "z": "53e0326c.92abec", "name": "ws", "server": "56ad07e7.58b168", "client": "", "x": 81, "y": 156.99999713897705, "wires": [ [ "f4ae473a.dc0b68", "3f770c0c.3e2ca4" ] ] }, { "id": "f4ae473a.dc0b68", "type": "jsonpath", "z": "53e0326c.92abec", "expression": "$.updates..values[*]", "split": false, "name": "Signal K delta values", "x": 251, "y": 156.99999713897705, "wires": [ [ "389084ca.2c890c" ] ] }, { "id": "389084ca.2c890c", "type": "function", "z": "53e0326c.92abec", "name": "merge values", "func": "var paths={};\nvar arrayLength = msg.payload.length;\nfor (var i = 0; i < arrayLength; i++) {\n paths[msg.payload[i].path]=msg.payload[i].value;\n}\nmsg.payload = paths;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 451, "y": 156.99999713897705, "wires": [ [ "1f32735b.ad7c8d", "1b6a3896.5ce267", "88833e46.7ca31", "c222343c.193168", "c8c0ca8b.977fb8", "11e50f01.b0de91", "316329cf.e88b46", "e1ebf2c1.aa566", "22d3f57b.fb665a", "e0898e2e.c173a", "fc5c06f4.6fe1f8" ] ] }, { "id": "1b6a3896.5ce267", "type": "function", "z": "53e0326c.92abec", "name": "navigation.position.latitude", "func": "var signalk_key=\"navigation.position\";\n\nif(msg.payload.hasOwnProperty(signalk_key)){\n msg.payload=msg.payload[signalk_key][\"latitude\"];\n return msg;\n}", "outputs": 1, "noerr": 0, "x": 180.00003814697266, "y": 237.00000858306885, "wires": [ [ "2ce0cb5a.2913a4" ] ] }, { "id": "2ce0cb5a.2913a4", "type": "mqtt out", "z": "53e0326c.92abec", "name": "lat", "topic": "lat", "qos": "0", "retain": "", "broker": "ada9afc8.e86e7", "x": 380.00003814697266, "y": 237.00000858306885, "wires": [] }, { "id": "56ad07e7.58b168", "type": "websocket-listener", "z": "", "path": "ws://192.168.1.140:3000/signalk/v1/stream", "wholemsg": "false" }, { "id": "ada9afc8.e86e7", "type": "mqtt-broker", "z": "", "broker": "192.168.1.140", "port": "1883", "clientid": "", "usetls": false, "compatmode": true, "keepalive": "60", "cleansession": true, "willTopic": "", "willQos": "0", "willPayload": "", "birthTopic": "", "birthQos": "0", "birthPayload": "" } ]