Peloton Stats

v1.1.1

Fetch and report Peloton cycling workout statistics. Use when the user wants to see their Peloton workout data, weekly cycling stats, ride history, or perfor...

0· 622· 3 versions· 2 current· 2 all-time· Updated 4h ago· MIT-0
byRyan William Niemes@niemesrw

Install

openclaw skills install peloton-stats

Peloton Stats

Fetch weekly cycling stats directly from the Peloton API. Zero dependencies — uses only Python stdlib.

Setup

Store your Peloton credentials securely using OpenClaw's credential manager:

openclaw config set auth.profiles.peloton:default.type api_key
openclaw config set auth.profiles.peloton:default.provider peloton
openclaw config set auth.profiles.peloton:default.username "your-email@example.com"
openclaw config set auth.profiles.peloton:default.password "your-password"

Or edit ~/.openclaw/agents/main/agent/auth-profiles.json directly:

{
  "profiles": {
    "peloton:default": {
      "type": "api_key",
      "provider": "peloton",
      "username": "your-email@example.com",
      "password": "your-password"
    }
  }
}

Usage

Weekly Report

python3 ~/.openclaw/skills/peloton-stats/scripts/fetch_stats.py

Outputs markdown with:

  • Total rides this week
  • Total duration, calories, output (kJ)
  • Average power (watts), resistance (%), cadence (RPM)
  • Recent rides table (date, class, instructor, metrics)

Data Retrieved

MetricDescription
Total RidesNumber of cycling workouts in last 7 days
DurationTotal minutes ridden
CaloriesTotal calories burned
OutputTotal energy in kilojoules (kJ)
Avg PowerAverage watts across all rides
Avg ResistanceAverage resistance %
Avg CadenceAverage RPM

Notes

  • Only fetches cycling workouts (not running, strength, yoga, etc.)
  • Looks back 7 days from runtime
  • Requires active Peloton subscription
  • Uses the unofficial Peloton API at api.onepeloton.com

Version tags

latestvk97fjdk8bw6jqe46qdp16pa0tn81psyf

Runtime requirements

🚴 Clawdis
EnvPELOTON_USERNAME, PELOTON_PASSWORD
Config~/.openclaw/agents/main/agent/auth-profiles.json
Primary envPELOTON_USERNAME