Package: zensols.garmdown
Download Garmin Connect DataThis 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 anSQLitedatabase (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 ContentsObtainingData Life CycleHistoryUsageCommand LineChangelogLicenseObtainingThe easist way to install the command line program is via thepipinstaller:pipinstallzensols.garmdownBinaries are also available onpypi.Data Life CycleDownload 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 likeGoldenCheetah.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 everyNdays (whereNis 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 itliveson
your disk.HistoryThe activity download module was inspired byShannon's original project,
which was used to navigate the convoluted Garmin client API.UsageThe easiest way to use the program is to use thesyncaction repeatedly
until the program doesn't do anything, example:$garmdownsyncThis invokes alldata 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 LineUsage: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-wNUMBER,--whine=NUMBERaddverbositytologging-cFILE,--config=FILEconfigurationfileActions:activityDownloadoutstandingactivites-l,--limit <int>    the limitbackupBackup(force)theactivitesdatabaseenvPrintenvironment-d,--detail         report details of missing dataimportImporttcxfile-l,--limit <int>    the limitnotdownPrintactivitiesnotdownloaded-d,--detail         report details of missing datanotimportPrintactivitiesnotimported-d,--detail         report details of missing datasheetUpdategoogledocstrainingspreadsheetsyncDownloadalloutstandingdata-l,--limit <int>    the limittcxDownloadoutstandingtcxfiles-l,--limit <int>    the limitChangelogAn extensive changelog is availablehere.LicenseCopyright (c) 2019 Paul LandesPermission 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.