Flow(s) for monitoring battery consumption?

Post your questions and help other users.

Moderator: Martin

Post Reply
Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Flow(s) for monitoring battery consumption?

Post by Wibbly » 28 Jan 2019 17:58

I'm looking for flows that can maintain variables that can be used, say, in a widget to show battery consumption since the battery was last on charge

E.g.

% lost with screen on
% lost with screen off

% lost/hr with screen on
% lost/hr with screen off
% lost/hr total

% time in deep sleep whilst the screen was off

Screen on time (hrs/mins)
Screen off time (hrs/mins)

Anyone already done something like this so I don't have to think about re-inventing the wheel?

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Flow(s) for monitoring battery consumption?

Post by Desmanto » 28 Jan 2019 18:05

It seems someone ever built it, but can't find the link now. I only remember ever posted my concept here : viewtopic.php?f=6&t=7618
I build the flow for a while, tested it and get various error. Then I digress. Currently not looking at it, since I have another flows to finished first. But I planned to come back and finish it.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

skiptannen
Posts: 82
Joined: 13 Jan 2014 21:39

Re: Flow(s) for monitoring battery consumption?

Post by skiptannen » 28 Jan 2019 19:03

A number of years ago the user kintrupf wrote an awesome group of flows that provides a good amount of battery information. You can probably use it as a starting point and add the other data you're looking to track. I've been relying on those flows for years and they still work perfectly:

http://automagic4android.com/forum/view ... stat#p8608

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Flow(s) for monitoring battery consumption?

Post by Wibbly » 29 Jan 2019 16:17

Thanks!

Post Reply