I would like to log the battery signals of my laptop such as voltage, current, and temperature. I mean I want to create a GUI (using Python) to monitor these signals and log them.
I'm wondering if it is any solution to access this signals?
I would like to log the battery signals of my laptop such as voltage, current, and temperature. I mean I want to create a GUI (using Python) to monitor these signals and log them.
I'm wondering if it is any solution to access this signals?
Use psutil:
import psutil
psutil.sensors_battery()
# Output: sbattery(percent=100, secsleft=<BatteryTime.POWER_TIME_UNLIMITED: -2>, power_plugged=True)