Lybron / health-auto-export

This repository provides documentation for the API Export feature of Health Auto Export.
https://healthyapps.dev
112 stars 5 forks source link

[Feature Request] - adding source of data points #7

Closed gedankenstuecke closed 8 months ago

gedankenstuecke commented 2 years ago

Is your feature request related to a problem? Please describe. Apple Health can be stored to collect data from a number of different sources, some of which can write the same types of data. E.g. in my specific use case I use two wearables – an Apple Watch and an Oura Ring – both devices deposit data on heart rate, activity, steps etc. into Apple Health.

Inside Apple Health itself this isn't an issue as you can order the data sources and if it gets competing claims the top priority data source will win out. Unfortunately health-auto-export currently doesn't seem to export the data source for each observation along with the actual observations and doesn't take them into account when aggregating.

Which means that in my exports I can not distinguish where the data comes from and in particular many aggregates will be off by a factor of ~2x.

Describe the solution you'd like I think the ideal solution would be to keep track of the data source while the export in two ways:

  1. Provide the data source in the non-aggregated exports
  2. When aggregating data, do so not only by the time period but also by the source, which would allow to still distinguish the sources after the fact and gives the user the option to decide whether to merge observations or not.

Additional context I've largely played around with the API export function of the app, but from a brief check it seems that this also affects the other automated backups as well as manual exports.

UncleGravity commented 1 year ago

Is there any update on this feature? This would be a huge time saver, and basically the only thing preventing me from using the app. For now I'm forced to do manual exports straight from the apple health app if I want to see the data source.

Lybron commented 8 months ago

Over the past few months, I've added the ability to select a preferred data source for each health metric, and source data is exported.

Let me know if there are any further questions or issues.

Lybron commented 8 months ago

Over the past few months, I've added the ability to select a preferred data source for each health metric, and source data is exported.

Let me know if there are any further questions or issues.

gedankenstuecke commented 8 months ago

That's really great! I see that in the custom configs/automations there appears a "preferred sources" item in the list of options but I can't click on it or interact with it in any case? Am I missing something? :)