wx step
// ==UserScript==
// @name wx step
// @namespace http://tampermonkey.net/
// @version 0.2
// @description change wx step by Zepp Life
// @author tfsn20
// @match api-user.huami.com
// @icon http://file.market.xiaomi.com/thumbnail/PNG/l114/AppStore/0e5449598bba04fcbb0a80cf396fa553f01242d53
// @grant GM_xmlhttpRequest
// @grant GM_log
// @grant GM_getValue
// @connect huami.com
// @connect s3-us-west-2.amazonaws.com
// ==/UserScript==
/* ==UserConfig==
xiaomi:
account:
title: 账号
description: 即手机号
password:
title: 密码
description: 账号密码
password: true
step:
title: 微信步数
description: 如:12345
type: number
==/UserConfig== */
(function () {
//这里填入账号密码
const account = GM_getValue('xiaomi.account');
const password = GM_getValue('xiaomi.password');
//通过小米运动(通过手机号注册)同步修改微信运动步数, 切记不能用微信登录, 即使先用的手机号注册登录后面使用微信登录也会失效
async function changeStep() {
//随机生成要显示的步数(可改, 比如下面生成一个在15000到19999之间的整数)
let STEP = Math.floor(Math.random() * (19999 - 15000 + 1)) + 15000;
if (GM_getValue('xiaomi.step')) {
STEP = GM_getValue('xiaomi.step')
};
GM_log(`步数${STEP}`);
//当前时间
const dateObj = new Date();
//一个请求体参数
let dataJson2 = [
{
"summary": "{\"slp\":{\"ss\":73,\"lt\":304,\"dt\":0,\"st\":1589920140,\"lb\":36,\"dp\":92,\"is\":208,\"rhr\":0,\"stage\":[{\"start\":269,\"stop\":357,\"mode\":2},{\"start\":358,\"stop\":380,\"mode\":3},{\"start\":381,\"stop\":407,\"mode\":2},{\"start\":408,\"stop\":423,\"mode\":3},{\"start\":424,\"stop\":488,\"mode\":2},{\"start\":489,\"stop\":502,\"mode\":3},{\"start\":503,\"stop\":512,\"mode\":2},{\"start\":513,\"stop\":522,\"mode\":3},{\"start\":523,\"stop\":568,\"mode\":2},{\"start\":569,\"stop\":581,\"mode\":3},{\"start\":582,\"stop\":638,\"mode\":2},{\"start\":639,\"stop\":654,\"mode\":3},{\"start\":655,\"stop\":665,\"mode\":2}],\"ed\":1589943900,\"wk\":0,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fgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAA",
"did": "DA932FFFFE8816E7",
"tz": 32,
"src": 17,
"start": 0
}
],
"data_hr": "/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+",
"summary_hr": "{\"ct\":0,\"id\":[]}",
"date": `${dateObj.getFullYear()}-${dateObj.getMonth() + 1}-${dateObj.getDate()}`
}
];
//判断access获取结果
let access = await getAccessCode(account, password);
if (access) {
let info = await login(access);
let app_token = await getAppToken(info.login_token);
GM_log(JSON.stringify(dataJson2));
let result = await uploadData(Date.now(), app_token, info.user_id);
}
//判断str是否可json化,返回bool
function isJsonString(str) {
try {
if (typeof JSON.parse(str) == "object" && JSON.parse(str) != null) {
return true;
}
} catch (e) {
}
return false;
}
//获取登录授权码, 返回access字符串
function getAccessCode(ac, pwd) {
return new Promise((resolve, reject) => {
GM_xmlhttpRequest({
url: `https://api-user.huami.com/registrations/+86${ac}/tokens`,
method: "POST",
data: `client_id=HuaMi&password=${pwd}&redirect_uri=https://s3-us-west-2.amazonaws.com/hm-registration/successsignin.html&token=access`,
headers: {
"Sec-Fetch-Site": "",
"Sec-Fetch-Mode": "",
"Sec-Fetch-Dest": "",
'dnt': '',
'User-Agent': 'MiFit/4.6.0 (iPhone; iOS 14.0.1; Scale/2.00)',
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
'sec-ch-ua-platform': '',
'sec-ch-ua': '',
'sec-ch-ua-mobile': '',
'Host': '',
'Referer': '',
},
onload: function (xhr) {
let access = xhr.finalUrl.match(/access=(.*)&country/);
if (access) {
GM_log({ access: access[1] });
resolve(access[1])
} else {
GM_log({ access: '账号或密码错误' });
resolve()
}
GM_log(xhr.response)
}
})
})
}
//使用access登录, 返回login_token和user_id的json
function login(access) {
return new Promise((resolve, reject) => {
GM_xmlhttpRequest({
url: 'https://account.huami.com/v2/client/login',
method: "POST",
data: `app_name=com.xiaomi.hm.health&app_version=4.6.0&code=${access}&country_code=CN&device_id=2C8B4939-0CCD-4E94-8CBA-CB8EA6E613A1&device_model=phone&grant_type=access_token&third_name=huami_phone`,
headers: {
"Sec-Fetch-Site": "",
"Sec-Fetch-Mode": "",
"Sec-Fetch-Dest": "",
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36',
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
'sec-ch-ua-platform': '',
'dnt': '',
'sec-ch-ua': '',
'sec-ch-ua-mobile': '',
'Host': '',
'Referer': '',
'Host': '',
'Referer': '',
},
onload: function (xhr) {
let strJson = xhr.response;
if (isJsonString(strJson)) {
strJson = JSON.parse(strJson).token_info;
strJson = { login_token: strJson.login_token, user_id: strJson.user_id }
}
GM_log(strJson);
resolve(strJson)
}
})
})
}
//登录后获取app_token, 返回app_token字符串
function getAppToken(login_token) {
return new Promise((resolve, reject) => {
GM_xmlhttpRequest({
url: `https://account-cn.huami.com/v1/client/app_tokens?app_name=com.xiaomi.hm.health&dn=api-user.huami.com%2Capi-mifit.huami.com%2Capp-analytics.huami.com&login_token=${login_token}&os_version=4.1.0`,
method: "GET",
headers: {
"Sec-Fetch-Site": "",
"Sec-Fetch-Mode": "",
"Sec-Fetch-Dest": "",
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36',
'sec-ch-ua-platform': '',
'dnt': '',
'sec-ch-ua': '',
'sec-ch-ua-mobile': '',
'Host': '',
'Referer': '',
'Host': '',
'Referer': '',
},
onload: function (xhr) {
let strJson = xhr.response;
if (isJsonString(strJson)) {
strJson = JSON.parse(strJson).token_info.app_token;
GM_log({ app_token: strJson });
resolve(strJson)
}
}
})
})
};
//上传要显示的步数数据, 返回结果json字符串
function uploadData(t, app_token, user_id) {
return new Promise((resolve, reject) => {
GM_xmlhttpRequest({
url: `https://api-mifit-cn.huami.com/v1/data/band_data.json?&t=${t}`,
method: "POST",
data: `data_json=${JSON.stringify(dataJson2)}&userid=${user_id}&device_type=0&last_sync_data_time=1589917081&last_deviceid=DA932FFFFE8816E7`,
headers: {
"Sec-Fetch-Site": "",
"Sec-Fetch-Mode": "",
"Sec-Fetch-Dest": "",
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.12(0x17000c2d) NetType/WIFI Language/zh_CN',
'apptoken': app_token,
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
'sec-ch-ua-platform': '',
'dnt': '',
'sec-ch-ua': '',
'sec-ch-ua-mobile': '',
'Host': '',
'Referer': '',
'Host': '',
'Referer': '',
},
onload: function (xhr) {
let strJson = xhr.response;
if (isJsonString(strJson)) {
strJson = JSON.parse(strJson);
GM_log(strJson)
resolve(strJson)
}
}
})
})
}
};
changeStep()
})();