GPSd info using Signal K

40 views
Skip to first unread message

Andy Kopac

unread,
May 23, 2020, 9:24:41 PM5/23/20
to pat-users
Hi Folks

I'm using a Moitessier Hat on my Pi that provides:
GPS
and a ton more of info.

It uses Signal K with Openplotter and Opencpn.

I tried a few iterations to get the GPS to come up in Pat.  Hoping somebody else has tried and succeeded.
  Below are my port settings

Openplotter Ports

Network
I2C Sensors (client)
UDP SoyLibre.local:51000
Pypilot server (server)
TCP SoyLibre.local:21311
Pypilot Signal K output (client)
UDP SoyLibre.local:20220
VNC Remote Desktop (server)
TCP SoyLibre.local:5900
Signal K - Admin (server)
TCP SoyLibre.local:3000
Signal K - NMEA 0183 output (server)
TCP SoyLibre.local:10110
Signal K connection (server)
UDP SoyLibre.local:20220
Signal K connection (server)
UDP SoyLibre.local:51000
OpenCPN connection (client)
TCP SoyLibre.local:10110

Serial

To list devices
ls -l /dev/tty*

crw-rw-rw- 1 root tty       5,  0 May 23 11:48 /dev/tty
crw--w---- 1 root tty       4,  0 May 23 11:48 /dev/tty0
crw------- 1 pi   tty       4,  1 May 23 11:48 /dev/tty1
crw--w---- 1 root tty       4, 10 May 23 11:48 /dev/tty10
crw--w---- 1 root tty       4, 11 May 23 11:48 /dev/tty11
crw--w---- 1 root tty       4, 12 May 23 11:48 /dev/tty12
crw--w---- 1 root tty       4, 13 May 23 11:48 /dev/tty13
crw--w---- 1 root tty       4, 14 May 23 11:48 /dev/tty14
crw--w---- 1 root tty       4, 15 May 23 11:48 /dev/tty15
crw--w---- 1 root tty       4, 16 May 23 11:48 /dev/tty16
crw--w---- 1 root tty       4, 17 May 23 11:48 /dev/tty17
crw--w---- 1 root tty       4, 18 May 23 11:48 /dev/tty18
crw--w---- 1 root tty       4, 19 May 23 11:48 /dev/tty19
crw--w---- 1 root tty       4,  2 May 23 11:48 /dev/tty2
crw--w---- 1 root tty       4, 20 May 23 11:48 /dev/tty20
crw--w---- 1 root tty       4, 21 May 23 11:48 /dev/tty21
crw--w---- 1 root tty       4, 22 May 23 11:48 /dev/tty22
crw--w---- 1 root tty       4, 23 May 23 11:48 /dev/tty23
crw--w---- 1 root tty       4, 24 May 23 11:48 /dev/tty24
crw--w---- 1 root tty       4, 25 May 23 11:48 /dev/tty25
crw--w---- 1 root tty       4, 26 May 23 11:48 /dev/tty26
crw--w---- 1 root tty       4, 27 May 23 11:48 /dev/tty27
crw--w---- 1 root tty       4, 28 May 23 11:48 /dev/tty28
crw--w---- 1 root tty       4, 29 May 23 11:48 /dev/tty29
crw--w---- 1 root tty       4,  3 May 23 11:48 /dev/tty3
crw--w---- 1 root tty       4, 30 May 23 11:48 /dev/tty30
crw--w---- 1 root tty       4, 31 May 23 11:48 /dev/tty31
crw--w---- 1 root tty       4, 32 May 23 11:48 /dev/tty32
crw--w---- 1 root tty       4, 33 May 23 11:48 /dev/tty33
crw--w---- 1 root tty       4, 34 May 23 11:48 /dev/tty34
crw--w---- 1 root tty       4, 35 May 23 11:48 /dev/tty35
crw--w---- 1 root tty       4, 36 May 23 11:48 /dev/tty36
crw--w---- 1 root tty       4, 37 May 23 11:48 /dev/tty37
crw--w---- 1 root tty       4, 38 May 23 11:48 /dev/tty38
crw--w---- 1 root tty       4, 39 May 23 11:48 /dev/tty39
crw--w---- 1 root tty       4,  4 May 23 11:48 /dev/tty4
crw--w---- 1 root tty       4, 40 May 23 11:48 /dev/tty40
crw--w---- 1 root tty       4, 41 May 23 11:48 /dev/tty41
crw--w---- 1 root tty       4, 42 May 23 11:48 /dev/tty42
crw--w---- 1 root tty       4, 43 May 23 11:48 /dev/tty43
crw--w---- 1 root tty       4, 44 May 23 11:48 /dev/tty44
crw--w---- 1 root tty       4, 45 May 23 11:48 /dev/tty45
crw--w---- 1 root tty       4, 46 May 23 11:48 /dev/tty46
crw--w---- 1 root tty       4, 47 May 23 11:48 /dev/tty47
crw--w---- 1 root tty       4, 48 May 23 11:48 /dev/tty48
crw--w---- 1 root tty       4, 49 May 23 11:48 /dev/tty49
crw--w---- 1 root tty       4,  5 May 23 11:48 /dev/tty5
crw--w---- 1 root tty       4, 50 May 23 11:48 /dev/tty50
crw--w---- 1 root tty       4, 51 May 23 11:48 /dev/tty51
crw--w---- 1 root tty       4, 52 May 23 11:48 /dev/tty52
crw--w---- 1 root tty       4, 53 May 23 11:48 /dev/tty53
crw--w---- 1 root tty       4, 54 May 23 11:48 /dev/tty54
crw--w---- 1 root tty       4, 55 May 23 11:48 /dev/tty55
crw--w---- 1 root tty       4, 56 May 23 11:48 /dev/tty56
crw--w---- 1 root tty       4, 57 May 23 11:48 /dev/tty57
crw--w---- 1 root tty       4, 58 May 23 11:48 /dev/tty58
crw--w---- 1 root tty       4, 59 May 23 11:48 /dev/tty59
crw--w---- 1 root tty       4,  6 May 23 11:48 /dev/tty6
crw--w---- 1 root tty       4, 60 May 23 11:48 /dev/tty60
crw--w---- 1 root tty       4, 61 May 23 11:48 /dev/tty61
crw--w---- 1 root tty       4, 62 May 23 11:48 /dev/tty62
crw--w---- 1 root tty       4, 63 May 23 11:48 /dev/tty63
crw--w---- 1 root tty       4,  7 May 23 11:48 /dev/tty7
crw--w---- 1 root tty       4,  8 May 23 11:48 /dev/tty8
crw--w---- 1 root tty       4,  9 May 23 11:48 /dev/tty9
crw-rw---- 1 root dialout 204, 64 May 23 11:48 /dev/ttyAMA0
lrwxrwxrwx 1 root root         14 May 23 11:48 /dev/ttyOP_hat -> moitessier.tty
crw------- 1 root root      5,  3 May 23 11:48 /dev/ttyprintk

Any thoughts.
Message has been deleted

Ole Saastad

unread,
Jun 22, 2022, 12:05:36 PMJun 22
to pat-users
I have a small Python script that request the position from Signal K convert it to grid syntax and displaying  it.

It would be a nice feature if these coordinates could be fed directly into a position report. 
I'm not sure how well Python integrates with pat, but the code is fairly simple.
It can be found here : get.grid.py 

I have also used curl to request the GPS position, this also works fine with Signal K. 
Something along these lines:
curl -s  http://demo.signalk.org:80/signalk/v1/api/vessels/self/navigation/position/value -o position.txt
curl -s  http://demo.signalk.org:80/signalk/v1/api/vessels/self/navigation/position/value | sed s/{.longitude.:/''/| sed s/,.latitude.:/' '/| tr '}'  ' ' > pos.txt

Use your local signal k server ip number and port 3000 to test.


Regards,
Ole /
LB4PJ/MM
Reply all
Reply to author
Forward
0 new messages