Battery Lifetime Prediction Widget
· v3.3.5
About
This widget calculates a battery lifetime prediction for different types of usage.
The lifetime-calculation is based on the following "100% charged" values:
- GPS & GLONASS: 15h
- GPS: 20h
- Activity Tracking: 28d
- Clockusage only: 90d
Will update this values based on my experiences with my own FR920xt and your feedback.
Please note that this is a rough estimation. The battery lifetime depends on a lot of
influencing factors like number of cycles, operating time or outside temperature.
Versions & Corrections:
v 1.4: changed calculation basis for battery lifetime (more defensive)
v 1.6: "division by zero"-problem at battery level 0% solved
v 1.7: fixed problems with "on update"
v 1.9: Battery percentage with 1 decimal place
v 2.2: No refresh within the app for no battery consumption after startup
v 2.3: Widget-Version
v 2.6: more defensive lifetime calculation. More efficient coding for less CPU-usage at onUpdate
v 2.7: changed calculation GPS&GLO 15h, Act-Tracking 28days
v 2.9: corrected demo coding entries
v 3.0: changed in code documentation
v 3.2: improved algorithm (less CPU usage)
v 3.28: corrected calculation problem at 0.0% capacity
v 3.31: changed accu capacity calculation - displays now the percentage of rest-lifetime instead of percentage based on battery-voltage
v 3.32: support for epix
v 3.34: changes for SDK compatibility
v 3.3.5 changed for SDK compatibility