Download Garmin Connect data
Project description
Download Garmin Connect Data
This software downloads TCX files and accompanying activity metadata files from the Garmin Connect website. Since Garmin has discontinued its API to download your data this software was written to take its place. It is the opinion of the author that this data generated by the athlete should be accessible via an automated method and not constrained to a Web GUI interface.
Features:
- Download Garmin activity data.
- Track data in an SQLite database (avoid re-downloading).
- Sync duration statistics with GoogleSheets.
- Print basic information and statistics on previous activities.
- Convenient importing in your favorite analysis tool (i.e. GoldenCheetah).
Table of Contents
Obtaining
The easist way to install the command line program is via the pip
installer:
pip install zensols.garmdown
Binaries are also available on pypi.
Data Life Cycle
- Download activities. These are independent blocks of data that provide information used to later download the respective TCX file.
- Download the TCX file. The TCX file has all the information needed by workout analysis applications like GoldenCheetah.
- Import TCX file. This step simply copies downloaded files to a directory that's easy to access by the workout analysis application.
- Ingest TCX files. Import all files in the import folder to your data workout analysis application. After this step you delete the folder as subsequent invocations of step 3 will regenerate it.
- Backup the activities database. In the rare case the binary database file
(see below) might be corrupted, a backup is made every
N
days (whereN
is specified in a configuration file).
All state between all of these steps are recorded in an SQLite database, which is a binary file stored on the file system. If this doesn't make sense to you, it means that you shouldn't need to install anything special and it lives on your disk.
History
The activity download module was inspired by Shannon's original project, which was used to navigate the convoluted Garmin client API.
Usage
The easiest way to use the program is to use the sync
action repeatedly
until the program doesn't do anything, example:
$ garmdown sync
This invokes all data life cycle steps, meaning it imports
activities in to the database, downloads the TCX files and creates a handy
import directory (by default in your desktop directory ~/Desktop/to-import
).
Command Line
Usage: usage: garmdown <list|activity|backup|env|import|notdown|notimport|sheet|sync|tcx> [options]
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-w NUMBER, --whine=NUMBER
add verbosity to logging
-c FILE, --config=FILE
configuration file
Actions:
activity Download outstanding activites
-l, --limit <int> the limit
backup Backup (force) the activites database
env Print environment
-d, --detail report details of missing data
import Import tcx file
-l, --limit <int> the limit
notdown Print activities not downloaded
-d, --detail report details of missing data
notimport Print activities not imported
-d, --detail report details of missing data
sheet Update google docs training spreadsheet
sync Download all outstanding data
-l, --limit <int> the limit
tcx Download outstanding tcx files
-l, --limit <int> the limit
Changelog
An extensive changelog is available here.
License
Copyright (c) 2019 Paul Landes
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file zensols.garmdown-0.0.8-py3.8.egg
.
File metadata
- Download URL: zensols.garmdown-0.0.8-py3.8.egg
- Upload date:
- Size: 46.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55b3b011ac21f96fc4927a4001f9371dabd763231a0cee54268ca96136206d66 |
|
MD5 | e9d6eac4d38f812b4ab76a23ed6b5a99 |
|
BLAKE2b-256 | c1bf31dc62814f8c09cf37aab1c011f6670d4e05732901e26a09cd742734209e |
File details
Details for the file zensols.garmdown-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: zensols.garmdown-0.0.8-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b43dd69efae5db63debb30f150a1b93c20fbc991b36b0366a34094556b58f10 |
|
MD5 | bc5b0314ea9be324e0413abb51865623 |
|
BLAKE2b-256 | 93811e4273ad1d1ce4de5a6e0d88d0c8bcd55cf5a420ca36b627e9401a8c9edf |