Log GPS data from gpsd, simplify it and store it as a daily gpx track
Should work on linux and similar systems. I run it on a Raspberry Pi Zero on my boat.
Install https://gpsd.gitlab.io/gpsd
Create a ramdisk. Eventually add it to /etc/fstab
. The ramdisk should be big enough to hold the logfiles.
Log the GPS data from the gpsd
in NMEA format with gpspipe
. I am only interested in the sentences GGA for position, hdop and RMC for position, cog, sog. The log file is stored on the ramdisk.
Start gpsdLog.sh
with cron, e.g. every hour. The gpspipe
should run the same length of time.
To reduce the amount of data, the logfiles are merged, simplified and converted to gpx format. The used nmea log files are deleted to free up the space on the ramdisk.