Coder Social home page Coder Social logo

garmin-tc-rstat's Introduction

Analyse your workout in R

Since Garmin Training Center stores your data in a sqlite file, it’s now now easy to sweat while analysing your workouts.

Instructions

locating the backup files

  • Usually, a *.tcd file is stored in

C:\Users\*USER*\AppData\Roaming\Garmin\TrainingCenter\Backups. You can request a new backup save via the File menu in the software.

obtaining the plots

  • the backup located in the previous section is actually a SQLite file that we’ll feed to the R/graphs.R script.
  • fill in your records in the R/load.R file - table Records

Example plots

Here’s a few examples based on the data from a person regularly training (running, biking, and swimming). Your imagination is the limit.

The classics

Plots similar to the one on Garmin Connect.

Total weekly distance

./plots/id1_total_weekly_distance.png

Monthly activity count

./plots/id2_Monthly_act_count.png

Activity count by year

./plots/id25_Activity_peryear.png

Personal Best trends

The plots on this section outlines the PBs for Running and Biking (the red dots).

Avergare speed vs date - Running

./plots/id21_AvgSpeed_distance_Running.png

other

HR vs Activity Starttime

./plots/id3_HR_vs_Starttime.png

Activity count by day of week

./plots/id6_Activity_dayofWeek.png

HR vs elapsed time

./plots/id7_HR_etime.png

total distance by activity

./plots/id14_Total_Distance_byact.png

Mosaic AvgSpeed / Avg HR per month (Running)

./plots/mosaic.png

Notes

  • Garming TC does not name on “other” activities. Those can include walking, swimming, etc
  • Accuracy of the HR monitor can debated, especially after 1 year usage.
  • this code is a bit old and lacking some styles that I learned later, namely pipes and javascript libs.
  • Some plots needs the temperature during the activity. Look for a nearby temperature temperature station with open data. If you’re in the US there should be plenty.

garmin-tc-rstat's People

Contributors

lompik avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.