Skip to content

Instantly share code, notes, and snippets.

@sdntechforum
Last active June 1, 2023 17:23
Show Gist options
  • Save sdntechforum/3d2da442d2f5f2a41884ac3a08cf057d to your computer and use it in GitHub Desktop.
Save sdntechforum/3d2da442d2f5f2a41884ac3a08cf057d to your computer and use it in GitHub Desktop.
GPS Module Install
cd /dev/
ls
sudo apt-get install gpsd-tools gpsd-clients
sudo systemctl stop gpsd.socket
sudo systemctl disable gpsd.socket
sudo vi /lib/systemd/system/gpsd.socket
sudo killall gpsd
sudo gpsd /dev/ttyACM0 -F /var/run/gpsd.sock
!
gpsmon
!
sudo apt-get install gpsbabel
```
#!/bin/bash
for ((i=0; i<60; i++))
do
timestamp=$(date +"%Y-%m-%d_%H-%M-%S")
gpsbabel -t -i nmea -f /dev/ttyACM0 -o gpx -F "/path/to/output$timestamp.gpx"
sleep 60
done
```
## Make sure you chnage Path to output to a valid location ####
## Make sure to replace "/dev/ttyUSB0" with the correct device path for your GPS device. ##
## You can typically find the correct device path by checking the output of the "dmesg" command right after connecting the GPS device.##
!
chmod +x capture_gps.sh
!
./capture_gps.sh
#!/bin/bash
for ((i=0; i<60; i++))
do
timestamp=$(date +"%Y-%m-%d_%H-%M-%S")
sudo gpscsv -n 1 -x 1 --cvt-isotime > tpv.dat
sleep 60
done
```
@sdntechforum
Copy link
Author

GPS module install on Raspberry Pi

@sdntechforum
Copy link
Author

Headign uodated

@sdntechforum
Copy link
Author

fixed the typo

@sdntechforum
Copy link
Author

added script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment