Skip to content

Upload files to strava.com from the command line

Notifications You must be signed in to change notification settings

kimble4/strava_upload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 

Repository files navigation

strava_upload

Strava uploader for GPX/TCX/FIT files. Based on https://github.com/mpolla/stravaup

GPX files originating from a Garmin eTrex 30/32x will have "with barometer" added to the 'creator' field so that Strava uses their elevation readings.

Prerequisites

  • bash
  • cURL
  • jq

Usage:

Upload a file:

strava_upload.sh [options] file

Permitted options are:

-a, --activity-type=type One of ride, run, swim, workout, hike, walk, ebikeride, virtualride, etc.

-A, --archive="dir" Save a copy of the file in directory

-c, --commute Activity is a commute

-D, --delete Delete the file after successful upload

-d, --description="Activity description" Activity description

-n, --name="Activity name" Activity name

-s, --silent Surpress status messages other than errors

-t, --trainer Activity is indoor

-z, --gzip Compress file with gzip before upload (if not already compressed)

eg:

strava_upload.sh -n "Daily permitted exercise" --description="Why are so many people driving around in cars?" -z Desktop/Current.gpx

About

Upload files to strava.com from the command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%