1

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?

Joondeka
  • 11
  • 1

1 Answers1

0

Use psutil:

import psutil
psutil.sensors_battery()
# Output: sbattery(percent=100, secsleft=<BatteryTime.POWER_TIME_UNLIMITED: -2>, power_plugged=True)
Pep_8_Guardiola
  • 5,002
  • 1
  • 24
  • 35