https://github.com/sesh/runsync
🏃🏻 Sync Strava -> Smashrun
https://github.com/sesh/runsync
python running smashrun strava
Last synced: about 1 year ago
JSON representation
🏃🏻 Sync Strava -> Smashrun
- Host: GitHub
- URL: https://github.com/sesh/runsync
- Owner: sesh
- Created: 2017-06-25T10:12:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T23:31:58.000Z (almost 3 years ago)
- Last Synced: 2025-04-06T23:25:22.842Z (about 1 year ago)
- Topics: python, running, smashrun, strava
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`runsync` is a Python tool for syncing runs (and other activities) between services.
It currently supports exporting runs from [Strava][strava] to [Smashrun][smashrun].
I definitely intend on incorporating other services.
_This is a WIP. I recommend looking at `runsync.py` and having a play around._
---
## Usage
You need to gather and export three environment variables:
- SMASHRUN_TOKEN - obtainable from the [Smashrun API Explorer][sr-api]
- STRAVA_APP_ID and STRAVA_CLIENT_SECRET - create an app in your [Strava API Settings][strava-api]
When you run you will be asked to open a URL to perform the Strava OAuth handshake. This is required because the access token that Strava provides in your profile does not have permission to read activities (at least for me).
Once you have the environment variables configured you can run with:
```bash
> pipenv run python runsync.py
```
This will attempt to sync the 100 most recent activities between the two services.
[smashrun]: https://smashrun.com
[strava]: https://strava.com
[sr-api]: https://api.smashrun.com/explorer
[strava-api]: https://www.strava.com/settings/api