distatus / battery

cross-platform, normalized battery information library
MIT License
249 stars 36 forks source link

Aggregate batteries stats #14

Open travelerspb opened 4 years ago

travelerspb commented 4 years ago

Issue #4

Add a Summarize() (*Battery, error) func to aggregate data from multiple batteries.

@KenjiTakahashi not sure tho about some metrics, like State. I followed the simplest logic - higher (and more important) status overrides others, i.e. if a few batteries are full and one is discharging, status will be Discharging