User Tools

Site Tools


timehat:software_03-2025


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
timehat:software_03-2025 [2025/03/16 01:23] – [Config Files] millerjstimehat: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. 
 +
 +{{ :timehat:timehatstatusdash.png?800 |}}
 +
 +This page is updated every five minutes by the ''TimeHatInfoGetter.py'' script, which runs as a cron job by the root user:
 +
 +
 +''*/5 * * * * /root/TimeHatInfoGetter.py >/dev/null 2>&1''
 +
 +This script generates two JSON files which are placed in ''/var/www/html/'' - ''timehatstats.json'' and ''satplot.json''. The first is where the general system information is stored, and the second is where the heatmap log is stored. Check out the examples below. The main configurable parameter of the info getter python script is whether or not to obfuscate the location. Some users may choose to expose this on the public web, but not want to share their precise location. The obfuscation routine simply truncates the latitude and longitude to two decimal places. E.g. - 44.1234567 gets trimmed to 44.12. 
 +==== script ====
 +
 +==== HTML ====
 +
 +==== example JSON ====
 ===== Config Files ===== ===== Config Files =====
  
-=== config.txt ===+==== config.txt ====
 ''/boot/firmware/config.txt'' ''/boot/firmware/config.txt''
  
Line 54: Line 70:
 </file> </file>
  
-=== gpsd ===+==== gpsd ====
 ''/etc/default/gpsd'' ''/etc/default/gpsd''
  
Line 62: Line 78:
 </code> </code>
  
-=== gpsd.service ===+==== gpsd.service ====
 ''/etc/systemd/system/gpsd.service'' ''/etc/systemd/system/gpsd.service''
  
Line 83: Line 99:
 </code> </code>
  
-=== chrony.conf ===+==== chrony.conf ====
  ''/etc/chrony.conf''  ''/etc/chrony.conf''
  
Line 110: Line 126:
 </code> </code>
  
-=== chronyd.service ===+==== chronyd.service ====
  
 ''/etc/systemd/system/chronyd.service'' ''/etc/systemd/system/chronyd.service''
timehat/software_03-2025.1742088195.txt.gz · Last modified: by millerjs

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki