cozie-app / cozie-apple

https://cozie-apple.app
GNU Lesser General Public License v3.0
15 stars 9 forks source link

Read API for time-series data #42

Closed mariofrei closed 1 year ago

mariofrei commented 2 years ago

Is your feature request related to a problem? Please describe. Currently, time-series data retrieved using HealthKit (db-prefix "ts_") cannot be retrieved through a public API. AWS Lambda functions have a response payload limit of 6MB. Returning time-series data as JSON exceeds that limit, even if the data covers only a few days.

Describe the solution you'd like There should be a way for Apple Store users to retrieve the time-series data without manual intervention from the admins.

Describe alternatives you've considered Retrieve data directly from InfluxDB. However, this is not feasible for people that are not part of the development team.

Additional context -

mariofrei commented 1 year ago

This issue has been solved (https://github.com/cozie-app/cozie-apple/commit/af76f8423a2cfe54f43bd9c937a0044faac62338)