Synchronize sleep data

Sleep

iOS: IDOSyncDataType.sleep

Android : IDOSyncDataType.SLEEP

json field received by App:

Field name Field type Field description
data_type int 1: Scientific sleep (with REM, breathing score)
2: Nap
4: Normal sleep
6: Nap and does not support scientific sleep
fall_asleep_year int Fall asleep time year
fall_asleep_month int Fall asleep time month
fall_asleep_day int Fall asleep time day
fall_asleep_hour int Fall asleep time hours
fall_asleep_minte int Fall asleep time minutes
fall_asleep_minute int Fall asleep time minutes
get_up_year int wake up time year
get_up_month int Wake up time month
get_up_day int wake up time day
get_up_hour int wake up time hours
get_up_minte int Wake up time minutes
get_up_minute int Wake up time minutes
total_sleep_time_mins int Total sleep time Unit: minutes
wake_mins int Total wake time Unit: minutes
light_mins int Total light sleep duration Unit: minutes
rem_mins int Total eye movement duration Unit: minutes
deep_mins int Total deep sleep duration Unit: minutes
wake_count int number of wakes
light_count int Number of light sleeps
rem_count int number of eye movements
deep_count int number of deep sleeps
awrr_status int respiratory status
sleep_score int sleep score
breath_quality int Breath quality (0 - 100) Unitless
sleep_avg_hr_value int Average heart rate during sleep stage
sleep_avg_spo2_value int Average blood oxygen value during sleep stage
sleep_avg_respir_rate_value int Average respiratory rate during sleep stages
item_count int Number of sleep details
items collection sleep details, collection of stage & duration

items items — Sleep details

Field name Field type Field description
stage int Stage
1: Awake
2: Light sleep
3: Deep sleep
4: Eye movement
duration int duration Unit: minutes

Example

{
    "awrr_status" : 63,
    "breath_quality" : 63,
    "data_type" : 1,
    "deep_count" : 0,
    "deep_mins" : 104,
    "fall_asleep_day" : 6,
    "fall_asleep_hour" : 1,
    "fall_asleep_minte" : 7,
    "fall_asleep_minute" : 7,
    "fall_asleep_month" : 5,
    "fall_asleep_year" : 2026,
    "get_up_day" : 6,
    "get_up_hour" : 7,
    "get_up_minte" : 27,
    "get_up_minute" : 27,
    "get_up_month" : 5,
    "get_up_year" : 2026,
    "is_support_splice" : 0,
    "item_count" : 26,
    "items" : 
    [
        {
            "duration" : 25,
            "stage" : 2
        },
        {
            "duration" : 39,
            "stage" : 3
        },
        {
            "duration" : 1,
            "stage" : 2
        },
        {
            "duration" : 4,
            "stage" : 1
        },
        {
            "duration" : 8,
            "stage" : 2
        },
        {
            "duration" : 21,
            "stage" : 4
        },
        {
            "duration" : 5,
            "stage" : 3
        },
        {
            "duration" : 3,
            "stage" : 2
        },
        {
            "duration" : 6,
            "stage" : 4
        },
        {
            "duration" : 34,
            "stage" : 2
        },
        {
            "duration" : 31,
            "stage" : 3
        },
        {
            "duration" : 5,
            "stage" : 2
        },
        {
            "duration" : 16,
            "stage" : 4
        },
        {
            "duration" : 29,
            "stage" : 3
        },
        {
            "duration" : 6,
            "stage" : 4
        },
        {
            "duration" : 21,
            "stage" : 2
        },
        {
            "duration" : 8,
            "stage" : 4
        },
        {
            "duration" : 22,
            "stage" : 2
        },
        {
            "duration" : 7,
            "stage" : 4
        },
        {
            "duration" : 7,
            "stage" : 2
        },
        {
            "duration" : 10,
            "stage" : 4
        },
        {
            "duration" : 9,
            "stage" : 2
        },
        {
            "duration" : 19,
            "stage" : 4
        },
        {
            "duration" : 7,
            "stage" : 2
        },
        {
            "duration" : 7,
            "stage" : 4
        },
        {
            "duration" : 30,
            "stage" : 2
        }
    ],
    "light_count" : 26,
    "light_mins" : 172,
    "long_sleep_splice_interval" : 0,
    "nap_sleep_splice_interval" : 0,
    "rem_count" : 0,
    "rem_mins" : 100,
    "sleep_avg_hr_value" : 69,
    "sleep_avg_respir_rate_value" : 19,
    "sleep_avg_spo2_value" : 97,
    "sleep_score" : 76,
    "total_sleep_time_mins" : 380,
    "wake_count" : 1,
    "wake_mins" : 4
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2026-10-20 04:48:36

results matching ""

    No results matching ""