Skip to content

Use PulseLoop without a ring: Health Connect as the data source - #32

Merged
gabrielbr merged 1 commit into
mainfrom
ccr-67ccb970-dqwwqd
Oct 22, 2026
Merged

gabrielbr merged 1 commit into
mainfrom
ccr-67ccb970-dqwwqd

Conversation

@gabrielbr

Copy link
Copy Markdown
Owner

People who wear an Oura, Galaxy Ring, Fitbit or watch can now use PulseLoop without pairing a ring. PulseLoop reads that device's app from Health Connect instead.

  • Entry points:
    • Onboarding: "I wear an Oura or another device".
    • Settings → Use without a ring (settings/hc-source).
  • Import:
    • Reads only the chosen app (DataOrigin filter): HR, HRV, SpO2, respiratory rate, sleep stages, steps/distance (15-min aggregates), daily calories, workouts and periods.
    • Goes through EventPersistenceSubscriber.ingest, so ids, tombstones and the sleep reconcile behave as they do for a ring.
    • First pass reads 30 days. Later passes run hourly and on every foreground, overlapping the previous one by 3 days.
  • Export: while the mode is on, every export unit is held back for all time through ExportPause. Imported workouts are skipped by id prefix.
  • Exclusive with a ring: the mode can't be turned on while a ring is paired, and DeviceIdentified turns it off.
  • UI:
    • The header pill shows the source app.
    • The Settings hero card shows the source and its last import.
    • Vitals capabilities default to HR/SpO2/HRV/sleep/steps.
  • Docs: docs/health-connect-source.md and a new AGENTS.md section.
  • Tests: HealthConnectSourceTest.

Not yet run against a real Oura account.


Generated by Claude Code

People who wear an Oura, Galaxy Ring, Fitbit or watch can pick that app in
onboarding ("I wear an Oura or another device") or Settings -> Use without
a ring. PulseLoop reads only that app from Health Connect, hourly and on
every foreground, and stores heart rate, HRV, SpO2, respiratory rate, sleep
stages, steps, distance, calories, workouts and periods through the ring's
own persistence path, so every screen, the coach and the insights work.

While it is on, the Health Connect export holds back every type so the
source's data is never written back under PulseLoop's name. Pairing a ring
turns the mode off. Design in docs/health-connect-source.md.

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
@gabrielbr
gabrielbr merged commit 1a09463 into main Oct 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants