giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.11k stars 1.37k forks source link

[Linux] Add support for sensors of voltage, current and power #2314

Open mako2580 opened 9 months ago

mako2580 commented 9 months ago

Summary

Description

psutil currently supports only battery, fan and temperature sensors, but it lacks support of sensors of voltage, current and power, which can be seen in lm-sensors. I am talking about all files in /sys/class/hwmon/hwmon*/power*_*, /sys/class/hwmon/hwmon*/in*_* and /sys/class/hwmon/hwmon*/curr*_*.

Thank you in advance