Announcement

Collapse
No announcement yet.

Health Api Overlapping Data wellness-api/dailies timeOffsetHeartRateSamples

Collapse
X
  • Time
  • Show
Clear All
new posts

  • Health Api Overlapping Data wellness-api/dailies timeOffsetHeartRateSamples


    For the endpoint below, I'm getting summaries which have overlapping data for the timeOffsetHeartRateSamples, and it looks very strange.
    Endpoint: healthapi.garmin.com/wellness-api/rest/dailies

    One summary covers a 40 hour period, then the very next summary covers an 11 hour period that overlaps with the previous. The overlapping timeOffsetHeartRateSamples data is drastically different between the overlapping periods.

    Summary One:
    Code:
    {
        "SummaryId": "xxx1",
        "StartTimeInSeconds": 1530370800, /* Saturday, June 30, 2018 3:00:00 PM */
        "StartTimeOffsetInSeconds": 32400, /* +9 hours = Sunday, July 1, 2018 12:00:00 AM */
        ...
        "TimeOffsetHeartRateSamples": {
            "15": 70,
            ...
            "144000": 93 /* last sample: Monday, July 2, 2018 4:00:00 PM */
        }
    }
    Summary Two:
    Code:
    {
        "SummaryId": "xxx2",
        "StartTimeInSeconds": 1530514800, /* Monday, July 2, 2018 7:00:00 AM */
        "StartTimeOffsetInSeconds": -25200, /* -7 hours = Monday, July 2, 2018 12:00:00 AM */
        "TimeOffsetHeartRateSamples": {
            "15": 94, /* Monday, July 2, 2018 12:00:15 AM */
            ...
            "42540": 112 /* last sample: Monday, July 2, 2018 11:49:00 AM */
        }
    }
    Any ideas why this might happen? Thanks!
    Last edited by gcampbell; 08-08-2018, 04:10 PM.
Working...
X