lybron / health-auto-export Goto Github PK
View Code? Open in Web Editor NEWThis repository provides documentation for the API Export feature of Health Auto Export.
Home Page: https://healthyapps.dev
This repository provides documentation for the API Export feature of Health Auto Export.
Home Page: https://healthyapps.dev
Description
Problem with authentication on Home Assistant Addon Mosquito Broker (v6.1.2) for MQTT Export.
In mosquito Broker logs, have the following :
1660474197: New connection from 192.168.1.253:60562 on port 1883.
error: received null username or password for unpwd check
But, the user and password are well set in the application. All my other devices using mqtt with authentication have no problems.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Normally, MQTT connection must use the user and password , but it seems not.
** iOS/watchOS : **
I'm trying to send data directly to axiom via their ingest endpoint. This doesnt work since it's expecting an array of objects instead of an object with fields.
An example of how axiom ingests data.
[
{
"_time":"2021-02-04T03:11:23.222Z",
"data":{"key1":"value1","key2":"value2"}
},
{
"data":{"key3":"value3"},
"attributes":{"key4":"value4"}
},
{
"tags": {
"server": "aws",
"source": "wordpress"
}
}
]
In order to show graphs based on the Activity Rings, I'd like to export metrics provided by the HKActivitySummary class so that I can see each of my 3 goals and what percentages I achieved on a particular day.
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:
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.
I found this project quite interesting to start with connected health initiatives
In order to be aligned with IoT trends, should be interesting to add MQTT connectivity capability so we can interface with MQTT Brokers to process data.
Output can still be JSON format
Thanks
Apple has introduced a new metric in one of the recent HealthKit updates. It's called Alcohol Consumption
, where the number of consumed standard drinks can be logged. (Note that it's different to Blood Alcohol Content
metric, which is already supported by the app)
Please add the new metric to the list of exportable metrics :)
Describe the bug
On automation tab, manually sync workout on a time interval that includes days without workout. Instead of exporting data when available on the time interval, the request terminates.
Steps To Reproduce
I manually exported the data using Automations. My configuration:
I then selected a time interval that includes a day where I didn't work out. The error is reported at the bottom of the view.
Expected behavior
I expected that the sync would succeed and only include days where I worked out.
Screenshots
Interval that includes date without workout
Interval where I workout every day
iOS/watchOS (please complete the following information):
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
I did a run that has the following time span: 18:02 until 18:37 o’clock (so 35 minutes). This is the time span that includes actual running and also pauses (e.g. if I’m on a street and paused the run due to traffic lights). The total running time (without pauses) is at around 34 minutes. The problem is that I cannot access the total running time from the API, thus I cannot correctly calculate things like pace information etc.
Describe the solution you'd like
The API should somehow return the total active workout time.
Device Information
Is your feature request related to a problem? Please describe.
I am using three different Apple Watches to collect data from three different individuals. When setting up auto-sync to synchronize this data to my Google Drive, I choose the preferred device, but the same preference gets applied to the other two auto-sync options as well. It seems that the auto-sync feature only selects one preferred source, preventing me from exporting the data from each device individually. Consequently, when I export the heart rate data, all three devices are listed as sources within it.
Describe the solution you'd like
I want to ensure that the preferred devices do not change and remain consistent, sticking to the device currently connected with the iPhone when I export the data. Additionally, if possible, could you introduce AWS S3 bucket upload using the config key?
Mac (optional):
iOS/watchOS (optional):
Hi, unfortunately the auto export function does not work automatically.
If I wait the set time interval until the message "Your automation has been executed" appears, the activity log shows the status "Succeeded" but no data arrives in my Home Assistant.
I tried it with an automation with the iOS app Shortcuts but the same problem here too. I get the message "Your automation has been executed" on my Lockscreen and inside the Auto Export app I can see in the activity log the status "Succeeded" but no data arrives in my Home Assistant.
If I open my automation directly in the Auto Export app and use the green export button, it works fine.
I use the iOS-App version 8.1.8 with iOS 17.4.1
Is your feature request related to a problem? Please describe.
How to install sync cadence via deep link?
com.HealthExport://automation?url=https://awesomeapi.com/user?
xyz&name=AwesomeAPI&headers=Authorization,123456Secret&format=json&period=previous7Days&interval=minutes
Describe the solution you'd like
It would be great if I could specify this by simply passing the value:
com.HealthExport://automation?...&cadence=minutes,5
Device Information
Is your feature request related to a problem? Please describe.
I would love to be able to access the location name from the API functionality, e.g. for runs.
Describe the solution you'd like
Add a "location" key to the API response for a workout, if available.
Are you planning to add medication data to the export? It would be a nice addition, thanks.
Describe the bug
the sleep data is exporting in weird values .
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
sleep time is and analysis are not correct. values of Sleep Analysis [In Bed] (hr) are 808.742.334.249.947. The rest is 0. I guess the rest of the analysis could have a problem independent to the AutoExport.
Screenshots
If applicable, add screenshots to help explain your problem.
Mac (please complete the following information):
iOS/watchOS (please complete the following information):
Additional context
Add any other context about the problem here.
It would really be helpful, to be able to set a specific (very long) timeout for manual sync.
Hello there and thank you for enabling access to apple health data via api with your app. I had no problems setting up the app, a secure api interface and got it up and running within 5 minutes.
Now I want to parse the JSON-Data to a corresponding PHP-Class with the ability to save and evaluate them. The metrics itself seem to be easy to adapt, but the data within them are of course different from each other. I checked apple's dev docs, but the orginal data seems to be proprietary and different from the exported JSON objects. Also, in the example data (for testing the connection) most data fields are empty.
Can you provide a data model (or full example) of the JSON Export from your app?
Also, Iam lazy by nature, so I don't want to write 80 classes with 80 more data classes. Do you have any suggestions on how to keep the structure simple and not lose the ability to adapt/upgrade, when the model of the app has changed i.e. in future versions? My idea is to have 2 classes to start with. Like a metrics class (with the name as UID) and a data class. I would set aside the workout and other categories at first.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.