This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GCOverrides

While it is rather complicate to make Garmin responding to bug reports or to feature requests regarding Garmin Connect Web, it is often possible to make the changes ourselves, locally. A feature of the Chrome browser, called Local Overrides, allows it - you can customize not only the look of the pages, but in some cases, and to certain extent, even the functionality.

When reading the forums, I saw many requests, where the overrides could be used, and decided to test whether it could be done. After some testing I decided to share the results with the community. 

The installation of the overlays is easy - it is sufficient to download the file archive, unzip it into a folder, and then assigning and enablig it in Chrome DevTools. Detailed description of the functionality, and step-by-step installation instructions are available on GitHub. The only inconvenience is, that to keep the GCOverrides active, the DevTools pane or a window need to stay opened. The best way of doing so, is detaching them from the current page as a separate window, and minimizing them.

Recently, the Local Overrides work also on the latest Microsoft Chromium Edge.

The installation process is explained in details in the README file

Current Features (GCO v1.20)

  • Weight - 6 Months Report - brings back the 6 Months report plotting all weight data within the 6 motnhs period (not only monthly averages like the 12 Months report does) Note: as of 2020/04/03 I noticed a new look of the Weight page in GC, and this feature of GCO does not work with it. However, since it still seems to be just an intermediate version, suffering some problems, I'll wait till Garmin fixes the bugs, before trying to add the 6 months report again.
  • Activity Overlays bugfix - adds missing overlays and their labels on zoomed graphs on the Activity pages
  • Floors per Min bugfix - fix of the incorrect pace on the native GC Floors Climbing Activity page 
  • Configurable Sleep Goal - see the chapter Setings in README.md for instructions
  • Conversion of Calories to kilojoules on the Calories In/Out page and on the Dashboard; needs to be enabled in the GCO Settings
  • Adjustable Y-axis on Graphs - turns the majority of graphs to have adjustable Y-Axis (with the help of selecting a rectangle of the current graph). Please note, that due to the compression of JavaScript files and the use of numeric chunks in GC, this feature may require frequent updates, and/or may not work for everyone. Searching for a more stable hack.
  • Panning of Graphs - the user can press the Shift key and drag the mouse in order to pan a zoomed graph (same limitations as at the previous feature)
  • Exportable Graphs - additional Export menu at zoomed graphs allowing the export of graphs as images or PDF
  • Enhanced Graph Tooltips - Distance added to all time-based activity graph tootips; improved formatting of tooltips on zoomed versions
  • Hiding Golf - optional hiding of Golf from the Side Menu and from the Gear Menu;
  • Hiding Model-Based Badges - badges designed only for exclusive watches may be hidden from the list of available badges 
  • Enabling manual date input in Reports - in the native version, on the Progress Summary page of Reports, the date can only be picked from the Calendar. Now you can enter it manually.
  • Diving Distance - information about the aerial distance between the entry and the exit locations of a dive
  • Step Counts for Activities - on the pages of activities of the type Run and Walk, the count of steps done during the activity is displayed
  • ... more to come

For details, please have a look at the CHANGELOG

(I'll be updating the list of features above, when new ones will be added)

  • There's no dot in front of the 77.9aeba8c0.chunk.js file. There is a dot in front of the gauth-wdjet.js file.

    Also, there are lots of errors in the overrides panel. This is a sample but the list is much longer. 

  • Let's take it to the private messages again, not to fill the thread with the debugging dialogue. I'll post the resume here later. Wait a minute for the PM.

  • Hey, Installed GCOverrides (second time, had it on old PC.) but I can't see it doing anything -I was particularly after the Y-axis zoom on activity graphs, but see in your ReadMe that those can be temperamental. Is there anywhere else I can definitely check whether it's running successfully or not. 6 month Activities Report looks standard too

    I've CTRL-SHIFT-I'd in the GC tab, I have: GCOverrides v1.19   GCW 4.36.2.0 x 4.32.0.14! on top of window.

    EDIT: There's a wheen or errors in the console
    eg:
    DevTools failed to load SourceMap: Could not load content for connect.garmin.com/.../vendor.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
    DevTools failed to load SourceMap: Could not load content for connect.garmin.com/.../139.215566ec.chunk.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
    DevTools failed to load SourceMap: Could not load content for connect.garmin.com/.../141.5d4b70d7.chunk.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE

    Cheers

  • One part of the functionality, including the Y-Axis zooming, requires the scripts to be rewritten each time Garmin releases a new version of the web (because the source maps then change too). At the beginning, I've been doing it regularly, but since there was no interest here about using the GCO, I stopped bothering about it, and am doing it only up and then, when I find the time. Right now I am rather busy with my own job, so won't have much time doing it, but if you want, I can explain how to turn on the Y zooming. It is rather trivial:

    On the tab Sources of the DevTools, press Ctrl+Shift+F, search for the string zoomType: "x", skip the occurances in the GCO override files, and override the ones from the orginal Garmin pool. Replace the "x" with "xy" - that's all what is needed. It is on two places in the Garmin scripts.

  • There is a new version of GCOverrdes - v1.20. Should be again fully functional (until the next change of Garmin Connect).

    A new feature added - Activity pages for Run and Walk (possibly also for Hike) activity types now show the step count done during the activity

  • Nice. Steps showing on the Activity page is a nice addition. I've been using "Steps to Fit" so I checked out what it said vs. GCO-Overrides on one of my yesterday activities.

    Steps to FIT      - 9,041 steps

    GCO-Overrides - 9,050 steps

    I installed an update to GCM this morning so it will be interesting to see if it still works today.

  • Thanks for the feedback, . It looks like a good match. I could not verify it with a similar app, since my Instinct does not support the Connect IQ technology, and hence am glad for the confirmation of a good accuracy.

    I installed an update to GCM this morning so it will be interesting to see if it still works today.

    Around a ½ hour ago I uploaded a small bug fix - I noticed that due to the changes I did in the latest version, for example the function for suppressing unwanted badges, and some other functionality, was blocked. So I'd recommend downloading the files again, or at least the file gauth-widget.js

  • There is a Firefox extension that does this (full disclosure - I'm the author)

    https://addons.mozilla.org/en-US/firefox/addon/garmin-graphs/

    Source code is available at:

    https://github.com/aethelz/garmin-graphs

    I couldn't make a chrome version due to API limitations (not as easy to intercept graph data in chrome-based browsers), but feel free to give it a go or use any part of my code you would find useful.

    Best of luck with GCO, great work!

  • Thx,

    One of the things I noticed when using "Steps to FIT" is that when the watch autopauses, it only starts counting again after the watch starts counting again which is usually about 5 or 6 steps. Steps to Fit seems to not include those steps.