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.
  • Currently I can only see a wrong (not precise) value of the battery % value in the Main Graph view.
    In the 'clock' page the battery level is 63% but in the widget there is the value 64% (probably it's a round problem).
    In the stat page I have currently only the statistic of the last hour (0.7%).
    How I can add a new marker?
    In the stat page the background color is white, is it correct? Probably does not reflect the background selected in the settings, but it's not a bug for me.
    The overlaps of the 'elements' seems ok at the moment :)
  • Former Member
    Former Member over 10 years ago
    Battery level differences of +/- 1% are most likely rounding errors. The Fenix is rounding up, so I have adjusted the main graph value to match that. But seems like the Vivoactive is rounding down...

    To add a new marker press the right 'Start' button when in the statistics screen.

    Stats background is white, yes. The black/white setting is only for the main screen. On the Fenix menus are white, so I think white looks best. Do you think a black background is better on the Vivoactive?
  • About the Battery Level % in the main view it is not clear because the value shown is 64% but in the graph the value is 63%
    I prefer the black background in the main view but I like also the white in the statistics page :). For me it is not necessary to change the color.

    I'm not able to set the new marker by pressing the Start button when I'm in the statistics page because the VivoActive switch to the page of the application to start an activity!
    I don't know if this is a limit of the ConnectIQ on the VA for the widget, but currently I'm not able to use this button in your stat page.

    PS: now also in the main page the batter show the value 63% :)
  • Former Member
    Former Member over 10 years ago
    I'll change the button to set the new marker on the VA to the menu button, do you think that will work OK?
  • Yes, I think that the menu button is better (only because the other button does not works :))
  • Former Member
    Former Member over 10 years ago
    Coming in next update

    Here is a picture of the statistics screen coming in the next update, just to show you what I have talked about in the last few posts:



    I have also added support for the Vivoactive and Epix devices.

    -Torstein

  • Please make it work with ForeAthlete 920XTJ because i using 920xt taiwan and not be able to use it. Thanks
  • The new beta seem works fine. Now I'm able to reset the marker and see the variation in the statistics page.
    Only one question, the field Reset is always N/A, this probably because trace the battery from the last 'reboot' of the VA?
    I don't see any problem, for now, in the overlaps :)
  • Former Member
    Former Member over 10 years ago
    The 'Reset' field is for when the log was last manually cleared. There is a menu choice, 'Clear Log', for that.
  • Former Member
    Former Member over 10 years ago
    Please make it work with ForeAthlete 920XTJ because i using 920xt taiwan and not be able to use it. Thanks

    ForeAthlete 920XTJ will be supported in the next update, probably in a few days :)