dragosprotung / sport-tracker-connector
A set of tools to dump / upload / port workouts from different online sport trackers to another (ex endomondo.com, flow.polar.com, strava.com). Also provides helper classes for parsing sport data.
Requires
- php: >=5.4
- guzzlehttp/guzzle: ~5.1
- psr/log: ~1.0
- symfony/console: ~2.5
- symfony/yaml: ~2.5
Requires (Dev)
- mikey179/vfsstream: ~1.4
- phpmd/phpmd: ~2.2
- phpunit/phpunit: ~4.7
- sebastian/phpcpd: ~2.0
- squizlabs/php_codesniffer: ~2.3
README
Overview
A set of tools to dump / upload / port workouts from / to online sport trackers.
Supported trackers:
- endomondo.com
- strava.com
- flow.polar.com
- strava.com
Installation
Install PHP 5.4 or newer and composer.
git clone https://github.com/dragosprotung/SportTrackerConnector.git composer.phar install
Configuration
Copy or rename config.example.yml to config.yml
Make sure you fill up the values with your credentials. Some trackers (ex. strava.com) have more complex authentication mechanism.
For that see help connector help
for a list of specific tracker commands and help.
Example is strava.com: connector strava:get-token
Usage
You will need to create a config.yml file and put in your credentials for the services. You can rename and modify config.example.yml
Available commands for working with workouts:
- dump:workout Fetch a workout from a tracker and save it to a file (gpx, json, etc).
- dump:multi Fetch multiple workouts from a date interval with resume functionality.
- upload:sync Copy a workout / multiple workouts from one tracker to another.
- upload:workout Upload a workout file to a tracker.