by Ricardo “Rudxain” Fernández Serrata
Version 4 (September 26, 2023)
Download (81 downloads)
Shows time until 0% or 100%. More accurate and efficient than Android's built-in estimator, because it only checks the latest sample.
If you start the flow just before the level is about to change, the 1st estimation will be wrong. But all estimations after it will be accurate based on the most recent sample.
The following is an "unsafe" optimization that assumes `abs(b1 - b0) = 1` always (usually, this is a correct assumption): Replace `D[1] / abs(b1 - b0)` by `D[1]`
Do it only if you are completely sure that your system makes "Battery Level Block" return an integer (most systems do this), AND your battery is healthy enough that always discharges/charges by 1% (Never "jumps" multiple levels. Only 1 at a time)
"Why is b0 the entire range?"
Please read this: groups.google.com/g/automate-user/c/yoVs-ZLVMLo
Rudxain profile: llamalab.com/automate/community/flows/42921
LICENSE: https://unlicense.org
5 stars | 0 | |
4 stars | 1 | |
3 stars | 0 | |
2 stars | 0 | |
1 star | 0 | |
Reports | 0 |
Rate and review within the app in the Community section.