peloton-stats
获取并报告 Peloton 骑行锻炼统计数据。当用户想要查看他们的 Peloton 锻炼数据、每周骑行统计数据、骑行历史或表现指标时使用。直接点击 Peloton API(无依赖性)来提取骑行锻炼的总骑行次数、持续时间、卡路里、输出/功率和教练数据。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~niemesrw-peloton-statscURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~niemesrw-peloton-stats/file -o niemesrw-peloton-stats.md## 概述(中文)
获取并报告 Peloton 骑行锻炼统计数据。当用户想要查看他们的 Peloton 锻炼数据、每周骑行统计数据、骑行历史或表现指标时使用。直接点击 Peloton API(无依赖性)来提取骑行锻炼的总骑行次数、持续时间、卡路里、输出/功率和教练数据。
## 原文
# 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:
```bash
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:
```json
{
"profiles": {
"peloton:default": {
"type": "api_key",
"provider": "peloton",
"username": "your-email@example.com",
"password": "your-password"
}
}
}
```
## 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
| Metric | Description |
|--------|-------------|
| **Total Rides** | Number of cycling workouts in last 7 days |
| **Duration** | Total minutes ridden |
| **Calories** | Total calories burned |
| **Output** | Total energy in kilojoules (kJ) |
| **Avg Power** | Average watts across all rides |
| **Avg Resistance** | Average resistance % |
| **Avg Cadence** | Average 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`