Sennevds / system_sensors

Logging of system sensor specific for the RPI and sending them to a MQTT broker
MIT License
362 stars 112 forks source link

Could not establish CPU temperature reading: 'coretemp' - Intel NUC #118

Closed Andoramb closed 2 years ago

Andoramb commented 2 years ago

Sorry to create another one, but I've already got the solution for this :)

With the latest update, using psutil.sensors_temperatures() function on a NUC, does not return cpu_thermal or coretemp.

However, it does return soc_thermal. Adding this to the code will make it compatible with more systems :)

>>> import psutil
>>> psutil.sensors_temperatures()
{'soc_thermal': [shwtemp(label='', current=58.0, high=118.0, critical=118.0)]}