Skip to content

Tool to export run activities from Nike Run Club to Strava

Notifications You must be signed in to change notification settings

opierre/NRCToStrava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NRCToStrava

Script to export/convert/upload run activities from Nike Run Club to Strava

Requirements

  • Python 3: All requirements are set in requirements.txt

  • Command-line JSON processor: download and install jq (version >= 1.6)

  • Strava:

    • In order to upload NRC running data to Strava, it is required to make an application as explained here and fulfill all necessary fields.

Prerequisites

NikeRunClub

All Nike+ API is explained in Yoshimasa Niwa's gist. Fetching NRC activities requires a bearer token from their website:

  • Go to Nike Membership page and login
  • Open the developer tools in your browser and filter all "api.nike.com" requests
  • You should be able to find such request: "/engage/invites/v1...", then click on it
  • In Request Headers there should be an Authorization header with a Bearer value
  • Copy this value somewhere, it will be asked during NRCToStrava.bash execution

Strava

Uploading a run to Strava requires your Client ID, Client Secret and an access token with write permission:

Run bash script

Run script:

$ sh NRCToStrava.bash <bearer_token>

Paste NRC bearer value and press enter.

Compatibility

This script has been tested on runs from 2014 to 2019.

Notes

You can "Edit distance" on your run in Strava if the difference between NRC and Strava data is too big.

Credits

  • NRCToStrava.bash is adapted from Yoshimasa Niwa's gist in order to convert JSON data to TCX and upload to Strava
  • stravaupload.py is adapted from Eirik Marthinsen github in order to work with Python 3 and current Strava API

About

Tool to export run activities from Nike Run Club to Strava

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published