gillstrom / battery-level

Get current battery level

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add charging indication

EladBezalel opened this issue · comments

This could be awesome feature :)

In windows:
WMIC Path Win32_Battery Get BatteryStatus
returns 1 if discharging and 2 if charging

https://github.com/gillstrom/is-charging might be what you're looking for right?

Sorry for letting you wait.

Don't you think it should be provided in battery-level as well?
When i ask for the battery level i would probably want to know if it's charging or not

Maybe in the CLI, but probably not using the API.