2020-05-24, 03:42 PM
(This post was last modified: 2020-05-24, 03:44 PM by seandepagnier.)
tkurki,
I have been working on signalk integration and now pypilot detects signalk with zeroconf, finds the url for the websocket using http requests, then connects to the websocket.
pypilot then subscribes to signalk for wind, gps, rudder, or autopilot messages etc if it doesn't have any other higher priority input (like a direct serial connection) It unsubscribes from signalk if a higher priority source is found. This seems to be working.
This is a small annoyance since the server rejected unsubscribe requests, I have to unsubscribe from all and re subscribe to all the keys. Is this by design or just lacking implementation? Also, subscribing to a signalk key the server sends the last value even if it is days old.
So now I have produced various signalk outputs and send them down the websocket as "updates", but this is not working. On the web site localhost:3000 I see:
ws
::1 needs authentication
Is this the reason my data seems to be ignored? The current pypilot signalk integration in openplotter just sends a udp packet to a port configured as input in signalk server but I would like to avoid this for a number of reasons, and I already have the websocket connection.
I have been working on signalk integration and now pypilot detects signalk with zeroconf, finds the url for the websocket using http requests, then connects to the websocket.
pypilot then subscribes to signalk for wind, gps, rudder, or autopilot messages etc if it doesn't have any other higher priority input (like a direct serial connection) It unsubscribes from signalk if a higher priority source is found. This seems to be working.
This is a small annoyance since the server rejected unsubscribe requests, I have to unsubscribe from all and re subscribe to all the keys. Is this by design or just lacking implementation? Also, subscribing to a signalk key the server sends the last value even if it is days old.
So now I have produced various signalk outputs and send them down the websocket as "updates", but this is not working. On the web site localhost:3000 I see:
ws
::1 needs authentication
Is this the reason my data seems to be ignored? The current pypilot signalk integration in openplotter just sends a udp packet to a port configured as input in signalk server but I would like to avoid this for a number of reasons, and I already have the websocket connection.