Battery percentage is not monotonic #4017
Replies: 1 comment
-
Posted at 2022-02-07 by @gfwilliams
I guess we could do that... It would smooth things out a lot (or at least we could update it only if it changed by 5% or more?) Posted at 2022-02-07 by rigrig
That's probably better, otherwise it could get stuck on a low value after any glitch. Posted at 2022-02-07 by nicoboss @rigrig may I ask you how you got this battery info chart working on GadgetBridge ? Posted at 2022-02-07 by rigrig The chart is fixed with this GadgetBridge PR, which was merged a few days ago, so it should work in the next GB release. Posted at 2022-02-07 by HughB Well spotted. Posted at 2022-02-08 by nicoboss thank you ! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-02-05 by rigrig
The battery level is a bit jittery.
Which wouldn't be a problem, except that just below 30% GadgetBridge keeps sending "Gadget battery low!" notifications: the notification is dismissed when it jumps back to 30%, and then the next update below 30% triggers a fresh notification. (see attached graph)
I think ideally the firmware would force
E.getBattery()
to be monotonic, i.e. remember the last value, and only update to lower values while discharging, and only update to higher values while charging?Attachments:
Beta Was this translation helpful? Give feedback.
All reactions