measurer/README.md

18 lines
737 B
Markdown
Raw Normal View History

2024-07-15 11:58:55 +02:00
a lightweight script that logs the most important stuff about the raspberry pi
# most important stuff what
- cpu temperature
2024-07-15 12:14:00 +02:00
- ambient temperature from a 1wire sensor
2024-07-15 11:58:55 +02:00
# 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`
2024-07-15 12:03:20 +02:00
# compilation and usage
2024-07-15 11:58:55 +02:00
`make` or `gcc main.c -o measurer` \
2024-07-15 12:03:20 +02:00
Should throw no warnings \
2024-07-15 12:51:45 +02:00
`./measurer <output>` \
2024-07-15 12:52:34 +02:00
You can schedule this with [systemd](/Minecon724/measurer/src/branch/master/systemd)
2024-07-15 11:58:55 +02:00
# why
like heavy ahh like databases grafana etc go away you're a performance monitor why'd you reduce performance