09-25-2023 23:37
09-25-2023 23:37
Hi all !!
I'm very interested in Fitbit Inspire 2, because I'm ready to study insomnia. That's why nowadays I've tested on Fitbit Inspire 2 wearing this band and collected data from it.
When I wear this band, I'm wondering about several things.
First, how can I adopt wakefulness after sleep onset (WASO) among times awake, times restless, and minutes awake/restless?
Second, is it possible to take out the daily sleep parameter from the API?
I look forward your answer 🙂
Best Regards,
JAY
Answered! Go to the Best Answer.
10-02-2023 09:31
10-02-2023 09:31
Hi @SunsetRunner
According to sleepfoundation.org, Wakefulness After sleep Onset (WASO) is "a measurement used to assess a person’s sleep. It is the total number of minutes that a person is awake after having initially fallen asleep. For example, if someone wakes up once during the night and is awake for 25 minutes, their WASO is 25 minutes."
The Get Sleep Log by Date endpoint will provide the sleep level the person entered and for how long. See https://dev.fitbit.com/build/reference/web-api/sleep/get-sleep-log-by-date/#Response. We either provide the sum of the minutes in each level or you can add those minutes together to get the sum. For example, the minutesAwake value provides the "total sum of "wake" minutes only. It does not include before falling asleep or after waking up." This should give you the WASO value.
We have 2 types of sleep logs, classic and stages. "restless" is only returned in the classic log, which was our previous implementation of sleep tracking and only appears if we do not get enough sleep data. People typically don't move during deep or rem sleep, so I would suggest using light sleep as the marker for the equivalent restless level.
I don't understand your question about the daily sleep parameter from the API. What are you trying to accomplish?
Gordon
10-02-2023 09:31
10-02-2023 09:31
Hi @SunsetRunner
According to sleepfoundation.org, Wakefulness After sleep Onset (WASO) is "a measurement used to assess a person’s sleep. It is the total number of minutes that a person is awake after having initially fallen asleep. For example, if someone wakes up once during the night and is awake for 25 minutes, their WASO is 25 minutes."
The Get Sleep Log by Date endpoint will provide the sleep level the person entered and for how long. See https://dev.fitbit.com/build/reference/web-api/sleep/get-sleep-log-by-date/#Response. We either provide the sum of the minutes in each level or you can add those minutes together to get the sum. For example, the minutesAwake value provides the "total sum of "wake" minutes only. It does not include before falling asleep or after waking up." This should give you the WASO value.
We have 2 types of sleep logs, classic and stages. "restless" is only returned in the classic log, which was our previous implementation of sleep tracking and only appears if we do not get enough sleep data. People typically don't move during deep or rem sleep, so I would suggest using light sleep as the marker for the equivalent restless level.
I don't understand your question about the daily sleep parameter from the API. What are you trying to accomplish?
Gordon
10-03-2023 05:40
10-03-2023 05:40
Thank you Gordon 😀
Your response makes me happy because I've almost solved my problem!
As far as I understood , the WASO can accept 'mins awake/restless', isn't it?
And also, I just wonder, what is the meaning of the slash between min awake and restless? Does it mean divided by mins awake/restless?
Apparently, my explanation was not good for you to understand. I'll let you know again my question about 'classic sleep logs'.
I'm planning to move 'classic sleep logs' to patient table which I made it. that's my accomplish. To do this, I'll take out the classic sleep log of Dashboard information from the API.
Lastly, I've attached a photo, and I'd like to take out the 'classic sleep log' information shown in the photo.
I look forward your answer 😊
Best Regards,
JAY
10-05-2023 07:46
10-05-2023 07:46
As far as I understood , the WASO can accept 'mins awake/restless', isn't it?
This question should be asked to an expert who studies sleep behavior.
And also, I just wonder, what is the meaning of the slash between min awake and restless? Does it mean divided by mins awake/restless?
This depends on the context. It could mean "and" or "or".
I'm planning to move 'classic sleep logs' to patient table which I made it. that's my accomplish. To do this, I'll take out the classic sleep log of Dashboard information from the API.
You can use the Get Sleep Log endpoints to retrieve the classic and stage sleep log data. The stages sleep log is generated when the user sleeps 3+ hours and we have a good heart rate reading. A classic sleep log is generated when the sleep log is manually entered, or the user slept less than 3 hours or we did not get a heart rate reading. You can read the "additional information" section to learn more about their differences.