timehat:software_03-2025
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
timehat:software_03-2025 [2025/03/16 01:20] – [General] millerjs | timehat:software_03-2025 [2025/03/16 01:38] (current) – [System Status Web Page] millerjs | ||
---|---|---|---|
Line 20: | Line 20: | ||
* RAM usage is minimal, any Pi can run this setup, adding more RAM will not improve performance. | * RAM usage is minimal, any Pi can run this setup, adding more RAM will not improve performance. | ||
+ | ===== System Status Web Page ===== | ||
+ | To provide users with a quick snapshot of the status of the TimeHat system, I created a simple web page that shows things like the system uptime, temperature from the CPU and RTC, chrony status, gpsd status, and current satellite map and historical satellite heat map. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | This page is updated every five minutes by the '' | ||
+ | |||
+ | |||
+ | '' | ||
+ | |||
+ | This script generates two JSON files which are placed in ''/ | ||
+ | ==== script ==== | ||
+ | |||
+ | ==== HTML ==== | ||
+ | |||
+ | ==== example JSON ==== | ||
===== Config Files ===== | ===== Config Files ===== | ||
- | === config.txt === | + | ==== config.txt |
''/ | ''/ | ||
Line 53: | Line 69: | ||
force_turbo=1 | force_turbo=1 | ||
</ | </ | ||
+ | |||
+ | ==== gpsd ==== | ||
+ | ''/ | ||
+ | |||
+ | < | ||
+ | GPSD_OPTIONS=" | ||
+ | DEVICES="/ | ||
+ | </ | ||
+ | |||
+ | ==== gpsd.service ==== | ||
+ | ''/ | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | Description=GPS (Global Positioning System) Daemon | ||
+ | Requires=gpsd.socket | ||
+ | # Needed with chrony SOCK refclock | ||
+ | After=chronyd.service | ||
+ | |||
+ | [Service] | ||
+ | Type=forking | ||
+ | EnvironmentFile=-/ | ||
+ | EnvironmentFile=-/ | ||
+ | ExecStart=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | Also=gpsd.socket | ||
+ | </ | ||
+ | |||
+ | ==== chrony.conf ==== | ||
+ | ''/ | ||
+ | |||
+ | < | ||
+ | server time-a.nist.gov | ||
+ | server time-a-wwv.nist.gov | ||
+ | server time-a-b.nist.gov | ||
+ | |||
+ | refclock SOCK / | ||
+ | |||
+ | rtcsync | ||
+ | |||
+ | logchange 0.5 | ||
+ | |||
+ | local stratum 10 | ||
+ | |||
+ | makestep 1.0 3 | ||
+ | |||
+ | logdir / | ||
+ | log statistics tracking | ||
+ | |||
+ | dumpdir / | ||
+ | driftfile / | ||
+ | |||
+ | allow | ||
+ | </ | ||
+ | |||
+ | ==== chronyd.service ==== | ||
+ | |||
+ | ''/ | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | Description=chrony, | ||
+ | Documentation=man: | ||
+ | Conflicts=openntpd.service ntp.service ntpsec.service | ||
+ | Wants=time-sync.target | ||
+ | Before=time-sync.target | ||
+ | After=network.target | ||
+ | |||
+ | [Service] | ||
+ | Type=forking | ||
+ | ExecStart=/ | ||
+ | |||
+ | [Install] | ||
+ | Alias=chronyd.service | ||
+ | WantedBy=multi-user.target | ||
+ | </ | ||
+ |
timehat/software_03-2025.1742088041.txt.gz · Last modified: by millerjs