flutterfungus wooo

This commit is contained in:
2025-06-03 03:29:35 -06:00
commit de38762552
35 changed files with 1398 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
SUBSYSTEM=="pps[0-9]*", GROUP="dialout", MODE="0660"
SUBSYSTEM=="tty[0-9]*", GROUP="dialout", MODE="0660"
SUBSYSTEM=="tty[A-Z]*[0-9]*", GROUP="dialout", MODE="0660"
+31
View File
@@ -0,0 +1,31 @@
# SHM refclock is shared memory driver, it is populated by GPSd and read by chrony
# it is SHM 0
# refid is what we want to call this source = NMEA
# offset = 0.000 means we do not yet know the delay
# precision is how precise this is. not 1e-3 = 1 millisecond, so not very precision
# poll 0 means poll every 2^0 seconds = 1 second poll interval
# filter 3 means take the average/median (forget which) of the 3 most recent readings. NMEA can be jumpy so we're averaging here
refclock SHM 0 refid NMEA offset 0.000 precision 1e-3 poll 0 filter 3
# PPS refclock is PPS specific, with /dev/pps0 being the source
# refid PPS means call it the PPS source
# lock NMEA means this PPS source will also lock to the NMEA source for time of day info
# offset = 0.0 means no offset... this should probably always remain 0
# poll 3 = poll every 2^3=8 seconds. polling more frequently isn't necessarily better
# trust means we trust this time. the NMEA will be kicked out as false ticker eventually, so we need to trust the combo
refclock PPS /dev/pps0 refid PPS lock NMEA offset 0.0 poll 3 trust
# also enable logging by uncommenting the logging line
log tracking measurements statistics
# allow local connections to ntp
allow 10.0.0.0/24
# manual
manual
# tell clients im the big dog
local stratum 1
# Good Time Servers
pool time.cloudflare.com iburst
+14
View File
@@ -0,0 +1,14 @@
# USB might be /dev/ttyACM0
# serial might be /dev/ttyS0
# pps might be /dev/pps0
DEVICES="/dev/ttyS0 /dev/pps0"
# -n means start without a client connection (i.e. at boot)
# -s 115200 is to set baud to 115200
GPSD_OPTIONS="-n -s 115200"
# also start in general
START_DAEMON="true"
# Automatically hot add/remove USB GPS devices via gpsdctl
USBAUTO="true"
+26
View File
@@ -0,0 +1,26 @@
instance_name = "Precision Timekeeping"
[server]
# Protocol (http, https, h2, socket)
protocol = http
# The http port to use
http_port = 3000
[log]
# Either "debug", "info", "warn", "error", "critical", default is "info"
level = debug
# Either "console", "file", "syslog". Default is console and file
# Use space to separate multiple modes, e.g. "console file"
mode = console file
[log.file]
# log line format, valid options are text, console and json
format = text
# This enables automated log rotate(switch of following options), default is true
log_rotate = true
# Max line number of single file, default is 1000000
max_lines = 1000000
+21
View File
@@ -0,0 +1,21 @@
# report usage statistics to influxdb company
reporting-enabled = false
[meta]
# Where the metadata/raft database is stored
dir = "/var/lib/influxdb/meta"
[data]
# The directory where the TSM storage engine stores TSM files.
dir = "/var/lib/influxdb/data"
# The directory where the TSM storage engine stores WAL files.
wal-dir = "/var/lib/influxdb/wal"
# Trace logging provides more verbose output around the tsm engine. Turning
# this on can provide more useful output for debugging tsm engine issues.
trace-logging-enabled = false
[logging]
format = "auto"
level = "debug"
+22
View File
@@ -0,0 +1,22 @@
[global_tags]
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 10000
metric_buffer_limit = 1000000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = "0s"
logfile = "/var/log/telegraf/telegraf.log"
debug = true
[[inputs.chrony]]
metrics = ["tracking"]
timeout = "5s"
[[outputs.influxdb]]
urls = ["http://127.0.0.1:8086"]
database = "Chrony_Stats"
timeout = "5s"
# skip_database_creation = true