A visual diary of your cycle adventures
Strava is good for tracking single-activity GPS & fitness logs. This project seeks to combine multiple single activities into a multi-day adventure journal.
Using a Cloudflare Worker to connect to the Strava API and pull concurrent cycle logs and combine them into a single journey.
- Create a new Worker and save the content from
./worker/index.js
into your script (note the URL) - Get a Strava
access_token
by creating an application at https://www.strava.com/settings/api - Visit your running Worker in a web browser and authorise your app
npm install
cp .env.example .env
- Edit
.env
with keys and IDs from your Strava Application settings npm run worker:init
to put the details from.env
intoworker/wrangler.toml
(https://developers.cloudflare.com/workers/platform/environment-variables#adding-environment-variables-via-wrangler)wrangler login
(optional for easier deployment withnpm run worker:publish
, but before publishing your code you need to editwrangler.toml
file and add your Cloudflareaccount_id
)
npm run worker:dev
npm run worker:tail # for logs from the remote Worker - good for callbacks
- Strava
- Cloudflare