Sync Health to Obsidian
sync_health_to_obsidianExport daily health summaries to Obsidian as markdown notes with Dataview frontmatter, and refresh a dashboard with rolling 7/30-day aggregates. Runs incrementally.
Instructions
Export daily health summaries to Obsidian as per-day markdown notes under {vault}/Lifestyle/Health/ (frontmatter: steps, distance_km, calories, active_minutes, resting_hr, sleep_hours for Dataview), and refresh {vault}/Lifestyle/Health-Dashboard.md with rolling 7/30-day aggregates. Runs incrementally from the last sync by default; set full_sync=true to re-render the whole window. Requires OBSIDIAN_VAULT_PATH to be set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Window size for a full sync (days ending today). Default 30. Ignored when start_date is set. | |
| end_date | No | Explicit end date YYYY-MM-DD. Default today. | |
| full_sync | No | Re-render the whole window from scratch instead of incrementally from the last sync. | |
| start_date | No | Explicit start date YYYY-MM-DD. |