This is a short procedure to turn your raspberry pi into GPS logger
- create a clean raspbian SD and connect it to the raspberry pi
- login
- sudo apt-get update
- sudo apt install vim gpsd gpsd-clients
- modify /etc/default/gpsd
- change GPSD_OPTIONS=”” to GPSD_OPTIONS=”/dev/ttyACM0″
- mkdir gpsdata
- vim gpslogger.sh
#!/bin/bash
gpspipe -r -d -l -o /home/pi/gpsdata/data.`date +%F.%H:%M:%S`.nmea
- chmod +x gpslogger.sh
-
crontab -e
*/5 * * * * /home/pi/gpslogger.sh
- Have fun and don’t forget to delete old files from gpsdata …
- to convert the nmea to csv you can use :
gpsbabel -t -i nmea -f data.2017-04-12.02\:10\:01.nmea -o unicsv -F -
some extras –
if you want to work with python then :
sudo apt install python-gps
and follow : Dan Mandle post