journals things
| systemd | ||
| .gitignore | ||
| main.c | ||
| Makefile | ||
| README.md | ||
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
-
gcc main.c -o measurer -
./measurer <output> - Optional: schedule with systemd