pat icon indicating copy to clipboard operation
pat copied to clipboard

Signal K server as a GPS source

Open xylo04 opened this issue 2 years ago • 3 comments

I wasn't familiar with this, but Signal K is an open interconnect and API standard for marine use cases. @olewsaa suggests that we add Signal K as a GPS source. We could do so for form fills (the context of the original comment) as well as position reports.

I've put together a Python script that request GPS position from the Signal K server. It respond with nn.dddd nn.dddd, but I included a routine that convert the output to a grid reference. It would be benefical if Signal K could be added as a source. File is get.grid.py. Not all RPis have a local GPS attached.

Originally posted by @olewsaa in https://github.com/la5nta/pat/issues/330#issuecomment-1163402980

xylo04 avatar Jun 22 '22 23:06 xylo04

As the location is set in the pat config file and I start and stop pat when dealing with winlink emails, fldigi is used most of the time. I wrote a little Python script that request the position from the Signal K server, convert it to grid form and update the location field in the config file. In this way pat would always have the current position when it starts. See : update.pos.pat.conf.py . It might a very quick fix while a more permanent solution is developed.

olewsaa avatar Jun 23 '22 19:06 olewsaa

Gpsd can be just configured to read NMEA tcp stream from SignalK

Sent from my iPhone

On Jun 23, 2022, at 3:05 PM, Ole W. Saastad @.***> wrote:

 As the location is set in the pat config file and I start and stop pat when dealing with winlink emails, fldigi is used most of the time. I wrote a little Python script that request the position from the Signal K server, convert it to grid form and update the location field in the config file. In this way pat would always have the current position when it starts. See : update.pos.pat.conf.py . It might a very quick fix while a more permanent solution is developed.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

mgrouch avatar Jun 23 '22 21:06 mgrouch

NMEA-183 is old (while not yet outdated) and NMEA-2000 (which is CAN bus) is the modern standard and with Signal K as the open source standard (software protocol, TCP/UDP as transport). I think than going Signal K is the modern forward looking approach. Using NMEA-183 is of course working fine.

olewsaa avatar Jun 25 '22 06:06 olewsaa