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 though they were the same size, but I see now it seems like the font is one size smaller than the one used in the built in widgets. I will fix that in the next update. Thanks for the info!
  • Just had a reset of data. All of a sudden , no activity no change of settings.
    story: I charged the watch to 100% at noon for 2.5hours at home. i checked the app it was at 100% too. unpluged and went at the office , checked after 1-2 hours was at 97% (i remember that couse i thought 3% drain was fast!!! and said let me check later to see whats goin on.)
    after 1 hour at the office checked again , now im at 96% and the data is lost. i use 1 day graph. i checked all the graphs no data. now its recording (half an hour of data)
    for more info --- i have black background and hi and low graph values. ---hmm ill report back.
  • TORSTEINVH: thank you a lot for the explanation, now I understand. Really a good job! Thank you, perfect app!!!!
  • Hello. I'm waiting my first Garmin device (vivoactive).
    In the description of the widget there isn't any reference to the VivoActive!
    Is it incompatible?
    Do you think to release a new version with the compatibility with the vivoactive?

    Thanks.
  • Former Member
    Former Member over 10 years ago
    Gigios,

    Currently the widget only supports the Fenix3 and the FR920XT.
    I don't have a Vivoactive myself, so testing on a real device will be difficult, and I'm a bit hesitant to relase a Vivoactive version only based on simulator testing.
    But in the future I would like to support both the Vivoactive and the Epix.

    If you are willing to do some testing, I can build a special version for you when you get your device. Just send me a message :)
  • But in the future I would like to support both the Vivoactive and the Epix.

    If you are willing to do some testing, I can build a special version for you when you get your device. Just send me a message :)


    Ok, probably I will receive the VivoActive tomorrow and probably I will spend the first week with the standard apps and settings :)
    After this week I'm available as Beta Tester :)

    Thanks.
  • Former Member
    Former Member over 10 years ago
    Vivoactive and Epix (and 920XT) beta testers wanted

    I have started work on Vivoactive and Epix compatibility, if anyone wants to beta test, just send me a PM :)
    (I only have a Fenix 3 myself, so this applies to anyone with a 920XT who wants to test as well)
  • I have started work on Vivoactive and Epix compatibility, if anyone wants to beta test, just send me a PM :)
    (I only have a Fenix 3 myself, so this applies to anyone with a 920XT who wants to test as well)


    I'm available!
  • VivoActive Beta

    After one night, and the first half morning, the widget seems working well.
    I'm able to see the battery graph and change some settings without problems.
    I have only a question regarded the 'settings'.
    Each time I go in one setting voice, for example 'Graph values', the sub menu start always from the first item in the list instead to the selected value.
    Is is a problem related the widget, that are not able to set the 'selected' item in the list, or is it a 'visualization' bug?

    For the rest seems ok!
    Have you some particular test to do to check the correct functionality?
  • Former Member
    Former Member over 10 years ago
    Sub menus not starting on the selected value is a ConnectIQ limitation. Hopefully that is something that will be addressed in a future ConnectIQ update.

    As for things to test, just keep an eye on the 'Stats' screen to see if the values seem right, and just check for general stability.

    I'm also interested in how the widget looks on the screen, if anything overlaps or should be moved around and stuff like that. The simulator doesn't always look like the real hardware...