/GPSLogger

Simple Python GPS Logger for Raspberry Pi

Primary LanguagePythonMIT LicenseMIT

GPSLogger

Simple GPS Logger for Raspberry PI

Hardware

Tested on :

Software

  • Python 3.4
  • GPSD

Setup

Install GPSD

sudo apt-get install gpsd gpsd-clients libgps-dev

Connecting the GPS

Here is a good How To : https://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi/

Step 1

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

Step 2

sudo nano /etc/default/gpsd

And change the next two following lines :

DEVICES="/dev/ttyUSB0"

GPSD_OPTIONS="-n"

Step 3

Reboot

Step 4

Check if GPSD is working properly

cgps -s

Start

./main.py