Getting CPU temperature using Python? [closed]
How do I retrieve the temperature of my CPU using Python? (Assuming I'm on Linux) DrDee Py-cputemp seems to do the job. There is a newer "sysfs thermal zone" API (see also LWN article and Linux kernel doc ) showing temperatures under e.g. /sys/class/thermal/thermal_zone0/temp Readings are in thousandths of degrees Celcius (although in older kernels, it may have just been degrees C). If your Linux supports ACPI, reading pseudo-file /proc/acpi/thermal_zone/THM0/temperature (the path may differ, I know it's /proc/acpi/thermal_zone/THRM/temperature in some systems) should do it. But I don't think