vielmetti / remote-sensing

A remote sensing stack
MIT License
0 stars 0 forks source link

Incorporate multiple temperature sensors #3

Open vielmetti opened 4 years ago

vielmetti commented 4 years ago

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

vielmetti commented 4 years ago

on the 20.04 machine, cat /sys/class/hwmon/hwmon0/device/temp

vielmetti commented 4 years ago

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.

vielmetti commented 4 years ago

noted at https://github.com/lm-sensors/lm-sensors/issues/202

vielmetti commented 4 years ago

also noted at https://github.com/lm-sensors/lm-sensors/issues/30 "nothing to do here, closing"

vielmetti commented 4 years ago

grab hdd/ssd temps, per this: https://wiki.archlinux.org/index.php/Hddtemp

vielmetti commented 4 years ago

Mac OS X

sudo powermetrics --samplers smc -i1 -n1 | grep "CPU die" | sed -E 's/^.*: (.*) C/\1/'
vielmetti commented 4 years ago

Better for Mac OS X

/usr/local/bin/osx-cpu-temp -C | sed -E 's/°C//'

with brew install osx-cpu-temp

vielmetti commented 4 years ago

from the weather utility

/usr/local/bin/weather --json -l 48104 -u si| jq .currently.temperature
vielmetti commented 4 years ago
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