Files
ReLibreHardwareMonitor/LibreHardwareMonitor/TestScripts/basicwmi.py
T
2019-09-23 19:29:10 +02:00

18 lines
440 B
Python

################################################################
# Install:
# * python.exe -m pip install pypiwin32
# * python.exe -m pip install wmi
#
# Usage:
# * !! Make sure openhardwaremonitor is running !!
# * python basicwmi.py
################################################################
import wmi
hwmon = wmi.WMI(namespace="root\OpenHardwareMonitor")
sensors = hwmon.Sensor(SensorType="Control")
for s in sensors:
print s