From 2754722ae30cce9ffc1fa68f4e59b1a880222b06 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Sat, 14 Jun 2025 08:10:23 -0600 Subject: [PATCH] 1.2-dev --- Garfana-Visualization.json | 36 ++++++++++++++-------------- info-level-conf/chrony.conf | 6 ----- info-level-conf/root-crontab | 3 ++- running-warn-level-conf/chrony.conf | 6 ----- running-warn-level-conf/root-crontab | 3 ++- warn-level-conf/chrony.conf | 6 ----- warn-level-conf/root-crontab | 3 ++- 7 files changed, 24 insertions(+), 39 deletions(-) diff --git a/Garfana-Visualization.json b/Garfana-Visualization.json index 6a9f670..95c71c1 100644 --- a/Garfana-Visualization.json +++ b/Garfana-Visualization.json @@ -23,8 +23,8 @@ "panels": [ { "datasource": { - "type": "influxdb", - "uid": "cenh879ru0gzkc" + "type": "datasource", + "uid": "grafana" }, "description": "Long term average of time offset", "fieldConfig": { @@ -103,7 +103,7 @@ "sort": "none" } }, - "pluginVersion": "12.0.1", + "pluginVersion": "12.0.1+security-01", "targets": [ { "datasource": { @@ -152,14 +152,14 @@ }, { "datasource": { - "type": "influxdb", - "uid": "cenh879ru0gzkc" + "type": "datasource", + "uid": "grafana" }, - "description": "Average chrony time offset over last minute in seconds", + "description": "Average chrony time offset over last minute in nonoseconds", "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic-by-name" + "mode": "palette-classic" }, "custom": { "axisBorderShow": false, @@ -194,7 +194,7 @@ "mode": "off" } }, - "displayName": "Offset (S)", + "displayName": "Offset (ns)", "mappings": [], "thresholds": { "mode": "absolute", @@ -208,7 +208,7 @@ } ] }, - "unit": "s" + "unit": "ns" }, "overrides": [] }, @@ -232,7 +232,7 @@ "sort": "none" } }, - "pluginVersion": "12.0.1", + "pluginVersion": "12.0.1+security-01", "targets": [ { "groupBy": [ @@ -271,13 +271,13 @@ "tags": [] } ], - "title": "Last Time Offset (Seconds)", + "title": "Last Time Offset (Nanoseconds)", "type": "timeseries" }, { "datasource": { - "type": "influxdb", - "uid": "cenh879ru0gzkc" + "type": "datasource", + "uid": "grafana" }, "description": "Chrony frequency offset over last minute in PPM", "fieldConfig": { @@ -356,7 +356,7 @@ "sort": "none" } }, - "pluginVersion": "12.0.1", + "pluginVersion": "12.0.1+security-01", "targets": [ { "groupBy": [ @@ -400,8 +400,8 @@ }, { "datasource": { - "type": "influxdb", - "uid": "cenh879ru0gzkc" + "type": "datasource", + "uid": "grafana" }, "description": "Average chrony skew over past minute", "fieldConfig": { @@ -480,7 +480,7 @@ "sort": "none" } }, - "pluginVersion": "12.0.1", + "pluginVersion": "12.0.1+security-01", "targets": [ { "groupBy": [ @@ -538,5 +538,5 @@ "timezone": "browser", "title": "Chrony", "uid": "69a006d6-ccaa-4e9e-a8ec-6dba0b30fa1e", - "version": 21 + "version": 8 } \ No newline at end of file diff --git a/info-level-conf/chrony.conf b/info-level-conf/chrony.conf index 63eb7f2..5f94109 100644 --- a/info-level-conf/chrony.conf +++ b/info-level-conf/chrony.conf @@ -15,12 +15,6 @@ refclock SHM 0 refid NMEA offset 0.000 precision 1e-6 poll 0 filter 3 # 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 - -# Update RTC from system clock periodically -makestep 0.1 3 - # allow local connections to ntp allow 10.0.0.0/24 diff --git a/info-level-conf/root-crontab b/info-level-conf/root-crontab index 721d15e..434dc3a 100644 --- a/info-level-conf/root-crontab +++ b/info-level-conf/root-crontab @@ -1,3 +1,4 @@ # m h dom mon dow command # set hardware I2C RTC hourly -0 * * * * bash -c "/usr/sbin/hwclock -w 2>> /var/log/root-crontab.log" +0 * * * * /bin/bash -c "/usr/sbin/hwclock -w 2>> /var/log/root-crontab.log" +@reboot /usr/share/customscripts/ifnet "/usr/share/customscripts/webhook bootup" 2>> /var/log/root-crontab.log diff --git a/running-warn-level-conf/chrony.conf b/running-warn-level-conf/chrony.conf index 63eb7f2..5f94109 100644 --- a/running-warn-level-conf/chrony.conf +++ b/running-warn-level-conf/chrony.conf @@ -15,12 +15,6 @@ refclock SHM 0 refid NMEA offset 0.000 precision 1e-6 poll 0 filter 3 # 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 - -# Update RTC from system clock periodically -makestep 0.1 3 - # allow local connections to ntp allow 10.0.0.0/24 diff --git a/running-warn-level-conf/root-crontab b/running-warn-level-conf/root-crontab index 721d15e..434dc3a 100644 --- a/running-warn-level-conf/root-crontab +++ b/running-warn-level-conf/root-crontab @@ -1,3 +1,4 @@ # m h dom mon dow command # set hardware I2C RTC hourly -0 * * * * bash -c "/usr/sbin/hwclock -w 2>> /var/log/root-crontab.log" +0 * * * * /bin/bash -c "/usr/sbin/hwclock -w 2>> /var/log/root-crontab.log" +@reboot /usr/share/customscripts/ifnet "/usr/share/customscripts/webhook bootup" 2>> /var/log/root-crontab.log diff --git a/warn-level-conf/chrony.conf b/warn-level-conf/chrony.conf index 63eb7f2..5f94109 100644 --- a/warn-level-conf/chrony.conf +++ b/warn-level-conf/chrony.conf @@ -15,12 +15,6 @@ refclock SHM 0 refid NMEA offset 0.000 precision 1e-6 poll 0 filter 3 # 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 - -# Update RTC from system clock periodically -makestep 0.1 3 - # allow local connections to ntp allow 10.0.0.0/24 diff --git a/warn-level-conf/root-crontab b/warn-level-conf/root-crontab index 721d15e..434dc3a 100644 --- a/warn-level-conf/root-crontab +++ b/warn-level-conf/root-crontab @@ -1,3 +1,4 @@ # m h dom mon dow command # set hardware I2C RTC hourly -0 * * * * bash -c "/usr/sbin/hwclock -w 2>> /var/log/root-crontab.log" +0 * * * * /bin/bash -c "/usr/sbin/hwclock -w 2>> /var/log/root-crontab.log" +@reboot /usr/share/customscripts/ifnet "/usr/share/customscripts/webhook bootup" 2>> /var/log/root-crontab.log