Garmin Health Sync

approved

by fcandi

Sync Garmin Connect health data into your Daily Notes as frontmatter properties. - This plugin has not been manually reviewed by Obsidian staff.

16 stars1,636 downloadsUpdated 2d ago0BSD

English · Deutsch · 中文 · 日本語 · Español · Français

Garmin Health Sync

Sync steps, sleep, heart rate, stress, activities and more from Garmin Connect into Obsidian Daily Notes — as frontmatter properties you can query with Dataview.

Desktop only. This plugin uses Electron's BrowserWindow for Garmin Connect authentication and does not work on mobile.

Note: This plugin uses Garmin Connect's internal web API through an Electron browser session — there is no official third-party API available.

Features

  • Auto-sync on startup — checks the last 7 days and fills in any missing health data
  • Wait-for-note mode — optionally let auto-sync wait until another tool (Templater, Calendar, an external sync) creates the daily note, instead of creating it itself
  • Manual sync — sync any open Daily Note via command palette
  • Backfill — bulk-sync a date range (e.g. the last 3 months)
  • 20+ metrics — steps, sleep score, HRV, stress, body battery, SpO2, weight, and more
  • Activity tracking — each workout appears as a human-readable summary
  • Workout location — reverse-geocoded place name from your first GPS activity
  • Smart detection — automatically picks up your Daily Notes path and format from Periodic Notes or the core Daily Notes plugin
  • Subdirectory support — finds existing Daily Notes in nested folders (e.g. Journal/2024-07/), and creates date-based subfolders when the filename format contains / (e.g. YYYY/YYYY-MM-DDJournal/2026/2026-08-04.md)
  • Language auto-detection — UI language is set from your Obsidian language (EN, DE, ZH, JA, ES, FR)
  • Optional structured data — machine-readable trainings field for advanced Dataview queries
  • Property prefix — optionally adds an ohs_ prefix to all frontmatter properties to avoid naming conflicts with other plugins

Frontmatter Output

Metrics

---
steps: 15185
resting_hr: 69
sleep_score: 81
sleep_duration: 7h 43min
hrv: 39
stress: 30
vo2_max: 48
workout_location: Bad Honnef, Germany
---

Body battery: body_battery is Garmin's charged value, the sum of all body battery gains over the day (mostly the overnight recharge), not the current level. Enable body_battery_min and body_battery_max for the lowest and highest level of the day, which is what the Garmin app shows in its history.

Activities

Each workout is written as a frontmatter key with a summary string:

---
hiking: 8.2 km · 157min · Ø105 bpm · 696 kcal
e_bike: 22.1 km · 65min · Ø112 bpm · 420 kcal
---

Only days with actual workouts get activity keys. The plugin never touches your note content — it only adds or updates frontmatter properties.

Trainings (optional, machine-readable)

Enable "Machine-readable trainings" in settings to add a structured trainings field for Dataview queries:

---
trainings:
  - type: hiking
    category: outdoor
    distance_km: 8.2
    duration_min: 157
    avg_hr: 105
    calories: 696
  - type: e_bike
    category: cycling
    distance_km: 22.1
    duration_min: 65
    avg_hr: 112
    calories: 420
---

Requirements

  • Obsidian Desktop (Windows, macOS, Linux) — the plugin does not work on mobile
  • Garmin account with access to Garmin Connect
  • Daily Notes or Periodic Notes plugin enabled (or configure the path manually in settings)

Installation

From Community Plugins (recommended)

  1. Open Obsidian Settings → Community Plugins → Browse
  2. Search for "Garmin Health Sync"
  3. Install and enable the plugin
  4. Log in to Garmin Connect in the plugin settings

Manual

  1. Download main.js and manifest.json from the latest release
  2. Create a folder .obsidian/plugins/garmin-health-sync/ in your vault
  3. Copy both files into that folder
  4. Enable the plugin in Settings → Community Plugins

Usage

Where notes are stored

The daily notes path is the folder, the daily note format is the filename in moment.js syntax — the same convention as the core Daily Notes plugin. The format itself may contain / to nest notes into date-based subfolders, and square brackets keep text literal:

PathFormatResult
JournalYYYY-MM-DDJournal/2026-08-04.md
JournalYYYY/YYYY-MM-DDJournal/2026/2026-08-04.md
JournalYYYY/YYYY-MM/YYYY-MM-DDJournal/2026/2026-08/2026-08-04.md
JournalYYYY-MM-DD [Workout]Journal/2026-08-04 Workout.md

Missing subfolders are created automatically.

Auto-sync

On every Obsidian startup, the plugin checks the last 7 days and fills in any missing health data automatically. No action needed. By default it creates a daily note when one is missing.

If another tool owns your daily notes (Templater, the Calendar plugin, an external sync), turn off Create daily note when missing in the settings. Auto-sync then waits until a real (non-empty) daily note exists and syncs the moment it appears — empty 0-byte placeholders are ignored. Manual sync and backfill always create missing notes regardless of this setting.

Manual sync

Open a Daily Note and run Garmin Health Sync: Sync current note from the Command Palette (Cmd/Ctrl+P).

Backfill historical data

Have years of Garmin data? You can bulk-sync any date range:

  1. Open the Command Palette (Cmd/Ctrl+P)
  2. Search for "Backfill health data"
  3. Pick a start and end date
  4. The plugin fetches all data for that range with rate-limiting to avoid API throttling

Activity Key Normalization

Garmin's typeKey values are normalized to cleaner canonical keys:

Provider KeyCanonical KeyCategory
e_bike_fitnesse_bikecycling
e_bike_mountaine_mtbcycling
resort_skiing_snowboardingskiingwinter
backcountry_skiing_snowboardingbackcountry_skiingwinter
stand_up_paddleboardingsupwater
fitness_equipmentgym_equipmentgym

All other Garmin keys pass through unchanged (e.g. hiking, running, cycling, swimming, strength_training, yoga, ...).

Activity Categories

Each activity is assigned a category:

CategoryExamples
cyclingcycling, e_bike, e_mtb, mountain_biking, indoor_cycling, road_biking
runningrunning, trail_running, treadmill, ultra_run
walkingwalking, indoor_walking
outdoorhiking, mountaineering, rock_climbing, bouldering
swimmingswimming, pool_swimming, open_water_swimming
winterskiing, backcountry_skiing, cross_country_skiing, snowboarding
watersup, rowing, kayaking, surfing, sailing
gymstrength_training, gym_equipment, elliptical, yoga, pilates, hiit
rackettennis, badminton, squash, table_tennis, pickleball
teamsoccer, basketball, volleyball, rugby
othergolf, meditation, multi_sport

Data & Privacy

This plugin makes network requests to two external services:

  • Garmin Connect — a browser window authenticates with Garmin Connect using your credentials. No password is stored by the plugin. Local plugin data may store Garmin session data, including session cookies, so the plugin can restore the browser session without asking you to log in again. Treat this session data like a login token: its lifetime is controlled by Garmin, and it may be included in backups or sync tools if they include Obsidian plugin data. Using Logout clears the stored Garmin session data on this device.
  • Nominatim (OpenStreetMap) — if the "Workout location" feature is enabled, the GPS coordinates of your first activity are sent to nominatim.openstreetmap.org for reverse geocoding. You can disable this in settings under Workout location.

No data is sent to any other server.

Clipboard: The Sign in via browser login reads the clipboard once — and only when you click Sign in from clipboard — to pick up the one-time login ticket you copied from your browser. It writes to the clipboard only when you click to copy the sign-in link. The clipboard is never accessed in the background.

Development

npm install
npm run dev    # watch mode
npm run build  # production build

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.