Please refer to my blog post for more details.
- Clone this repo
- Copy .env.example to .env
- Update the .env variables
docker compose up -d- Connect to InfluxDB: http://hostname:8086
- Connect to Grafana: http://hostname:3000
- InfluxDB: Generate a write-only API key for your bucket (for Tasker)
- InfluxDB: Generate a read-only API key for your bucket (for Grafana)
- Grafana: Add the InfluxDB bucket as a data source. You will need to set a custom HTTP header: "Authorization": "Token YOUR_API_TOKEN". Make sure to include "Token ".
- You should be connected and ready to set-up your first Grafana dashboards!
- Install Health Connect
- Connect Health Connect to Samsung Health, Google Fit, Withings, etc.
- Install Tasker
- Install TaskerHealthConnect plugin
- Import the taskerTemplate.conf into Tasker
- Download the healthConnectExport.js file and update the Path in the Tasker A2 task.
- Generate a write-only API key for your InfluxDB bucket and add it as a Tasker variable %INFLUXDB_API_TOKEN
- Add a Tasker variable %INFLUXDB_API, it should be formatted: "HOSTNAME:8086/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=ms
- Run the tasker task to verify it works and set it up to run on a schedule
Once installed, you should be able to run the Tasker task to push your Health Connect data to InfluxDB. You can then query this data in Grafana to create your dashboards. I'll go into more details about creating useful dashboards on my blog.