18 lines
442 B
Python
18 lines
442 B
Python
################################################################
|
|
# Install:
|
|
# * python.exe -m pip install pypiwin32
|
|
# * python.exe -m pip install wmi
|
|
#
|
|
# Usage:
|
|
# * !! Make sure librehardwaremonitor is running !!
|
|
# * python basicwmi.py
|
|
################################################################
|
|
|
|
import wmi
|
|
|
|
hwmon = wmi.WMI(namespace="root\LibreHardwareMonitor")
|
|
sensors = hwmon.Sensor(SensorType="Control")
|
|
|
|
for s in sensors:
|
|
print s
|