Get sleep
get_sleepFetch one night's sleep from Garmin Connect for the date it ended on, including duration, sleep stages, score, and average respiration.
Instructions
Return one night's sleep: start and end, total, deep, light, REM and awake time, sleep score and average respiration.
A night belongs to the day it ended on: last night is today's date. Null when no sleep was recorded. The same summary is inside get_day_summary, which costs five Garmin requests to this one's one; for sleep hours or score over many nights use get_trend with metric sleep or sleep_score.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | Yes | The date the night ended on; last night is today. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |