Simple GPS Logger for Raspberry PI
Tested on :
- Raspberry PI 2
- Adafruit Ultimate GPS Breakout : http://www.adafruit.com/product/746
- Python 3.4
- GPSD
sudo apt-get install gpsd gpsd-clients libgps-dev
Here is a good How To : https://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi/
sudo nano /boot/cmdline.txt
Change :
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
To :
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
sudo nano /etc/default/gpsd
And change the next two following lines :
DEVICES="/dev/ttyUSB0"
GPSD_OPTIONS="-n"
Reboot
Check if GPSD is working properly
cgps -s
./main.py