AgentSkillsCN

peloton-stats

抓取并上报Peloton骑行训练统计数据。当用户希望查看自己的Peloton训练数据、每周骑行统计、骑行历史,或性能指标时使用。直接调用Peloton API(无需依赖其他工具),即可获取骑行总次数、时长、消耗的卡路里、输出功率,以及骑行课程的讲师信息。

SKILL.md
--- frontmatter
name: peloton-stats
description: Fetch and report Peloton cycling workout statistics. Use when the user wants to see their Peloton workout data, weekly cycling stats, ride history, or performance metrics. Hits the Peloton API directly (no dependencies) to pull total rides, duration, calories, output/power, and instructor data for cycling workouts.
user-invocable: true

Peloton Stats

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

Setup

Set your Peloton credentials as environment variables:

bash
export PELOTON_USERNAME="your-email@example.com"
export PELOTON_PASSWORD="your-password"

Add to your shell profile (~/.zshrc, ~/.bashrc) to persist across sessions.

Usage

Weekly Report

bash
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

Disclaimer

This skill is not affiliated with, endorsed by, or connected to Peloton Interactive, Inc. It uses Peloton's unofficial API, which could change or break at any time. Use at your own risk.