GPS datalogger for raspberry pi

erangoldman@gmail.com, 07 March 2017

I have 3 buoys that need’s a GPS logger,

Each buoy got it’s own raspberry pi 3 and GPS module.

I used gpspipe  and for the translation to csv gpsbabel

  1. set up a GPS logger , <pre>mkdir ~/gpsdata

vi ~/gpslogger.sh

  #!/bin/bash

  gpspipe -r -d -l -o /home/pi/gpsdata/data.date +%F.%H:%M:%S.nmea</pre>

  1. run the ~/gpslogger.sh using cron to capture data
  2. to translate the nmea to csv I use gpsbabel <pre>for f in ~/gpsdata/*.nmea; do gpsbabel -t -i nmea -f $f -o unicsv -F - >> ~/uni.csv; echo “$f done”; done</pre>