Open Zero3K opened 2 years ago
Are you working on it?
I'm not working on it. The battery charge rate can vary and there's no public API that returns the remaining charge time that I'm aware of. I'm sure it can be inferred based on the trailing charge rate.
https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-battery
Its TimeToFullCharge.
Does that help any?
Hmm?
Any news?
I have no plans of working on it. It's a good idea though. If there was a C API I'd probably do it.
https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-battery
Its TimeToFullCharge.
You can use PowerShell or any other scripting tools that can get info from WMI. https://powershell.one/wmi/root/cimv2/win32_battery
It would be nice if it showed the estimated time left to charge next to the message it prints when the laptop is charging its battery.