Garmin Connect Data Query

v1.0.0

读取 Garmin Connect 手表/设备数据。 触发场景: - "今天走了多少步" - "昨晚睡眠怎么样" - "最近有什么运动" - "心率怎么样" - "这周跑了多少次" - 查询任意日期的运动、睡眠、心率等健康数据

0· 186·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for tcyxk/garmin-connect-cn.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Garmin Connect Data Query" (tcyxk/garmin-connect-cn) from ClawHub.
Skill page: https://clawhub.ai/tcyxk/garmin-connect-cn
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install garmin-connect-cn

ClawHub CLI

Package manager switcher

npx clawhub@latest install garmin-connect-cn
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the included code and docs. The scripts call Garmin Connect endpoints and require a JWT from the user's Garmin session cookie — this is coherent for a client that reads personal Garmin data.
Instruction Scope
SKILL.md and references explicitly instruct the user to extract the JWT_WEB cookie from the browser and pass it to the Python scripts. That is necessary for the described functionality, but it involves handling a sensitive bearer token; the docs warn about token secrecy. No instructions ask the agent to read unrelated files or exfiltrate data to other endpoints.
Install Mechanism
This is instruction-only (no install spec). The project includes small Python scripts and the README advises installing the 'requests' package via pip. No downloads from arbitrary URLs or archive extraction steps are present.
Credentials
The only sensitive credential the skill needs is the Garmin JWT token (user-provided). The metadata declares no required env vars, though README suggests an optional GARMIN_JWT env var. No unrelated credentials or secrets are requested. Minor oddity: scripts use a hard-coded default userId ('116181268') when none is provided, which is unnecessary and could be confusing.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide configuration, and does not persist credentials. It only runs the included scripts when invoked.
Assessment
This skill appears internally consistent and implements exactly what it says: it queries Garmin Connect APIs using a browser-extracted JWT. Before installing/running it, remember: (1) the JWT is a sensitive bearer token — treat it like a password and do not share it; (2) follow the README steps locally and inspect the included scripts yourself before running; (3) the scripts print data to stdout only, but if you store the token in an environment variable or a file, be careful not to commit or share it; (4) the scripts include a hard-coded default userId from the author — you can ignore that and let the code fetch your userId via the API. If you are uncomfortable extracting tokens from your browser, do not use the skill.

Like a lobster shell, security has layers — review code before you run it.

fitnessvk9798vejk1640qpp9vcczykt5h83gc5kgarminvk9798vejk1640qpp9vcczykt5h83gc5khealthvk9798vejk1640qpp9vcczykt5h83gc5klatestvk9798vejk1640qpp9vcczykt5h83gc5kwearablevk9798vejk1640qpp9vcczykt5h83gc5k
186downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

Garmin Connect 数据查询

前置要求

  • JWT Token(从浏览器获取,有效期约1个月)
  • Python 3.8+

快速查询

python3 scripts/query.py <jwt_token> [日期 YYYY-MM-DD]

不传日期默认查今天。

数据类型

查询字段
步数totalSteps
距离(km)totalDistance / 1000
卡路里activeKilocalories
爬楼层数totalFloorsAscending
睡眠时长sleepingDuration

API 端点

详见 references/api.md

Token 获取

  1. 浏览器打开 https://connect.garmin.cn 并登录
  2. F12 → Application → Cookies → connect.garmin.cn
  3. 找到 JWT_WEB,复制 Value(eyJ... 开头)

注意

JWT 过期后需重新获取。每次查询前检查 Token 有效性。

Comments

Loading comments...