Saved Pi setup for GSPd and QtGPS

This commit is contained in:
2026-06-08 17:44:51 -04:00
parent e129f4bed5
commit 2bed76092d
4 changed files with 66 additions and 0 deletions

14
pi/etc/default/gpsd Normal file
View File

@ -0,0 +1,14 @@
# Default settings for the gpsd init script and the hotplug wrapper.
# Start the gpsd daemon automatically at boot time
START_DAEMON="true"
# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="true"
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyACM0"
# Other options you want to pass to gpsd
GPSD_OPTIONS="-G"

View File

@ -0,0 +1,15 @@
[Unit]
Description=GPS (Global Positioning System) Daemon
Requires=gpsd.socket
# Needed with chrony SOCK refclock
After=chronyd.service
[Service]
Type=forking
EnvironmentFile=-/etc/default/gpsd
ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $DEVICES
[Install]
WantedBy=multi-user.target
Also=gpsd.socket

View File

@ -0,0 +1,12 @@
[Unit]
Description=GPS (Global Positioning System) Daemon Sockets
[Socket]
ListenStream=
ListenStream=/var/run/gpsd.sock
ListenStream=[::1]:2947
ListenStream=0.0.0.0:2947
SocketMode=0600
[Install]
WantedBy=sockets.target