← 返回
数据分析 中文

Samsung Health

Analyze Samsung Health Connect data synced to Google Drive. Use for health tracking queries like sleep analysis, step counting, heart rate monitoring, SpO2 b...
分析同步至Google Drive的三星健康数据,支持睡眠分析、计步、心率、血氧等健康追踪查询。
mudgesbot
数据分析 clawhub v1.0.1 1 版本 99913.6 Key: 无需
★ 0
Stars
📥 1,157
下载
💾 9
安装
1
版本
#fitness#health#heart-rate#latest#samsung#sleep#spo2#steps

概述

Samsung Health Connect CLI

Analyze health data from Samsung Health Connect exported to Google Drive.

Prerequisites

  • Samsung Galaxy Watch or Galaxy Ring with Samsung Health
  • Samsung Health Connect app with Google Drive backup enabled
  • gog CLI for Google Drive access (part of Clawdbot)

Installation

cd /path/to/workspace/projects
git clone https://github.com/mudgesbot/samsung-health-skill.git
cd samsung-health-skill
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

Configuration

Create ~/.config/samsung-health/config.yaml:

google_drive:
  folder_id: "YOUR_FOLDER_ID"      # From Google Drive URL
  account: "your.email@gmail.com"  # Google account for gog CLI
  file_name: "Health Connect.zip"

goals:
  daily_steps: 10000
  sleep_hours: 8

timezone: "Europe/Copenhagen"

Commands

All commands require activating the venv first:

cd /path/to/samsung-health-skill && source .venv/bin/activate

Sync Data

shealth sync              # Download latest from Google Drive
shealth sync --force      # Force re-download

Quick Daily View

shealth today             # Today's snapshot (steps, sleep, HR, SpO2)

Status

shealth status            # Data freshness, record counts, date range

Sleep Analysis

shealth sleep             # Last 7 days
shealth sleep --days 14   # Custom period

Shows: duration, stage breakdown (Light/Deep/REM/Awake), trends.

Step Tracking

shealth steps             # Last 7 days
shealth steps --week      # Weekly view
shealth steps --month     # Monthly view

Shows: daily counts, goal progress, streaks.

Heart Rate

shealth heart             # Last 7 days
shealth heart --days 14   # Custom period

Shows: average, min/max, daily trends.

Blood Oxygen (SpO2)

shealth spo2              # Last 7 days
shealth spo2 --days 14    # Custom period

Shows: average, range, trend. Normal: 95-100%.

Workouts

shealth workout           # Last 30 days
shealth workout --days 90 # Custom period

Shows: session count, duration, types (Walking, Running, Swimming, etc.)

Health Report

shealth report            # Comprehensive 7-day summary
shealth report --days 14  # Custom period

Shows: Energy Score, sleep summary, activity, heart rate.

JSON Output

Add --json flag to any command for machine-readable output:

shealth --json today
shealth --json sleep --days 7
shealth --json report

Sleep Stage Codes

CodeStage
-------------
1Light Sleep
4Deep Sleep
5Awake
6REM Sleep

Exercise Types

CodeType
------------
53Walking
33Running
61Hiking
21Cycling
58Swimming
4Weight Training
66Yoga

Troubleshooting

"Database not found" — Run shealth sync first.

"Google Drive not configured" — Create config.yaml with folder_id and account.

SpO2/HRV shows 0 records — Requires Galaxy Watch 4+ or Galaxy Ring; may need enabling in Samsung Health settings.

Source

GitHub: https://github.com/mudgesbot/samsung-health-skill

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 07:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,905
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 166 📥 60,283
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 199 📥 65,276