🏃 Coros

v0.1.0

COROS 高驰跑步数据获取(跑步专项): - 自动登录 COROS 账号(支持 Token/Cookie 缓存) - 获取 Dashboard(训练状态、负荷分析、最近运动) - 获取活动列表与活动详情(含分圈、天气、训练效果) - 获取训练日程与训练目标汇总 触发词示例: - "查看高驰跑步数据" - "我的...

1· 137·0 current·0 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 doaspx/coros-skill.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "🏃 Coros" (doaspx/coros-skill) from ClawHub.
Skill page: https://clawhub.ai/doaspx/coros-skill
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 coros-skill

ClawHub CLI

Package manager switcher

npx clawhub@latest install coros-skill
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match behavior: the skill logs into COROS (using account/p1/p2 or cookies), reads dashboard, activities, activity details and training schedules, and exposes schedule write operations. The required artifacts (config.json with COROS account hashes and cookies) are proportional to these capabilities.
Instruction Scope
SKILL.md and main.py focus on COROS API calls and local config. The skill caches tokens/cookies to config.json and supports schedule write operations; by default preview/auto_apply=false is used, but the code supports making writes if configured. Users should be aware the skill reads/writes a local config file that contains sensitive data and controls whether writes occur.
Install Mechanism
No install spec (instruction-only with an included Python script). This has low installation risk — nothing is downloaded from arbitrary URLs or installed automatically.
Credentials
The skill does not request unrelated environment variables or external credentials; it expects credentials stored in a local config.json (account, p1/p2 hashes, cookies). Storing secrets in config.json is functional but requires care to avoid accidental exposure.
Persistence & Privilege
always:false and agent-autonomy defaults are normal. The skill persists its own token/cookie/state by writing to config.json (saving token, user_id, saved_cookie). This is limited to its own config file and does not modify other skills or global agent config.
Assessment
This skill appears coherent for reading COROS data, but take these precautions before installing: 1) Keep config.json private — it contains account identifiers, password hashes (p1/p2) and cookies; do not upload it to public registries. 2) By default schedule writes are preview-only, but the skill can perform real writes if you enable auto_apply or change schedule_write settings — review those settings before enabling. 3) Verify network calls go to the expected COROS API domain (teamcnapi.coros.com) and run the code in an isolated environment if you don't trust the source. 4) After testing, rotate credentials if you suspect they were exposed. If you want higher assurance, inspect the full main.py runpath locally (it saves tokens to config.json) or run with demo_mode=true.

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

latestvk970k9jdmm661dkttw9cvnm0jx83eky7
137downloads
1stars
1versions
Updated 1mo ago
v0.1.0
MIT-0

COROS 高驰跑步数据获取 Skill

基于 COROS API 的跑步数据读取与展示工具,面向日常训练复盘。

使用范围

  • 当前环境仅使用 coros 这个运动 Skill。
  • 运动数据相关需求统一走本 Skill(高驰/COROS 跑步数据)。

功能概览

1. 智能登录

  • 支持 account + p1 + p2 登录
  • 支持 Token/Cookie 缓存,减少重复登录
  • 自动保存和恢复登录状态

2. Dashboard 数据

  • 训练状态:短期负荷(ATI)、长期负荷(CTI)、负荷比
  • 最近运动记录
  • 心率数据统计
  • 运动类型统计
  • 本周训练汇总

3. 活动列表

  • 完整的跑步历史记录
  • 显示:日期、名称、距离、时长、配速、心率、训练负荷(TL)
  • 支持分页查询

4. 活动详情

  • 通过 activity/detail/query 获取单次活动完整详情
  • 展示模块:计圈数据、天气、概要数据、训练效果、运动感受
  • 时间字段统一按 HH:MM:SS 展示,便于和网页详情页对齐
  • 当前默认展示“活动列表第一页第一条”的详情(通常是最近一次)

5. 训练日程

  • 训练日程查询
  • 训练目标汇总
  • 支持训练日程新增/更新/删除(training/schedule/update
  • 内置安全模式:默认仅预览,确认后可开启真实写入

运行方式

OpenClaw 对话触发

示例(可直接复制):

  • 查看我的高驰跑步数据
  • 我的跑步记录
  • 高驰运动分析
  • 最近跑步怎么样
  • 今天跑步了吗
  • 看最近一次跑步详情
  • 帮我复盘今天这次跑步

命令行运行

python3 main.py

配置文件

config.json 中配置账号与登录上下文:

{
  "coros": {
    "account": "your_email@163.com",
    "p1": "$2b$10$xxx",
    "p2": "$2b$10$xxx"
  },
  "cookie": "_c_WBKFRo=xxx; _nb_ioWEgULi=",
  "demo_mode": false
}

发布到 clawhub.ai 时:

  • 使用 .clawhubignore 排除 config.jsonapi.md.claude/
  • config.example.json 作为公开示例配置
  • 本地仍保留 config.json 以保证日常运行不受影响

API 端点

功能API
登录POST /account/login
Dashboard详情GET /dashboard/detail/query
Dashboard汇总GET /dashboard/query
周期纪录GET /dashboard/queryCycleRecord
活动列表GET /activity/query
活动详情POST /activity/detail/query
训练日程GET /training/schedule/query
日程汇总GET /training/schedule/querysum
估算训练POST /training/program/estimate
计算训练POST /training/program/calculate
新增/更新/删除日程POST /training/schedule/update
训练计划列表GET /training/program/list

Comments

Loading comments...