Skip to content

RafhaanShah/TaskerHealthConnect

Repository files navigation

Health Connect Plugin for Tasker

Tasker plugin to interface with Health Connect on Android

Current Features

[
  {
    "diastolic": 13,
    "measurementLocation": 3,
    "systolic": 59,
    "time": "2024-04-27T13:02:50.265Z"
  },
  {
    "diastolic": 134,
    "measurementLocation": 3,
    "systolic": 51,
    "time": "2024-04-27T14:02:50.265Z"
  },
  {
    "diastolic": 34,
    "measurementLocation": 3,
    "systolic": 54,
    "time": "2024-04-27T15:02:50.265Z"
  }
]
[
  {
    "startTime":"2024-02-06T16:00:36.910Z",
    "endTime":"2024-02-07T16:00:36.910Z",
    "FloorsClimbedRecord_FLOORS_CLIMBED_TOTAL": 5.75,
    "ActiveCaloriesBurnedRecord_ACTIVE_CALORIES_TOTAL": 1532.1092
  },
  {
    "startTime":"2024-02-05T16:00:36.910Z",
    "endTime":"2024-02-06T16:00:36.910Z",
    "HeartRateRecord_BPM_AVG": 69,
    "StepsRecord_COUNT_TOTAL": 19822
  }
]

Installation

  • Updates are currently released only on GitHub
  • Get the latest APK from the releases page
  • Google Play Protect may complain about untrusted applications because the APK is currently only signed with Android Debug Certificates
  • Check release / update notes as the plugin is not considered stable, and breaking API changes are to be expected

Usage

  • Run the app, it will check to make sure that Health Connect is installed and will prompt for required permissions
  • Open Tasker, and look for 'Tasker Health Connect' inside Action -> Plugins

Building

  • Clone the repository: git clone https://github.com/RafhaanShah/TaskerHealthConnect
  • Build with gradle: ./gradlew assembleDebug
  • Or just open in Android Studio and click run

Testing

  • Download the Health Connect Toolbox to read and write test data
  • Activities will have additional debug buttons to log output info on debug builds

Issues / Troubleshooting

  • This plugin simply reads data from Health Connect and provides it to Tasker
  • It does not have anything to do with any data from any other source
  • It does not modify or manipulate this data in any way except for unit conversions, which you can see the implementation of in HealthConnectRepository
  • To view your existing Health Connect data, use the Health Connect Toolbox

Contributing / Feature Requests

  • Contributions via pull requests are welcome!
  • Health Connect documentation can be found here
  • Tasker plugin documentation can be found here
  • For feature requests please make a GitHub issue here with details

License

MIT