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
    Oops, sorry...
    Fixed now, new version 1.6.2. released to the App Store.

    great, thanks :)
  • Former Member
    Former Member over 10 years ago
    Version 1.6.5. released, bug fix regarding 'last hour' and 'last day' statistics.
  • Former Member
    Former Member over 10 years ago
    Your Battery Widget is really great!

    But since I have it installed, it happens once a week that I go to bed with a full or almost full battery and my Fenix wakes me up because of an empty battery warning.

    Do you think that can come from your Battery Widget?
    I don't have many other apps and widgets and no custom watchfaces and I never had this problem before I installed the Battery Gauge.
    Not even GPS Mode can kill the battery within 4-6 hours :confused:
  • Former Member
    Former Member over 10 years ago
    Hi,

    I really don't think that the overnight battery drain can be caused by the Battery Gauge widget (or any other widget, actually). Widgets doesn't run in the background, as soon as you navigate away from the widget, it is closed and stops running.
    I have never seen any drain myself, and I am running both the relased widget and a beta on my own watch all the time.

    Do you mind removing the widget for a few days and see if the overnight drainage stops?

    And another thing, do you have bluetooth on and no phone nearby? That has been known to drain the battery fast...

    -Torstein
  • I have been using battery gauge for 15-20 days with no battery problems so far.
    Check for other problems. Like torstein said check for bluetooth trying to connect or trying to connect to ant+ device. I had a similar problem trying to connect to a hr strap i had on bathroom.
    A simple restart of phone and re - pairing with the strap fixed it.
  • Former Member
    Former Member over 10 years ago
    Version 1.7 released

    Just updated the widget :)

    - Precision on statistics calculations is improved, especially on 'last hour' drainage metric.
    - Also added a version number to the bottom of the statistics screen to make it easier to determine what version is running in case of problems.

    The widget is starting to push both performance and memory limits, so future updates will probably be small tweaks only.
    Suggestions are however still welcome!

    -Torstein
  • Actually i am testing it on epix. Its looks ok :) I will report bugs if i see any.
  • After 2.30 update of Epix is not working properly.
  • Former Member
    Former Member over 10 years ago
    Hi,

    What is not working?
    Have you tried resetting/deleting the log file?

    Anyhow, I have seen some strange things on my Fenix3 after the latest firmware upgrade as well, and I'll release a new build of the Battery widget based on SDK 1.1.2. some time early next week.

    -Torstein
  • Random wierd things happens. Cant switch to other scale than 1 week, random exits to graphs from settings, not upgrading graph etc.
    For now i uninstalled this. Will wait for new wersion :) I have only 2 widgets on watch and thats one of them :)