garmin-connectGarmin Connect integration for Clawdbot: sync fitness data (steps, HR, calories, workouts, sleep) every 5 minutes using OAuth.
Install via ClawdBot CLI:
clawdbot install Rayleigh3105/garmin-connectSync all your Garmin fitness data to Clawdbot:
pip install -r requirements.txt
python3 scripts/garmin-auth.py your-email@gmail.com your-password
This saves your OAuth session to ~/.garth/session.json β fully local and secure.
python3 scripts/garmin-sync.py
You should see JSON output with today's stats.
Add to your crontab:
*/5 * * * * /home/user/garmin-connect-clawdbot/scripts/garmin-cron.sh
Or manually:
*/5 * * * * python3 /home/user/garmin-connect-clawdbot/scripts/garmin-sync.py ~/.clawdbot/.garmin-cache.json
Import and use in your scripts:
from scripts.garmin_formatter import format_all, get_as_dict
# Get all formatted data
print(format_all())
# Or get raw dict
data = get_as_dict()
print(f"Steps today: {data['summary']['steps']}")
β OAuth-based (secure, no password storage)
β All metrics: activity, sleep, workouts
β Local caching (fast access)
β Cron-friendly (5-minute intervals)
β Easy Clawdbot integration
β Multi-user support
summary)steps: Daily step countheart_rate_resting: Resting heart rate (bpm)calories: Total calories burnedactive_minutes: Intensity minutesdistance_km: Distance traveledsleep)duration_hours: Total sleep timeduration_minutes: Sleep in minutesquality_percent: Sleep quality score (0-100)deep_sleep_hours: Deep sleep durationrem_sleep_hours: REM sleep durationlight_sleep_hours: Light sleep durationawake_minutes: Time awake during sleepworkouts)For each recent workout:
type: Activity type (Running, Cycling, etc.)name: Activity namedistance_km: Distance traveledduration_minutes: Duration of activitycalories: Calories burnedheart_rate_avg: Average heart rateheart_rate_max: Max heart rateBy default, data is cached at: ~/.clawdbot/.garmin-cache.json
Customize with:
python3 scripts/garmin-sync.py /custom/path/cache.json
| File | Purpose |
|------|---------|
| garmin-auth.py | OAuth setup (run once) |
| garmin-sync.py | Main sync logic (run every 5 min) |
| garmin-formatter.py | Format data for display |
| garmin-cron.sh | Cron wrapper script |
| requirements.txt | Python dependencies |
garmin-sync.py againchmod +x scripts/garmin-cron.sh
chmod +x scripts/garmin-sync.py
chmod +x scripts/garmin-auth.py
Run garmin-sync.py at least once to create cache:
python3 scripts/garmin-sync.py
from scripts.garmin_formatter import format_all, get_as_dict
# Get formatted output
print(format_all())
# Get raw data
data = get_as_dict()
if data:
print(f"Sleep: {data['sleep']['duration_hours']}h")
print(f"Steps: {data['summary']['steps']:,}")
MIT β Use, fork, modify freely.
Made for Clawdbot | Available on ClawdHub
Generated Mar 1, 2026
Individuals can automatically sync their Garmin fitness data to Clawdbot every 5 minutes, creating a real-time personal health dashboard. This allows users to monitor daily activity, sleep quality, and workout metrics without manual input, ideal for fitness enthusiasts tracking progress or health-conscious individuals managing wellness goals.
Companies can integrate this skill into employee wellness platforms to aggregate anonymized fitness data from Garmin devices. It enables tracking of team activity levels, sleep patterns, and workout participation, helping HR departments design targeted wellness initiatives, reduce healthcare costs, and boost employee engagement through gamified challenges.
Healthcare providers can use this skill to automatically collect patient fitness data from Garmin devices via Clawdbot, supporting remote monitoring for conditions like obesity, hypertension, or post-operative recovery. The 5-minute sync ensures timely updates on steps, heart rate, and sleep, aiding in personalized treatment plans and early intervention alerts.
Personal trainers and fitness coaches can leverage this skill to sync client data from Garmin devices into Clawdbot for automated analysis. It provides real-time insights into daily activity, workout performance, and sleep recovery, allowing coaches to tailor training programs, set goals, and offer feedback without requiring manual client reports.
Academic or clinical researchers can employ this skill to aggregate fitness data from study participants using Garmin devices, automating data collection into Clawdbot for analysis. The local caching and cron-based sync ensure reliable, frequent updates on metrics like steps, heart rate, and sleep, facilitating large-scale studies on physical activity or sleep patterns.
Offer a premium service where users pay a monthly fee to access advanced analytics, trends, and insights derived from their synced Garmin data on Clawdbot. Revenue is generated through tiered subscriptions, with features like personalized health reports, goal tracking, and integration with other health apps, targeting fitness enthusiasts and wellness-focused consumers.
License this skill to corporations, healthcare providers, or fitness companies for integration into their existing platforms, such as employee wellness apps or telehealth systems. Revenue comes from one-time setup fees and annual licensing contracts, with customization options for data handling, security compliance, and scalable user management to meet enterprise needs.
Provide basic syncing and data access for free to attract users, then monetize through in-app purchases or upgrades to premium features like historical data analysis, export capabilities, or API access for developers. Revenue is generated from a small percentage of users converting to paid plans, leveraging the open-source nature to build a community and drive adoption.
π¬ Integration Tip
Ensure OAuth authentication is correctly set up by running the provided script and disabling 2FA if needed, then test the sync manually before configuring the cron job for automated updates.
Plan, focus, and complete work with energy management, time blocking, and context-specific productivity systems.
Build habits with streaks, reminders, and progress visualization
Comprehensive AI-assisted therapeutic support framework with CBT, ACT, DBT, MI, session notes CLI, and crisis protocols.
iOS HealthKit data sync CLI commands and patterns. Use when working with healthsync CLI, fetching Apple Health data (steps, heart rate, sleep, workouts), pairing iOS devices over local network, or understanding the iOS Health Sync project architecture including mTLS certificate pinning, Keychain storage, and audit logging.
Retrieve and summarize health, sleep, activity, readiness, and biometric data from the Oura Ring API via a command-line interface.
Load and analyze Strava activities, stats, and workouts using the Strava API