Multiple Signal K servers sharing all data
What is the best way to run multiple Signal K servers and have them share all data? In my setup, I have at least two servers, sometimes more. For these two specifically, they each source data that is not available to the other (e.g., Victron SK has battery information while rPi SK has all NMEA data). I want all data, including battery and NMEA, to be available to both. I can establish a WebSocket connection from rPi to Victron, but if I do it bidirectionally (meaning, a separate WebSocket connection from Victron to rPi), things start acting weird. I suspect this is caused by a loop of some sort.
Attaching the WebSocket configuration for reference.
Suggestions welcome.
3 Replies
Why run two? You can use the venus plugin on your rpi sk server.
And then have everything in one place
If you really want/need to run multiple, bidirectional servers, you’ll need to setup subscriptions for each connection
Multiple mostly because of testing, I run different versions of plugins on both servers, use different GPS sources and test them, etc. While that can also be done on a single server, this is more versatile.
Separately, @sbender how do you configure a SK instance on rPI to Venus OS?
It’s in the plugin README