Git Product home page Git Product logo

health-auto-export's People

Contributors

jlongman avatar lybron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

health-auto-export's Issues

[BUG] -

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:

  1. Create a new Automation with type MQTT
  2. Set IP, port, topic, user, password
  3. Save
  4. Try Export Manually

Expected behavior
Normally, MQTT connection must use the user and password , but it seems not.

** iOS/watchOS : **

  • Device: Iphone 11 Pro
  • OS: IOS
  • Version 15.6
  • App Version: 6.3

[Feature Request] - JSON export as array

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"
    }
  }
]

[Feature Request] - adding source of data points

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.

[Feature Request] -

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

[Feature Request] Add support for missing "Alcohol Consumption" metric

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 :)

[BUG] - Workout Automation Fails When No Data Is Available

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:

  • Automation Type - Google
  • Data Type - Workouts
  • Export format - JSON
  • Period - Day
  • Aggregation - Minutes
  • Quantity - 1
  • Interval - Hours

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

IMG_357D771CC07D-1

Interval where I workout every day

IMG_C0D01FEB8112-1

iOS/watchOS (please complete the following information):

  • Device: iPhone 13
  • OS: iOS 17.1.2
  • Version - TODO - What did you want me to include here?
  • App Version: 8.0.11

Additional context
Add any other context about the problem here.

[Feature Request] - Add actual moving time for workout

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

  • iOS:
    • App Version: 6.2.3

[Feature Request] -

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):

    • Device: [e.g. MacBook Air (M1, 2020)]
    • OS: [e.g. macOS]
    • Version [e.g. 11.4]
    • App Version: [e.g 2.0]
  • iOS/watchOS (optional):

    • Device: [e.g. iPhone6]
    • OS: [e.g. iOS8.1]
    • Version [e.g. 22]
    • App Version: [e.g. 5.0]

[BUG] - Automatic export function does not work automatically

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

[Feature Request] - How to install sync cadence via deep link ?

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

  • iOS:
    • Device: Iphone 11
    • OS: 15.4
    • App Version: 6.2.2

[Feature Request] - Add metric "location name" for workouts

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.

[BUG] - Weird values Sleep Time

Describe the bug
the sleep data is exporting in weird values .
Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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):

  • Device: [e.g. MacBook Air (M1, 2020)]
  • OS: [e.g. macOS]
  • Version [e.g. 11.4]
  • App Version: [e.g 2.0]

iOS/watchOS (please complete the following information):

  • Device: ipohne 12 max
  • OS: [e.g. iOS8.1]
  • Version [e.g. 22]
  • App Version: [e.g. 5.0]

Additional context
Add any other context about the problem here.

Complete Data-Model of JSON Export

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.