gatsby-source-strava

Gatsby plugin to use Strava as a data source
Getting started

You can download gatsby-source-strava
from the NPM registry via the
npm
or yarn
commands
yarn add gatsby-source-strava
npm install gatsby-source-strava --save
Usage
Add the plugin in your gatsby-config.js
file:
const STRAVA_TOKEN = "your-token"
module.exports = {
plugins: [
{
resolve: "gatsby-source-strava",
options: {
token: STRAVA_TOKEN,
activitiesOptions: {
before: "1539500400",
after: "1539500400",
withComments: true,
withKudos: true,
withLaps: true,
withPhotos: true,
withRelated: true,
withStreams: true,
withZones: true,
streamsTypes: [
"time",
"cadence",
"distance",
"latlng",
"heartrate",
"temp",
"moving",
"grade_smooth",
"watts",
"velocity_smooth",
"altitude",
],
},
athleteOptions: {
computeHeartrateMax: true,
withKoms: true,
withRoutes: true,
withStats: true,
withZones: true,
},
},
},
],
}
Contributing
- ⇄ Pull/Merge requests and ★ Stars are always welcome.
- For bugs and feature requests, please create an issue.
See CONTRIBUTING guidelines
Changelog
See CHANGELOG
License
This project is licensed under the MIT License - see the
LICENCE file for details