Skip to content

Add test_rhr: app's measured resting HR alongside daily rhr aggregate - #56

Merged
cygnusb merged 1 commit into
mainfrom
feat/test-rhr
Aug 13, 2026
Merged

cygnusb merged 1 commit into
mainfrom
feat/test-rhr

Conversation

@cygnusb

@cygnusb cygnusb commented Aug 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • The Coros /analyse/dayDetail/query response carries two resting-HR fields: rhr (daily aggregate, web dashboard value) and testRhr (measured resting HR — the value the Coros app displays). The parser dropped testRhr, so MCP data could not be matched 1:1 against the app (verified live: app showed 49/52, rhr was 56/46).
  • DailyRecord now stores both (rhr, test_rhr); _parse_daily_record() picks up testRhr.
  • The get_daily_metrics tool description documents both fields and recommends test_rhr for app comparisons; CLAUDE.md gets a matching section.
  • Cache needs no migration (JSON blob); days cached before this change have test_rhr: null until their range is re-synced.

Verification

  • 3 new tests (parse both values, missing testRhr → None, JSON round-trip); full suite 228 passed, ruff + mypy clean.
  • Live API check: test_rhr = 51/50/52/49 for Aug 10–13, matching the app exactly.

🤖 Generated with Claude Code

…ggregate

The /analyse/dayDetail/query response carries two resting-HR fields: rhr
(daily aggregate shown in the web dashboard) and testRhr (measured value
the Coros app displays). The parser previously dropped testRhr, so the MCP
data could not be matched 1:1 against the app.

DailyRecord now stores both; the get_daily_metrics tool description
documents the semantics and recommends test_rhr for app comparisons.
Cached days from before this change have test_rhr null until re-synced.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@cygnusb
cygnusb merged commit 081ce83 into main Aug 13, 2026
4 checks passed
@cygnusb
cygnusb deleted the feat/test-rhr branch August 13, 2026 07:00
@cygnusb cygnusb mentioned this pull request Aug 28, 2026
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.

1 participant