Open vielmetti opened 4 years ago
on the 20.04 machine, cat /sys/class/hwmon/hwmon0/device/temp
even easier, /sys/class/thermal/thermal_zone0/temp works on the Pi 4 and the Pi 3 both.
surprisingly, sensors
doesn't find the right value on the Pi 4 / Ubuntu 20.
also noted at https://github.com/lm-sensors/lm-sensors/issues/30 "nothing to do here, closing"
grab hdd/ssd temps, per this: https://wiki.archlinux.org/index.php/Hddtemp
Mac OS X
sudo powermetrics --samplers smc -i1 -n1 | grep "CPU die" | sed -E 's/^.*: (.*) C/\1/'
Better for Mac OS X
/usr/local/bin/osx-cpu-temp -C | sed -E 's/°C//'
with brew install osx-cpu-temp
from the weather utility
/usr/local/bin/weather --json -l 48104 -u si| jq .currently.temperature
temp.attic.qwiic.ambient : 33.62
temp.attic.e-jet.cpu : 48.500
temp.attic.pinnatus.cpu : 62.322
temp.attic.ubuntu.cpu : 53.154
temp.mobile.airy.cpu : 49.2
temp.dfw2.qualcomm-01.cpu : 31.700
temp.dfw2.qualcomm-01.ssd : 25
temp.karb.nws.ambient : 29.49
See
https://www.cyberciti.biz/faq/how-to-check-cpu-temperature-on-ubuntu-linux/
for a plethora of sensors that could be monitored; pick several of them for each machine, and send details in some digested, consolidated format.
e.g.
temp.machine.rubus.cpu temp.machine.e-jet.hdd