Snippets

Steven Santa Maria Sleep Summaries

You are viewing an old version of this snippet. View the current version.
Revised by Steven Santa Maria 43e6149
// 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"
}
HTTPS SSH

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