How to setup node-red to feed GPSD to a virtual device

Hello,
I am new to node-red, maybe it is a very stupid question.
What i try to do is:
I have a GPSD server on my Proxmox in my Motorhome. The Cerbo GX is sadly far away from the roof, and so it won’t get its own GPS antenna.
Since the Venus v3.60 i have hope that i can reuse this GPSD to feed a virtual device in nodered.
I am getting the payload into node-red, but the attached “custom control” do not understand what they have to listen too… the virtual GPS is visible in the Venus OS.

So there is “only” the link between GPSD and virtual device missing.

I hope you guys can help me.

here is how i solved it:
[{“id”:“f9b7078128f9a26d”,“type”:“tab”,“label”:“GPSD”,“disabled”:false,“info”:“”,“env”:},{“id”:“9f3fbd58af4317a6”,“type”:“function”,“z”:“f9b7078128f9a26d”,“name”:“Map to dbus paths”,“func”:“// Array to hold all messages\nlet messages = ;\n\n// Process position data\nmessages.push({\n path: ‘/Position/Longitude’,\n payload: msg.payload.lon\n});\n\nmessages.push({\n path: ‘/Position/Latitude’,\n payload: msg.payload.lat\n});\n\n// Process other GPS data\nmessages.push({\n path: ‘/Speed’,\n payload: msg.payload.speed\n});\n\nmessages.push({\n path: ‘/Course’,\n payload: msg.payload.track\n});\n\nmessages.push({\n path: ‘/Altitude’,\n payload: msg.payload.alt\n});\n\nmessages.push({\n path: ‘/NrOfSatellites’,\n payload: msg.payload.satellites\n});\n\nmessages.push({\n path: ‘/Fix’,\n payload: 1\n});\n\n// Return array of messages\nreturn [messages];”,“outputs”:1,“timeout”:0,“noerr”:0,“initialize”:“”,“finalize”:“”,“libs”:,“x”:550,“y”:320,“wires”:[[“d0ab1fd887ba1713”,“e7809df1cd0c1413”,“7d1041511b6b6713”,“fbe5647a887a087e”,“85002e6b0dea51d3”,“e56df79b2013ced9”,“d9dd532920f06638”,“03130173681b8084”]]},{“id”:“99e2c63fa141341a”,“type”:“gpsd”,“z”:“f9b7078128f9a26d”,“name”:“GPSD-Server”,“hostname”:“192.168.2.11”,“port”:“2947”,“tpv”:true,“sky”:false,“info”:false,“device”:false,“gst”:false,“att”:false,“x”:70,“y”:320,“wires”:[[“387fb997123921d3”]]},{“id”:“d0ab1fd887ba1713”,“type”:“debug”,“z”:“f9b7078128f9a26d”,“name”:“debug 1”,“active”:false,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“statusVal”:“”,“statusType”:“auto”,“x”:800,“y”:260,“wires”:},{“id”:“14f79ecb75d257a1”,“type”:“victron-virtual”,“z”:“f9b7078128f9a26d”,“name”:“GPSD-Server”,“device”:“gps”,“default_values”:false,“battery_capacity”:25,“include_battery_temperature”:false,“grid_nrofphases”:1,“include_motor_temp”:false,“include_controller_temp”:false,“include_coolant_temp”:false,“include_motor_rpm”:true,“include_motor_direction”:true,“position”:0,“pvinverter_nrofphases”:1,“fluid_type”:0,“include_tank_battery”:false,“include_tank_temperature”:false,“tank_battery_voltage”:3.3,“tank_capacity”:0.2,“temperature_type”:2,“include_humidity”:false,“include_pressure”:false,“include_temp_battery”:false,“temp_battery_voltage”:3.3,“x”:70,“y”:400,“wires”:},{“id”:“3dc5d1252704f8a3”,“type”:“debug”,“z”:“f9b7078128f9a26d”,“name”:“debug 2”,“active”:false,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“statusVal”:“”,“statusType”:“auto”,“x”:520,“y”:260,“wires”:},{“id”:“e7809df1cd0c1413”,“type”:“victron-output-custom”,“z”:“f9b7078128f9a26d”,“service”:“com.victronenergy.gps/100”,“path”:“/Position/Longitude”,“serviceObj”:{“service”:“com.victronenergy.gps/100”,“name”:“GPSD-Server (100)”},“pathObj”:{“path”:“/Position/Longitude”,“name”:“/Position/Longitude”,“type”:“object”,“value”:null},“name”:“”,“onlyChanges”:false,“x”:900,“y”:320,“wires”:},{“id”:“d9dd532920f06638”,“type”:“victron-output-custom”,“z”:“f9b7078128f9a26d”,“service”:“com.victronenergy.gps/100”,“path”:“/NrOfSatellites”,“serviceObj”:{“service”:“com.victronenergy.gps/100”,“name”:“GPSD-Server (100)”},“pathObj”:{“path”:“/NrOfSatellites”,“name”:“/NrOfSatellites”,“type”:“object”,“value”:null},“name”:“”,“onlyChanges”:false,“x”:890,“y”:620,“wires”:},{“id”:“e56df79b2013ced9”,“type”:“victron-output-custom”,“z”:“f9b7078128f9a26d”,“service”:“com.victronenergy.gps/100”,“path”:“/Altitude”,“serviceObj”:{“service”:“com.victronenergy.gps/100”,“name”:“GPSD-Server (100)”},“pathObj”:{“path”:“/Altitude”,“name”:“/Altitude”,“type”:“object”,“value”:null},“name”:“”,“onlyChanges”:false,“x”:870,“y”:560,“wires”:},{“id”:“85002e6b0dea51d3”,“type”:“victron-output-custom”,“z”:“f9b7078128f9a26d”,“service”:“com.victronenergy.gps/100”,“path”:“/Course”,“serviceObj”:{“service”:“com.victronenergy.gps/100”,“name”:“GPSD-Server (100)”},“pathObj”:{“path”:“/Course”,“name”:“/Course”,“type”:“object”,“value”:null},“name”:“”,“onlyChanges”:false,“x”:860,“y”:500,“wires”:},{“id”:“fbe5647a887a087e”,“type”:“victron-output-custom”,“z”:“f9b7078128f9a26d”,“service”:“com.victronenergy.gps/100”,“path”:“/Speed”,“serviceObj”:{“service”:“com.victronenergy.gps/100”,“name”:“GPSD-Server (100)”},“pathObj”:{“path”:“/Speed”,“name”:“/Speed”,“type”:“object”,“value”:null},“name”:“”,“onlyChanges”:false,“x”:860,“y”:440,“wires”:},{“id”:“7d1041511b6b6713”,“type”:“victron-output-custom”,“z”:“f9b7078128f9a26d”,“service”:“com.victronenergy.gps/100”,“path”:“/Position/Latitude”,“serviceObj”:{“service”:“com.victronenergy.gps/100”,“name”:“GPSD-Server (100)”},“pathObj”:{“path”:“/Position/Latitude”,“name”:“/Position/Latitude”,“type”:“object”,“value”:null},“name”:“”,“onlyChanges”:false,“x”:890,“y”:380,“wires”:},{“id”:“03130173681b8084”,“type”:“victron-output-custom”,“z”:“f9b7078128f9a26d”,“service”:“com.victronenergy.gps/100”,“path”:“/Fix”,“serviceObj”:{“service”:“com.victronenergy.gps/100”,“name”:“GPSD-Server (100)”},“pathObj”:{“path”:“/Fix”,“name”:“/Fix”,“type”:“object”,“value”:null},“name”:“”,“onlyChanges”:false,“x”:850,“y”:680,“wires”:},{“id”:“387fb997123921d3”,“type”:“delay”,“z”:“f9b7078128f9a26d”,“name”:“”,“pauseType”:“delay”,“timeout”:“.1”,“timeoutUnits”:“seconds”,“rate”:“1”,“nbRateUnits”:“1”,“rateUnits”:“second”,“randomFirst”:“1”,“randomLast”:“5”,“randomUnits”:“seconds”,“drop”:false,“allowrate”:false,“outputs”:1,“x”:280,“y”:320,“wires”:[[“3dc5d1252704f8a3”,“9f3fbd58af4317a6”]]}]

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.