Offline GPS Raspberry pi app
-
Install updates
sudo apt update & sudo apt upgrade -y
-
Update boot Config File, enable serial and i2c, and disable serial console. look in the examples folder.
sudo nano /boot/config.txt
-
Install required software packages for the gps chip
sudo apt install -y chrony gpsd gpsd-tools git pps-tools
-
Install required software packages for the lcd screen
sudo apt install -y python3-pip python3-pil python3-numpy python3-smbus python3-serial python3-dev python3-spidev
-
Install required software packages for this app
sudo apt install -y libosmium2-dev osmium-tool pyosmium libgdal-dev cmake python3-networkx
-
Turn off the pi
sudo reboot
-
Install the components for both devices if you do this earlier it might make your pi unstable (ask me how i know), at least leave the power lines disconnected until the software is installed.
-
Configure gpsd and chrony using the provided files in the examples folder
-
enable the gpsd service & chrony service
sudo systemctl enable gpsd && sudo systemctl start gpsd sudo systemctl enable chrony && sudo systemctl start chrony
-
test gpsd
cgps -s
-
test pps
sudo ppstest /dev/pps0
-
Clone repo :)
-
create venv and install requirements
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
-
run the app
python3 -m gpspi
-
cry because it doesn't work