Linux get time to full battery with Python

Hello everyone,

I’m working on a python3 lightweight script called i3battery with the purpose of alert user when: battery discharging, battery charging, adapter plug in and out.

The next issue I want to solve is to get the time to full when the adapter of the battery is plugged in -> issue3

I want to calculate this time via python3 with simple calculation, build-in library or even external.

Someone have ideas to do this?

Thanks in advance


1 Like