Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mi band data #102

Open
zhouzhongyuan opened this issue Feb 9, 2018 · 1 comment
Open

Mi band data #102

zhouzhongyuan opened this issue Feb 9, 2018 · 1 comment

Comments

@zhouzhongyuan
Copy link
Owner

zhouzhongyuan commented Feb 9, 2018

/data/data/com.xiaomi.hm.health/databases/origin_db 的 data_data

adb shell
su
@zhouzhongyuan
Copy link
Owner Author

zhouzhongyuan commented Feb 9, 2018

var data = {
    "v": 5,
    "slp": {
        "st": 1518097200,
        "ed": 1518132540,
        "dp": 155,
        "lt": 434,
        "wk": 0,
        "usrSt": -1440,
        "usrEd": -1440,
        "wc": 0,
        "is": 86,
        "lb": 1,
        "to": 0,
        "dt": 0,
        "rhr": 0,
        "ss": 83
    },
    "stp": {
        "ttl": 2616,
        "dis": 1804,
        "cal": 62,
        "wk": 29,
        "rn": 3,
        "runDist": 391,
        "runCal": 15
    },
    "goal": 10000
}
        // //睡眠统计
        // $sleep_start = $data->slp->st;  //睡眠开始时间
        // $sleep_stop = $data->slp->ed;   //睡眠结束时间
        // $sleep_light = $data->slp->lt;    //浅度睡眠时间
        // $sleep_deep = $data->slp->dp;   //深度睡眠时间
        // $sleep_total_time = $sleep_start - $sleep_stop;    //睡眠时长
        // //运动统计
        // $sport_total_step = $data->stp->ttl;    //全天步数
        // $sport_total_dist = $data->stp->dis;    //全天里程
        // $sport_run_dist = $data->stp->runDist;  //跑步里程
        // $sport_walk_time = $data->stp->wk;  //行走时长
        // $sport_run_time = $data->stp->rn;   //跑步时长
        // $total_cal = $data->stp->cal;   //总卡路里消耗
        // $run_cal = $data->stp->runCal;  //跑步卡路里消耗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant