andyvorld / LGSTrayBattery

A tray app used to track battery levels of wireless Logitech mouse.
GNU General Public License v3.0
391 stars 33 forks source link

[Feature] Show estimated remaining battery time #77

Open kron0800 opened 11 months ago

kron0800 commented 11 months ago

Hi @andyvorld

Let me just say that this app is so useful. I've written a small python script to send notifications to my phone when baterry is low and when baterry is full to avoid overcharging.

But yet, i believe it would be awesome if we could also get from the api, the estimated remaining battery time which is shown when you hover your mouse over the battery icon in GHUB.

Thanks you in advance chad

andyvorld commented 11 months ago

Are you using the G Hub based device manager (In v2, I forgot to port the functionality to v3. Should be in before release) or the native version?

As the G Hub based device manager has a battery mileage field, which should give the estimate life left of the battery in hours.

I won't be able to implement this functionality in the native manager as G Hub seems to have an external source of power consumption that is calculated from the polling rate + RGB + system base power, which comes from Logitech themselves and is not actually reported by the device.