Widget: Battery Gauge

Former Member
Former Member
Battery Gauge

Battery Gauge Widget v2.1




Widget showing battery history for a selected period. Currently it is a bit limited, since it isn't possible to have a process running in the background storing the battery state continuosly. The way the widget currently works is that every time the widget is started, the battery charge value is read and saved. The value is compared to the previous one, and the graph is updated. Each bar in the graph represents an hour (in week view), so if the widget for instance is started at 12 o'clock and later at 4 o'clock, the values at 12 and 4 are real values. The values at 1, 2 and 3 o'clock are calculated based on the difference between 12 and 4. If one starts the widget at regular intervals, the graph should give a quite good representation of the battery state.

Widget menu (press Start/Enter button)
  • Statistics screen, showing battery drain the last hour, the last day, since a user defined time and since last log reset.
  • Switch the graph scale between 1 month, 2 weeks, 1 week, 4 days and 1 day (Log data is no longer deleted when changing scale).
  • Switch between no graph markers, high/low markers or markers for each step on the x-axis.
  • Switch between black or white background.
  • Reset the log.

Please note:
  • Since each bar represents one hour, there will be no data visible for the first hour after the widget is run the first time. If after several hours no graph is visible, try clearing the log from the widget menu.
  • It is recommended to clear the log after installing a new version.
  • If after clearing the log problems still persist, it may be necessary to manually delete the log file. Instructions in this post: Deleting log file manually


Updates:

Version 2.1 - September 18, 2016
  • Support for Vivoactive HR
  • Fixed layout issues on new Forerunner and Fenix series watches
  • Improved the ability to scroll past the widget in the widget list


Version 1.9b - November 23, 2015
  • Added experimental support for FR230, FR235 and FR630. Please regard this as beta software for the time being.

Version 1.8 - June 24, 2015
  • Updated to Connect IQ v1.1.2.
  • Added support for D2 Bravo.

Version 1.7 - May 27, 2015
  • Improved precision on statistics calculations.
  • Added version number to statistics screen.

Version 1.6.5 - May 17, 2015
  • Fixed a bug regarding 'last hour' and 'last day' statistics.

Version 1.6.2 - May 10, 2015
  • Increased size of graph marker font.

Version 1.6 - May 9, 2015
  • Thanks to Gigios (Vivoactive) andMourk.D (Fenix 3) for beta testing!
  • Added 'Statistics' screen, showing battery drain over various periods.
  • Added experimental Vivoactive support. Please regard this as beta software for the time being.
  • Added ForeAthlete 920XTJ support.
  • Renamed 'Clear Log' to 'Reset Log'
  • Bug fixes.

Version 1.2 - April 28, 2015
  • Added option to select between graph markers.
  • Added 1 month scale option.

Version 1.1 - April 17, 2015
  • Data is no longer cleared when changing scale.
  • When selecting a new scale in the menu, view is immediately returned to graph.
  • Added 2 week scale option.

Version 1.0 - April 13, 2015
  • Added possibility to change graph scale.
  • Added possibility to change background color.
  • Added marker showing highest value of graph.
  • Bug fixes.

Version 0.8 beta - April 08, 2015
  • Forerunner 920XT support - NOTE: Only tested in simulator.
  • Added possibility to delete log file via widget menu.
  • Small tweaks to graph.

Version 0.7 beta - April 07, 2015
  • Bug fixes.
  • Added version number to screen.

Version 0.6 beta - April 07, 2015
  • Initial version.
  • Former Member
    Former Member over 10 years ago
    I made quite a few changes to the app to make it possible to keep data for each scale, so it was necessary to clear the log this time. Future updates should preserve the log data.
    That being said, I'm not a 100% sure it is possible to keep data between updates from the app store due to how names are assigned to apps, but I will check this before the next update.

    -Torstein
  • Thanx again. Its more useful for some of us than you think!!!
    If you'd like some suggestions/ideas from a user, i can provide some, although im not a programmer so i dont know what is doable or not.

    1.it would be more useful if the charts had more divisions according to their duration.
    for example when i have the 1 week scale , the horizontal axis could be devided to 7 pieces , one for each day so we can see the every day progress and behaviour.

    2.As the app can handle some battery numbers and times, you can make a different info bar or sthing , displaying the speed the battery drains.
    for example: divide the battery drain with the time 1 day 14 % down , next day 19%down. or hourly drain. 3% or 5%. That would be the ultimate app for measuring and testing the different wireless options , the configurations and the bugs (if any) of the watches.
    if i have bluetouth on all night and see 1% / hour drain is ok. maybe we can see wifi auto upload how impacts the battery. or 1sec or smart recording. i think you got the point .
    feel free to use or get inspired from some of my thoughts. :D
    again thanx and wish you stay here!!!
  • Former Member
    Former Member over 10 years ago
    Thank you for your suggestions, Mourk!

    I'll take them into consideration for the next update :)

    -Torstein
  • Former Member
    Former Member over 10 years ago
    Widget updated to version 1.2.
    Added a 1 month view, and more (configurable) markers to the graph to easier see how the values change.



    The widget is compatible with old log files, but I haven't found a way to get the new version to read the old log.

    When I'm side loading during testing I can rename old log files and have the widget versions read them without problems, but when I'm upgrading via the app store, renaming the old log file to match the new widget version's name doesn't work for some reason.
  • Thanx for the update !
    i have it installed just now and using it. Nice addition the step markers.
    ill report after couple of days using it.

    ps. Nice battery you have on your watch Tor.
    1 month and still 15% ... ;)
  • Former Member
    Former Member over 10 years ago
    I'll let you in on a little secret, Mourk. The images of my watch are faked ;)
    By the way, if all goes as planned the next update will include a statistics screen inspired by your suggestions in a previous post.

    -Torstein
  • Hello, thanx for the SW! I updated, the graphs is displayed fot 1 day, 4 days, 1 week, 2 weeks (about 10 days of data I have) and when I switch to 1 month, nothing is displayed. I do not know why.
  • It's all running well for me. 1 month is displayed as it should. Dape Brno how you manage to keep ten days of data after installation of this version? Mine got cleared and started again.

    The new features is nice addition master Tor !!! Thanx.
    Im excited for the next update :p
  • Mourk.D: I did not managed it. Just download new version through Garmin Express (syncing). In the watch I had previous version, after download I have a new one. All log is OK, but after change to 1 month the display is empty, no data. In scale of 2 weeks, 1 week, 4 days and 1 day is displayed the same way as before.
  • Hmmm that's strange. As torstein said four posts above the new version cannot read the old log.
    I installed via garmin connect Mobile and logs cleared.
    I think master Tor could help us here and what goin on...