Skip to content

Display live Health Connect data on Live screen #104

@fiddur

Description

@fiddur

Summary

Enhance the Live screen to show real-time data from Health Connect, not just data from connected BLE sensors. This would provide a more complete view of the user's current health metrics.

Proposed Features

1. Device Step Count

  • Display today's total step count from Health Connect
  • This captures steps from:
    • Phone's built-in step counter
    • Other fitness apps that write to Health Connect
    • Watch/wearable data synced to Health Connect
  • Update periodically (e.g., every 30 seconds)

2. Last Heart Rate from Health Connect

  • Show the most recent HR reading from Health Connect (if no BLE sensor connected)
  • Display how long ago the reading was taken (e.g., "72 BPM • 5 min ago")
  • Useful when user has a watch that syncs HR to Health Connect but isn't using a BLE chest strap

UI Considerations

  • Could show as a separate "Health Connect" section below connected BLE devices
  • Or integrate into the existing display when no BLE device of that type is connected
  • Should clearly indicate the data source (Health Connect vs live BLE)

Technical Notes

  • Requires Health Connect READ permissions (in addition to existing WRITE permissions)
  • Use healthConnectClient.readRecords() to query recent data
  • Consider battery impact of polling frequency

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions