Skip to content

Commit 54b554a

Browse files
committed
Updated config for chrony.
1 parent dac8353 commit 54b554a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

example.config.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,17 @@ gpsd_options: "-s {{ gpsd_baud }} -n"
88

99
# Refclock to be used as a time source.
1010
# See: https://chrony-project.org/doc/3.4/chrony.conf.html#refclock
11-
chrony_refclock: "refclock PHC /dev/ptp0 poll 0 dpoll -5 tai" # Use NIC PHC
12-
# chrony_refclock: "refclock SHM 0 refid GPS" # Use GPS directly
11+
# See also: https://austinsnerdythings.com/2025/02/14/revisiting-microsecond-accurate-ntp-for-raspberry-pi-with-gps-pps-in-2025/
12+
chrony_refclock: |
13+
# Uncomment to use NIC's PHC as time source.
14+
# refclock PHC /dev/ptp0 poll 0 dpoll -5 tai # Use NIC's PHC
15+
16+
# Uncomment to use GPS module directly as time source.
17+
refclock SHM 0 refid NMEA precision 1e-3 poll 0 filter 3
18+
refclock PPS /dev/pps0 refid PPS lock NMEA poll 3 trust
19+
20+
# Uncomment to log timing statistics.
21+
log tracking measurements statistics
1322
1423
# Hosts allowed to query chrony for NTP time.
1524
# See: https://chrony-project.org/doc/3.4/chrony.conf.html#allow

0 commit comments

Comments
 (0)