OpenMarine

Full Version: How do I connect two SignalK to each other
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

What I want to achive is:
1-Have an RPI with OpenPlotter in my boat that collects data like GPS position, AIS data and so on,

2-The RPI should bridge internet via an Android for devices onboard, like the kids phones, grib download files for my openCPN laptop 

3-The boat OpenPlotter RPI shall send data collected to SignalK system at "home" via internet, like GPS position. So if others are using my boat I can follow them in my Home SignalK system.


#1 and #2 is working with OpenPlotter 

I cant get my head around #3
-I have tried to setup NMEA0183 over internet, but the connection I need is in setup in the wrong direction.
I can configure my home system to connect via NMEA0183 to the boat RPI when I know the boat RPIs ip-address (like when testing in my home network). However that is not working in my case as the setup is in the wrong direction and  I want the connection to be the other way around!  
Can I configure the Boat RPI to send NMEA0183 to a host and port (like my home SignalK system)? 

-I have tried mqtt with "Signal K - MQTT Gateway"
  -send position data to a TLS and usernmae/passwd secured mqtt server att home
  -bridged that to the unsecure mqtt in my home SignalK server and started that with "Signal K - MQTT Gateway"
  -verified that the posttion data from my boat is in the home SignalK mqtt server
  -but no data shows up in SignalK
  -I thought one of the ideas of that plugin was to both send and retrieve data via mqtt, so I can have a central SignalK system and get data from several vessels?

Is there a way to send SignalK data to a remote SignalK system and let the connection be initiated from the boat system to a known ip adress?

Thanks
PeterA
I"m not sure how to do it, but I'm hoping in the future signalk will send subscriptions in both directions that servers can be chained together efficiently.
Signalk-net-relay plugin seems to be able to send data over UDP, so that might be a solution: add a UDP connection on your home server, either 0183 or Signal K and configure net-relay to send there.

Signal K Cloud plugin will allow you to send data to cloud.signalk.org and configure your home server to get data from there or on iOS you can use Wilhelm SK to see the data off the cloud server.

But you don't need to run a home server to be able to see your boat's data, you can provide remote access to the server onboard with Zerotier or ngrok.

https://www.zerotier.com/
https://ngrok.com/

Adding the ability to publish sk data to another sk server is something we definitely need to do - frankly I am surprised that this isn't there at this day and age.
(2020-08-21, 06:38 AM)tkurki Wrote: [ -> ]Signalk-net-relay plugin seems to be able to send data over UDP, so that might be a solution: add a UDP connection on your home server, either 0183 or Signal K and configure net-relay to send there.

Signal K Cloud plugin will allow you to send data to cloud.signalk.org and configure your home server to get data from there or on iOS you can use Wilhelm SK to see the data off the cloud server.

But you don't need to run a home server to be able to see your boat's data, you can provide remote access to the server onboard with Zerotier or ngrok.

https://www.zerotier.com/
https://ngrok.com/

Adding the ability to publish sk data to another sk server is something we definitely need to do - frankly I am surprised that this isn't there at this day and age.

Thanks for the ideas. I'll spend some time fiddling with it.

Regards
Peter
Found this that seems todo the trick without the need to pay and can have a non random url.
https://jerrington.me/posts/2019-01-29-s...ngrok.html

Thanks
Peter