Closed falkben closed 2 years ago
Seems to me the following should be sufficient for a system script. The reason being is that this script, presumably, would be called in a cron job for logging, and not for the continuous monitor at the console. For continuous monitoring, a second script could be used as you suggested. In either case, I appreciate the work that has been done thus far. Very cool. I use the below (in conjunction with a Python script) to log temperature every hour in a NAS server cluster to tune the NAS temperatures to avoid drive burnout.
echo "$(( $(cat /sys/class/thermal/thermal_zone0/temp) / 1000 ))°C"
The current temperature is evaluated at install time and inserted into the tempmon script instead of the command to get the current temperature, here: https://github.com/meuter/argon-one-case-ubuntu-20.04/blob/master/argon1.sh#L595
For instance, my script, as installed, looks like:
instead of what it should be which is