measurer/README.md
2025-10-06 11:49:11 +00:00

561 B

A lightweight program that journals data about the environment of a raspberry pi

Current scope

  • cpu temperature
  • ambient temperature from a 1wire sensor

CPU temperature is read from /sys/class/thermal/thermal_zone0/temp but that should work on every Linux computer
Ambient temperature is read from /sys/bus/w1/devices so you must have 1wire enabled, if you don't have that set SENSOR to 0

Compilation and usage

  1.  gcc main.c -o measurer
    
  2.  ./measurer <output>
    
  3. Optional: schedule with systemd