journals things
Find a file
2024-07-15 12:52:13 +02:00
systemd add 2024-07-15 12:51:45 +02:00
.gitignore initial commit 2024-07-15 11:58:55 +02:00
main.c mistake 2024-07-15 12:27:14 +02:00
Makefile initial commit 2024-07-15 11:58:55 +02:00
README.md this 2024-07-15 12:52:13 +02:00

a lightweight script that logs the most important stuff about the raspberry pi

most important stuff what

  • cpu temperature
  • ambient temperature from a 1wire sensor

warning

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

make or gcc main.c -o measurer
Should throw no warnings
./measurer <output>
You can schedule this with systemd

why

like heavy ahh like databases grafana etc go away you're a performance monitor why'd you reduce performance