跳到正文
TakoAPI
返回技能列表

garmin-cli

由 voydz 提供

Health & Fitness
1.4k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Access Garmin Connect health, fitness, and activity data via a non-interactive CLI.

描述

该技能的功能

Provides CLI access to Garmin Connect health and fitness data via the `gc` command. Covers activities, daily health metrics, sleep, stress, body battery, workouts, devices, and raw API endpoints. Supports JSON output for programmatic use.

Garmin Connect has no official public API, so this CLI is the only way to script or automate access to Garmin data without a browser.

何时使用

  • Querying today's step count from a shell script
  • Downloading a recent run as a GPX file for route analysis
  • Checking HRV and training readiness before a workout
  • Exporting last week's sleep data to a file
  • Creating and uploading structured workout plans programmatically

示例工作流

输入

User asks: Show me my sleep and body battery data from yesterday as JSON

智能体
  1. 1

    Run gc sleep yesterday --format json to fetch sleep stages and duration

  2. 2

    Run gc battery yesterday --format json to fetch body battery levels and events

  3. 3

    Return both JSON responses to the user

输出

Sleep stages, duration, and score alongside body battery levels and drain events for the previous day

前置要求

  • Garmin Connect account
  • garmin-cli binary installed via Homebrew tap: `brew tap voydz/homebrew-tap && brew install garmin-cli`

安装

clawhub install voydz/garmin-cli

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接