TimePi - GPS Disciplined Raspberry Pi NTP Server

This is a disorganized pile of junk at the moment. Sorry.

/etc/default/gpsd

START_DAEMON="true"
GPSD_OPTIONS="-n"
DEVICES="/dev/ttyAMA0"
USBAUTO="true"
GPSD_SOCKET="/var/run/gpsd.sock"

ntpd.conf

driftfile /var/lib/ntp/ntp.drift

leapfile /usr/share/zoneinfo/leap-seconds.list

# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/
statsdir /mnt/dietpi_userdata/ntpstats

statistics loopstats peerstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable

# SHM driver
server 127.127.28.0  minpoll 4 maxpoll 4
fudge 127.127.28.0 time1 0.0 refid GPS  stratum 15

# Kernel-mode PPS ref-clock for the precise seconds
server 127.127.22.0 minpoll 4 maxpoll 4
fudge 127.127.22.0  refid PPS

server time-a-g.nist.gov prefer
server time-a-wwv.nist.gov prefer

# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1

# Needed for adding pool entries
restrict source notrap nomodify noquery

/etc/udev/rules.d/99-gps.rules

KERNEL=="pps0",SYMLINK+="gpspps0"
KERNEL=="ttyAMA0", SYMLINK+="gps0"

config.txt

gpu_mem=32M
disable_splash=1
dtparam=audio=off
dtparam=i2c_arm=off
dtparam=i2c1=off
dtparam=spi=off
enable_uart=1
dtoverlay=pps-gpio,gpiopin=4
dtoverlay=disable-wifi
dtoverlay=disable-bt
init_uart_baud=9600
arm_freq=700
force_turbo=1
ntp/timepi.txt · Last modified: 2020/04/08 09:41 by john
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0