gpsd gateway - get GPSd data into Reitti #1163
Stormwind99
started this conversation in
General
Replies: 2 comments 1 reply
|
I love it :) Awesome job. That Peplink BR2 looks amazing. I do not have any vehicle so this is a whole new world for me, but that and your solution is right up my alley 👍 |
0 replies
|
FYI: I renamed the project to gpsd-gateway since I also added support for HTTP File Uploader endpoints and batching points for a specified interval to upload multiple points in one GPX file. Is there any difference between Reitti's pre-existing /api/v1/gpx/import endpoint and the new /api/v2/gpslogger/file endpoint? Other than the path and auth token name, they seem to behave the same and both worked with gpsd-gateway. |
1 reply
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 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-gateway
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-gateway.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.
Edited: Updated with new name
All reactions