Skip to content

Get notified on Matrix chat about Strava club activities

License

Notifications You must be signed in to change notification settings

nik0kin/matrix-strava-bot

Repository files navigation

matrix-strava-bot

Reports Strava club activities.

Kingo T. 🚶 Afternoon Walk - 3.13 kilometers in 30 minutes 19 seconds

Unfortunately due to public Strava API restrictions, we cannot query more information on a given club activity, and thus the bot can't link to it.

Develop

yarn install
yarn dev

Run

Bootstrap mode

# clone repo
yarn install

cp bot-config.sample.json bot-config.json
# configure bot-config.json

yarn global add pm2
pm2 start pm2.config.js

As a Node.js package

yarn add matrix-strava-bot
import { startBot } from 'matrix-strava-bot';

const config = {
  // see bot-config.sample.json
};

startBot(config);

Config

See settings.ts for config descriptions

Setup a Strava api client key and generate an accessToken at https://www.strava.com/settings/api

Reference

Uses Strava v3 api: http://developers.strava.com/docs/reference/