Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 494 Bytes

gpsd.md

File metadata and controls

25 lines (17 loc) · 494 Bytes

GPS Daemon

Install gpsd

sudo apt-get update
sudo apt-get install gpsd gpsd-clients

gpsfake

Generate fake NMEA data using this NMEA Generator.

Stop the running gpsd daemon and start the gpsfake instance (which runs a daemon itself):

sudo systemctl stop gpsd.socket
gpsfake -c 1 -P 2947 fake.nmea

Get time and lat/lon in CLI

gpspipe -w | sed -n 's/.*"time":"\([^"]\+\)".*"lat":\([^,]\+\),"lon":\([^,]\+\).*/\1,\2,\3/p'