Snippets

Created by Steven Santa Maria last modified
// Fitbit
{
    "createdAt": "2019-06-20T02:35:10.301Z",
    "day": "2019-06-13",
    "efficiency": 96,
    "endTime": "2019-06-13T09:57:00.000Z",
    "humanId": "67e214b80544d0c947eafcd0f05953dd",
    "id": "5d0af0de1dff1401006727aa",
    "mainSleep": true,
    "numberOfWakeups": 23,
    "source": "fitbit",
    "startTime": "2019-06-13T03:09:00.000Z",
    "timeAfterWakeup": 0,
    "timeAsleep": 352,
    "timeAwake": 56,
    "timeInBed": 408,
    "timeToFallAsleep": 0,
    "tzOffset": "-05:00",
    "updatedAt": "2019-06-20T02:35:10.301Z",
    "userId": "5d092a9fcbacae3640b7274c"
}

// Garmin
{
    "createdAt": "2019-06-13T17:27:51.497Z",
    "day": "2019-06-13",
    "efficiency": 0,
    "endTime": "2019-06-13T11:45:00.000Z",
    "humanId": "fa17716544af3c81c46191c956867727",
    "id": "5d02879720f17c0100bdf372",
    "mainSleep": true,
    "numberOfWakeups": 3,
    "source": "garmin",
    "startTime": "2019-06-13T03:03:00.000Z",
    "timeAfterWakeup": 0,
    "timeAsleep": 522,
    "timeAwake": 13,
    "timeInBed": 522,
    "timeToFallAsleep": 0,
    "tzOffset": "-04:00",
    "updatedAt": "2019-06-14T00:12:51.574Z",
    "userId": "5b4d6b1d0c84016e6588d246"
}

// Withings
{
    "createdAt": "2019-06-29T15:46:48.424Z",
    "day": "2019-06-29",
    "efficiency": 0,
    "endTime": "2019-06-29T14:48:00.000Z",
    "humanId": "bf76aa4aaf1fbd4e9ddc4848666c0d15",
    "id": "5d1787e8d5806b0100107706",
    "mainSleep": true,
    "numberOfWakeups": 6,
    "source": "withings",
    "startTime": "2019-06-29T02:11:00.000Z",
    "timeAfterWakeup": 0,
    "timeAsleep": 605,
    "timeAwake": 63,
    "timeInBed": 0,
    "timeToFallAsleep": 0,
    "tzOffset": "-05:00",
    "updatedAt": "2019-06-29T15:46:48.424Z",
    "userId": "581396ca6aa90001002ca16f"
}

// Healthkit
{
    "createdAt": "2020-01-05T19:21:37.967Z",
    "day": "2019-12-27",
    "efficiency": 0, // not available, always 0
    "endTime": "2019-12-28T04:21:27.520Z",
    "humanId": "b552710122sf878d6297a564k257a502",
    "id": "5e1237411047590100018373",
    "mainSleep": true,
    "numberOfWakeups": 1,
    "source": "5541a9678e7192cb4fb34fed",
    "startTime": "2019-12-28T03:21:27.520Z",
    "timeAfterWakeup": 0, // not available, always 0
    "timeAsleep": 49,
    "timeAwake": 11,
    "timeInBed": 60,
    "timeToFallAsleep": 0, // not available, always 0
    "tzOffset": "-06:00",
    "updatedAt": "2020-01-05T19:21:37.967Z",
    "userId": "9z16351b5a800f7cf6373agf"
}

// iHealth
{
    "createdAt": "2021-07-09T05:14:47.867Z",
    "day": "2021-07-08",
    "efficiency": 98,
    "endTime": "2021-07-08T05:50:00.000Z",
    "humanId": "18cb16e5032343b6d14ed596b10d9172",
    "id": "60e7db476fa074f19a5661cb",
    "mainSleep": true,
    "numberOfWakeups": 0, // not available, always 0
    "source": "ihealth",
    "startTime": "2021-07-07T23:20:00.000Z",
    "timeAfterWakeup": 0, // not available, always 0
    "timeAsleep": 385,
    "timeAwake": 0, // not available, always 0
    "timeInBed": 0, // not available, always 0
    "timeToFallAsleep": 0, // not available, always 0
    "tzOffset": "-05:00",
    "updatedAt": "2021-07-09T05:14:47.867Z",
    "userId": "5b21ae9e0c840184b088a06d"
}

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.