Wahoo Fitness Cloud APIを活用し、ワークアウトデータの取得、FITファイルのダウンロード、パワーや心拍数などのデータを解析しやすいSQLite形式に変換することで、効率的なトレーニング分析を可能にするSkill。
Wahoo Fitness Cloud APIからワークアウトデータを取得し、FITファイルをダウンロードして、パワーや心拍数などのデータをローカルのSQLiteに解析・保存するためのSkill。
📜 元の英語説明(参考)
Wahoo Fitness Cloud API — fetch workouts, download FIT files, parse power/HR/cadence/GPS into local SQLite for analysis
🇯🇵 日本人クリエイター向け解説
Wahoo Fitness Cloud APIからワークアウトデータを取得し、FITファイルをダウンロードして、パワーや心拍数などのデータをローカルのSQLiteに解析・保存するためのSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o wahoo-cloud.zip https://jpskill.com/download/5562.zip && unzip -o wahoo-cloud.zip && rm wahoo-cloud.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/5562.zip -OutFile "$d\wahoo-cloud.zip"; Expand-Archive "$d\wahoo-cloud.zip" -DestinationPath $d -Force; ri "$d\wahoo-cloud.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
wahoo-cloud.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
wahoo-cloudフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-18
- 同梱ファイル
- 7
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Wahoo Cloud API スキル
ELEMNT BOLT/ROAM/ACE ヘッドユニット向けの Wahoo Fitness Cloud API へのプログラムによるアクセスです。ワークアウトのメタデータを取得し、Wahoo の CDN から FIT ファイルをダウンロードし、ライドデータ(パワー、ケイデンス、心拍数、GPS、標高)をローカルの SQLite データベースに解析します。
API ベース: https://api.wahooligan.com。ワークアウトのエンドポイントは /v1/workouts 以下にあります。offline_data スコープを持つ OAuth2 は、長期間有効なリフレッシュトークンを生成します。アクセストークンは約2時間で期限切れになり、スキルは401エラー時に自動的にリフレッシュします。
エージェントのクイックスタート(最初にこちらをお読みください)
ユーザーに代わってこのスキルを呼び出すエージェントの場合:
| ユーザーの質問 | 実行するコマンド |
|---|---|
| 「Wahoo のワークアウトを同期して」 / 「新しいライドを取り込んで」 | python3 {baseDir}/scripts/fetch_workouts.py |
| 「最近のライドを見せて」 / 「先週のトレーニング」 | ~/.openclaw/workspace/training/wahoo.db (または $WAHOO_TRAINING_DIR/wahoo.db) をクエリします — スキーマは以下を参照 |
| 「この FIT ファイルを解析して」 | python3 {baseDir}/scripts/parse_fit.py PATH.fit [--summary-only] |
| 「Wahoo をセットアップして」 / 「Wahoo を接続して」 | ユーザーに以下のセットアップ §1–3 を案内し、python3 {baseDir}/scripts/oauth_setup.py を実行します |
| 「Wahoo のトークンをリフレッシュして」 | bash {baseDir}/scripts/refresh_token.sh (自動リフレッシュが失敗した場合のみ必要) |
フェッチスクリプトは冪等です — ハートビートで安全に実行できます。すでに完全に同期されたワークアウト(fit_parsed_at IS NOT NULL)はスキップします。サンドボックスのレート制限(25リクエスト/5分)により自動バックオフがトリガーされるため、長い履歴の初回同期には数分かかる場合があります。
このスキルは認証情報を提供できません。各ユーザーは独自の Wahoo 開発者アプリを必要とします — ショートカットはありません。セットアップは1回限りのブラウザでのハンドシェイクです。
認証情報の自動読み込み: WAHOO_CLIENT_ID / WAHOO_CLIENT_SECRET が呼び出し元のシェルにない場合、wahoo_auth.py は自動的に ~/.openclaw/secrets/wahoo.env からそれらを読み込みます(パスは $WAHOO_ENV_FILE で上書きできます)。これは、OpenClaw エージェントが何もソースせずに fetch_workouts.py を呼び出すことができ、トークンのリフレッシュが機能することを意味します。
セットアップ
1. Wahoo 開発者アプリの登録
- https://developers.wahooligan.com にアクセスします
- アプリケーションを作成します(サンドボックスは自動です — レビューは不要)
- コールバック URL を設定します(例:
https://localhost:8080/— 手動ペーストの OAuth ヘルパーは、登録された任意のコールバックで動作します) - スコープをリクエストします:
workouts_read offline_data user_read(ゾーン/プラン/ルートが必要な場合はpower_zones_read plans_read routes_readを追加します) - クライアント ID と クライアント シークレット を控えておきます
2. 認証情報の構成
~/.clawdbot/clawdbot.json に追加します:
{
"skills": {
"entries": {
"wahoo": {
"enabled": true,
"env": {
"WAHOO_CLIENT_ID": "your-client-id",
"WAHOO_CLIENT_SECRET": "your-client-secret",
"WAHOO_REDIRECT_URI": "https://localhost:8080/"
}
}
}
}
}
または環境変数として:
export WAHOO_CLIENT_ID="..."
export WAHOO_CLIENT_SECRET="..."
export WAHOO_REDIRECT_URI="https://localhost:8080/"
3. OAuth2 フローの実行
python3 {baseDir}/scripts/oauth_setup.py
スクリプトは認証 URL を出力します。ブラウザで開き、Wahoo アカウントでログインし、承認します。クエリ文字列に ?code=... を含むコールバック URL にリダイレクトされます(ページ自体は読み込みに失敗しますが、これは想定内です。URL または code の値をコピーしてください)。それをスクリプトに貼り付けます。スクリプトはコードをトークンと交換し、それらを ~/.openclaw/secrets/wahoo_tokens.json に書き込みます。
4. ワークアウトの取得
python3 ~/.openclaw/workspace/training/fetch_wahoo.py
これはワークアウトリストを取得し、新しいワークアウトごとに詳細(および FIT URL)を取得し、FIT ファイルを ~/.openclaw/workspace/training/wahoo_fit/ にダウンロードし、それらを解析し、レコードを ~/.openclaw/workspace/training/wahoo.db にアップサートします。
使用方法
ワークアウトのリスト表示(ページネーション付き)
curl -s -H "Authorization: Bearer ${WAHOO_ACCESS_TOKEN}" \
"https://api.wahooligan.com/v1/workouts?page=1&per_page=30"
レスポンスの形式: { workouts: [...], total, page, per_page, order, sort }。リストレスポンスでは workout_summary が null であることに注意してください — 概要と FIT URL を取得するには、ワークアウトごとに詳細を取得する必要があります。
ワークアウトの詳細を取得(FIT URL 付き)
curl -s -H "Authorization: Bearer ${WAHOO_ACCESS_TOKEN}" \
"https://api.wahooligan.com/v1/workouts/WORKOUT_ID"
FIT ファイルの URL は workout_summary.file.url にあります。
FIT ファイルのダウンロード
curl -L -o ride.fit "$FIT_URL"
CDN は認証を必要とせず、API レート制限にはカウントされません。
ユーザープロファイルの取得
curl -s -H "Authorization: Bearer ${WAHOO_ACCESS_TOKEN}" \
"https://api.wahooligan.com/v1/user"
{ id, height, weight, first, last, email, birth, gender, created_at, updated_at } を返します。身長と体重は小数文字列として返されます。
アクセストークンのリフレッシュ
bash {baseDir}/scripts/refresh_token.sh
Python OAuth ヘルパーは、refresh_token がファイルにある場合、401エラー時に自動的にリフレッシュします。シェルヘルパーは手動/cronでの使用向けです。
curl -s -X POST https://api.wahooligan.com/oauth/token \
-d client_id="${WAHOO_CLIENT_ID}" \
-d client_secret="${WAHOO_CLIENT_SECRET}" \
-d grant_type=refresh_token \
-d refresh_token="${WAHOO_REFRESH_TOKEN}"
新しいアクセストークンは、正常に使用されるまで古いトークンを無効にしません(Wahoo は2026年1月現在、ユーザーあたり最大10個の取り消されていないアクセストークンを許可しています)。
共通データフィールド
workout_summary には以下が含まれます:
ascent_accum— 総獲得標高 (m)cadence_avg— 平均ケイデンス (rpm)calories_accum— kcaldistance_accum— 距離 (m)duration_active_accum/duration_paused_accum/duration_total_accum— 秒heart_rate_avg— bpmpower_avg— 平均パワー (W)power_bike_np_last— 正規化パワーpower_bike_tss_last— トレーニングストレススコアspeed_avg— m/swork_accum— 総仕事量 (J)time_zone— IANA タイムゾーンfile.url— FIT ファイル URL (CDN)
すべての小数値は文字列として返されます — 計算前にキャストしてください。
workout_type_id は整数列挙型ですが、そのマッピングは公開されていません。経験的に
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Wahoo Cloud API Skill
Programmatic access to the Wahoo Fitness Cloud API for ELEMNT BOLT/ROAM/ACE head units. Fetches workout metadata, downloads FIT files from Wahoo's CDN, and parses ride data (power, cadence, HR, GPS, elevation) into a local SQLite database.
API base: https://api.wahooligan.com. Workout endpoints live under /v1/workouts. OAuth2 with the offline_data scope yields a long-lived refresh token; access tokens expire after ~2 hours and the skill auto-refreshes on 401.
Agent quickstart (read this first)
If you're an agent invoking this skill on behalf of a user:
| User asks | Run this |
|---|---|
| "Sync my Wahoo workouts" / "Pull new rides" | python3 {baseDir}/scripts/fetch_workouts.py |
| "Show recent rides" / "Last week's training" | Query ~/.openclaw/workspace/training/wahoo.db (or $WAHOO_TRAINING_DIR/wahoo.db) — schema below |
| "Parse this FIT file" | python3 {baseDir}/scripts/parse_fit.py PATH.fit [--summary-only] |
| "Set up Wahoo" / "Connect my Wahoo" | Walk the user through Setup §1–3 below; then run python3 {baseDir}/scripts/oauth_setup.py |
| "Refresh my Wahoo token" | bash {baseDir}/scripts/refresh_token.sh (only needed if auto-refresh fails) |
The fetch script is idempotent — safe to run on a heartbeat. It skips workouts already fully synced (fit_parsed_at IS NOT NULL). Sandbox rate limits (25 req / 5 min) trigger automatic backoff, so a first sync of a long history may take many minutes.
The skill cannot ship credentials. Each user needs their own Wahoo developer app — no shortcut. Setup is a one-time browser handshake.
Credential auto-loading: if WAHOO_CLIENT_ID / WAHOO_CLIENT_SECRET aren't in the calling shell, wahoo_auth.py automatically reads them from ~/.openclaw/secrets/wahoo.env (override path with $WAHOO_ENV_FILE). This means an OpenClaw agent can invoke fetch_workouts.py without sourcing anything — token refresh just works.
Setup
1. Register a Wahoo Developer App
- Go to https://developers.wahooligan.com
- Create an application (Sandbox is automatic — no review)
- Set callback URL (e.g.
https://localhost:8080/— the manual-paste OAuth helper works with any registered callback) - Request scopes:
workouts_read offline_data user_read(addpower_zones_read plans_read routes_readif you want zones/plans/routes) - Note your Client ID and Client Secret
2. Configure Credentials
Add to ~/.clawdbot/clawdbot.json:
{
"skills": {
"entries": {
"wahoo": {
"enabled": true,
"env": {
"WAHOO_CLIENT_ID": "your-client-id",
"WAHOO_CLIENT_SECRET": "your-client-secret",
"WAHOO_REDIRECT_URI": "https://localhost:8080/"
}
}
}
}
}
Or as environment variables:
export WAHOO_CLIENT_ID="..."
export WAHOO_CLIENT_SECRET="..."
export WAHOO_REDIRECT_URI="https://localhost:8080/"
3. Run OAuth2 Flow
python3 {baseDir}/scripts/oauth_setup.py
The script prints an authorization URL. Open it in a browser, log in with your Wahoo account, approve. You'll be redirected to your callback URL with ?code=... in the query string (the page itself will fail to load — that's expected; just copy the URL or the code value). Paste it back into the script. It exchanges the code for tokens and writes them to ~/.openclaw/secrets/wahoo_tokens.json.
4. Fetch Workouts
python3 ~/.openclaw/workspace/training/fetch_wahoo.py
This pulls the workout list, fetches detail (and FIT URL) for each new workout, downloads FIT files into ~/.openclaw/workspace/training/wahoo_fit/, parses them, and upserts records into ~/.openclaw/workspace/training/wahoo.db.
Usage
List Workouts (paginated)
curl -s -H "Authorization: Bearer ${WAHOO_ACCESS_TOKEN}" \
"https://api.wahooligan.com/v1/workouts?page=1&per_page=30"
Response shape: { workouts: [...], total, page, per_page, order, sort }. Note that workout_summary is null in the list response — fetch detail per workout to get summary + FIT URL.
Get Workout Detail (with FIT URL)
curl -s -H "Authorization: Bearer ${WAHOO_ACCESS_TOKEN}" \
"https://api.wahooligan.com/v1/workouts/WORKOUT_ID"
The FIT file URL lives at workout_summary.file.url.
Download a FIT File
curl -L -o ride.fit "$FIT_URL"
The CDN doesn't require auth and doesn't count against your API rate limit.
Get User Profile
curl -s -H "Authorization: Bearer ${WAHOO_ACCESS_TOKEN}" \
"https://api.wahooligan.com/v1/user"
Returns { id, height, weight, first, last, email, birth, gender, created_at, updated_at }. Height and weight are returned as decimal strings.
Refresh Access Token
bash {baseDir}/scripts/refresh_token.sh
The Python OAuth helper auto-refreshes on 401 if a refresh_token is on file. The shell helper is for manual/cron use.
curl -s -X POST https://api.wahooligan.com/oauth/token \
-d client_id="${WAHOO_CLIENT_ID}" \
-d client_secret="${WAHOO_CLIENT_SECRET}" \
-d grant_type=refresh_token \
-d refresh_token="${WAHOO_REFRESH_TOKEN}"
The new access token does not invalidate the old one until you successfully use it (Wahoo allows up to 10 unrevoked access tokens per user as of Jan 2026).
Common Data Fields
workout_summary includes:
ascent_accum— total elevation gain (m)cadence_avg— average cadence (rpm)calories_accum— kcaldistance_accum— distance (m)duration_active_accum/duration_paused_accum/duration_total_accum— secondsheart_rate_avg— bpmpower_avg— average power (W)power_bike_np_last— normalized powerpower_bike_tss_last— Training Stress Scorespeed_avg— m/swork_accum— total work (J)time_zone— IANA tzfile.url— FIT file URL (CDN)
All decimal values are returned as strings — cast before math.
workout_type_id is an integer enum whose mapping isn't published. Empirically observed: cycling rides come back as 0. Treat as opaque and key off the FIT sport/sub_sport fields (parsed into workouts.fit_* columns) when you need to filter by activity type.
Rate Limits
| Tier | per 5 min | per hour | per day |
|---|---|---|---|
| Sandbox | 25 | 100 | 250 |
| Production | 200 | 1,000 | 5,000 |
Headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. The sync pipeline backs off automatically on 429.
Tips
- Convert m → mi: divide by 1609.34
- Convert m/s → mph: multiply by 2.237
- Decimal strings:
float(workout_summary["power_avg"])before any math - The list endpoint omits
workout_summary— always hit detail (/v1/workouts/:id) to get FIT URL
Error Handling
| Status | Meaning | Action |
|---|---|---|
| 401 | Access token expired/invalid | Run refresh_token.sh or let wahoo_auth.py auto-refresh |
| 403 | Scope insufficient | Re-authorize with the missing scope |
| 429 | Rate limit hit | Wait until X-RateLimit-Reset |
| 404 | Workout not found / not yours | Confirm ID + ownership |
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (7,525 bytes)
- 📎 LICENSE.md (1,070 bytes)
- 📎 README.md (7,880 bytes)
- 📎 scripts/fetch_workouts.py (11,123 bytes)
- 📎 scripts/oauth_setup.py (2,302 bytes)
- 📎 scripts/parse_fit.py (767 bytes)
- 📎 scripts/refresh_token.sh (1,823 bytes)