Git Product home page Git Product logo

garmin-uploader's Introduction

Garmin Uploader

Garmin Uploader (aka gupload), uploads files (.tcx, .gpx, and .fit files ) created by Garmin fitness devices to the http://connect.garmin.com web site.

โญ Yes, it works with the latest (April 2018 April 2019) Garmin connect authentication update.

This is an up to date version of GCPUploader by Dave Lotton. Thanks Dave for creating this tool ๐Ÿ‘

Requirements

Tested on Python 2.7 and Python 3.5

Build Status

Install

You can install garmin-uploader as any othe package availale on PyPi with pip:

On Linux

sudo pip install garmin-uploader

On Windows

pip install garmin-uploader

Required Python Modules: (automatically installed by pip)

  • requests
  • six

Garmin Connect Account

You must already have a Garmin Connect account set up. If you don't have one, go to https://connect.garmin.com and create your user account. The login credentials (username or email and password) for this account are required for uploading data to Garmin Connect.

Config File:

You may create a config file containing your Garmin Connect username and password to eliminate the need to type it in on the command line.

โš ๏ธ WARNING!!! The username and password are stored in clear text, WHICH IS NOT SECURE. If you have concerns about storing your garmin connect username and password in an unsecure file, do not use this option.

Create a text file named .guploadrc (gupload.ini for Windows users) containing the following:

[Credentials]
username=<username>
password=<password>

Replace and with your Garmin Connect login credentials. gupload looks for this file either in your home directory (usually something like '/home/' in Linux, or C:\Documents and Settings<username>' in Windows) , or in the current working directory (the directory you are in when you execute gupload). See help below for priority information.

Help

usage: cli.py [-h] [-a ACTIVITY_NAME] [-t ACTIVITY_TYPE] [-u USERNAME]
              [-p PASSWORD] [-v {1,2,3,4,5}]
                            paths [paths ...]

A script to upload .TCX, .GPX, and .FITfiles to the Garmin Connect web site.

positional arguments:
  paths                 Path and name of file(s) to upload, list file name, or
                        directoryname containing fitness files.

optional arguments:
  -h, --help            show this help message and exit
  -a ACTIVITY_NAME, --name ACTIVITY_NAME
                        Sets the activity name for the upload file. This
                        option isignored if multiple upload files are given.
  -t ACTIVITY_TYPE, --type ACTIVITY_TYPE
                        Sets activity type for ALL files in filename list,
                        except filesdescribed inside a csv list file.
  -u USERNAME, --username USERNAME
                        Garmin Connect user login
  -p PASSWORD, --password PASSWORD
                        Garmin Connect user password
  -v {1,2,3,4,5}, --verbose {1,2,3,4,5}
                        Verbose - select level of verbosity. 1=DEBUG(most
                        verbose), 2=INFO, 3=WARNING, 4=ERROR, 5=
                        CRITICAL(least verbose). [default=2]

Examples

Upload file and set activity name:

gupload -u myusername -p mypassword -a 'Run at park - 12/23' myfile.tcx

Upload multiple files:

gupload -u myusername -p mypassword myfile1.tcx myfile2.tcx myfile3.fit

Upload multiple files and set activity type for all to running:

gupload -u myusername -p mypassword -t "running" myfile1.tcx myfile2.tcx

Upload files using config file for credentials and csv list file:

gupload file_list.csv

Upload file using config file for credentials, name file, verbose output:

gupload -v 1 -a 'Run at park - 12/23' myfile.tcx

garmin-uploader's People

Contributors

dlotton avatar la0 avatar lmunch avatar

Watchers

 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.