Tasker plugin to interface with Health Connect on Android
- See HealthConnectRepository and HealthConnectDataTypes for all data types, units, and JSON keys.
- Retrieve Raw Health Records for the last X time period as JSON.
[
{
"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"
}
]
- Retrieve Aggregate data for the last X days as JSON.
[
{
"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
}
]
- 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
- 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
- Clone the repository:
git clone https://github.com/RafhaanShah/TaskerHealthConnect
- Build with gradle:
./gradlew assembleDebug
- Or just open in Android Studio and click run
- Download the Health Connect Toolbox to read and write test data
- Activities will have additional debug buttons to log output info on debug builds
- 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