gpsd to gpslogger gateway - get GPSd data into Reitti #1163
Stormwind99
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I wrote a gpsd to gpslogger endpoint gateway, which I wanted to mention here in case any other folks need to get location data from gpsd into Reitti.
https://github.com/Stormwind99/gpsd-to-gpslogger-endpoint
For my use case, I use the gateway to get GPS data from the gpsd daemon into Reitti via the gpslogger endpoint. I have a Peplink BR2 Pro 5G router with an integrated GPS receiver and rooftop antenna on my camper van/RV, and the BR2 Pro is configured to send NMEA sentences via TCP to gpsd running on my RV's SBC. I then get that gps data into Reitti running on the same SBC, using this gateway process I wrote in Python. I track our travels in Reitti this way, using the multiple device support to track where the camper van is driven, and using on-phone trackers to map our hiking.
I personally run the gateway in a container via Podman under Linux, so I included a Dockerfile to build the container image and an example gpsd-to-gpslogger-endpoint.container Podman Quadlet file to run it in a container.
Background info for gpsd - https://gpsd.gitlab.io/gpsd/
"gpsd is a service daemon that monitors one or more GPSes or AIS receivers attached to a host computer through serial or USB ports, making all data on the location/course/velocity of the sensors available to be queried on TCP port 2947 of the host computer."
gpsd also hides the proprietary differences between different GPS receivers and and provides a uniform, device-independent format for clients, and multiplexes the device to allow multiple client applications to access location data simultaneously without contention.
All reactions