🌱Currently, I am a C++ SW development engineer specializing in Qt and Linux Kernel directions.
目前我是一名 C++ 软件开发工程师,专攻Qt、Linux Kernel 方向。
通过代码修改小米运动app步数,然后同步到微信、支付宝的运动,再使用腾讯云的定时器,最终实现全自动每日随机修改步数(20000-29999步)
以下是日志
{
"errorMessage": "'location'",
"errorType": "KeyError",
"stackTrace": [
[
"File "/code/index.py"",
"line 164",
"in main_handler",
"push += main(user_list[line], passwd_list[line], step) + '\n'"
],
[
"File "/code/index.py"",
"line 93",
"in main",
"login_token,userid = login(user,password)"
],
[
"File "/code/index.py"",
"line 51",
"in login",
"location = r1.headers["Location"]"
],
[
"File "/var/fc/lang/python3/lib/python3.6/site-packages/requests/structures.py"",
"line 54",
"in getitem",
"return self._store[key.lower()][1]"
]
]
}
麻烦百忙之中帮忙看看,感谢
小米运动现在关闭了三方接口,请问这个脚本zepp life可以用吗?
我的这个代码部署在青龙面板2.16.5上,然后运行测试只有一秒,没有没有任何错误提示或者信息提示。
python环境3.7 使用腾讯云函数
日志如下
START RequestId:c464b277-629e-45e1-86e0-30df75569d98
ERROR RequestId:c464b277-629e-45e1-86e0-30df75569d98 Result:{"errorCode":-1,"errorMessage":"Traceback (most recent call last):\n File "/var/runtime/python37/bootstrap.py", line 133, in init_handler\n func_handler = get_func_handler(file.rsplit(".", 1)[0], func)\n File "/var/runtime/python37/bootstrap.py", line 159, in get_func_handler\n mod = imp.load_module(mname, *imp.find_module(mname))\n File "/var/lang/python37/lib/python3.7/imp.py", line 234, in load_module\n return load_source(name, filename, file)\n File "/var/lang/python37/lib/python3.7/imp.py", line 171, in load_source\n module = _load(spec)\n File "\u003cfrozen importlib._bootstrap\u003e", line 696, in _load\n File "\u003cfrozen importlib._bootstrap\u003e", line 677, in _load_unlocked\n File "\u003cfrozen importlib._bootstrap_external\u003e", line 728, in exec_module\n File "\u003cfrozen importlib._bootstrap\u003e", line 219, in _call_with_frames_removed\n File "/var/user/index.py", line 3, in \u003cmodule\u003e\n import requests,time,re,json,random\nModuleNotFoundError: No module named 'requests'","statusCode":443}
END RequestId:c464b277-629e-45e1-86e0-30df75569d98
Report RequestId:c464b277-629e-45e1-86e0-30df75569d98 Duration:0ms Memory:128MB MemUsage:0.000000MB
{"errorCode":1,"errorMessage":"ServiceSuspended","requestId":"cedd62cd-29b2-4ac5-b8e4-8fd98b13aaa3","statusCode":402}
今天注册发现只能邮箱注册了,所以邮箱登录我把+86删了也没用
有成功有没成功的。但是阿里云函数日子都是报的成功,但是在微信运动刷新步数就不行。试了4个有一个不行,找不到原因。。。。。
刷步数成功,但是微信/支付宝死活不同步,知道啥原因么?
我这用邮箱注册,绑定微信关注公众号后,虽然代码提示的是成功,而且接口返回也是成功的 {'code': 1, 'message': 'success'} 但是步数并没有同步到微信运动步数
哥,我点了部署测试之后,出现这个,怎么办?
https://api-user.huami.com:443 "POST /registrations/[email protected]/tokens HTTP/1.1" 303 0 登陆失败!
wx 还有同步
没有生效呢,小米运动改版为Zepp Life,我安装的Android版本号为:6.5.5
运行函数输出:
Invoke function helloworld-1678107449 [RequestId:361bf236-ae84-40d0-93ef-a40980ac4c5f]
Response:
null
Output:
START RequestId: 361bf236-ae84-40d0-93ef-a40980ac4c5f
Event RequestId: 361bf236-ae84-40d0-93ef-a40980ac4c5f
已设置为随机步数(20000-29999)
Starting new HTTPS connection (1): api-user.huami.com:443
https://api-user.huami.com:443 "POST /registrations/[email protected]/tokens HTTP/1.1" 303 0
登陆失败
您好,首先感谢作者您提供了这么一个好的刷步办法。
我从7月左右一直在用您的代码,半年了都很顺利,但昨天发现没有预料中的步数(定时,阿里云,以前当然也有发生,但可以手动进网页执行一下测试代码,一般都能有步数了),于是手动测试代码,虽然提示代码成功,但步数未见实时刷新,延迟一段时间支付宝才看到步数(支付宝一般都是实时能看到)。今天又发现未有步数,于是进网页测试代码,报错。再试仍报错。后来我进华为云试,报错代码与阿里云一样。现附上报错处(3处):
push += main(user_list[line], passwd_list[line], step) + '\n'
app_token = get_app_token(login_token)
app_token = response['token_info']['app_token']
感觉有点不知所措,不知道怎么办才好,毕竟几个月都顺风顺水的,如果真是用不成了,那该怎么办啊
账号密码正确显示同步成功,但是zepp life都同步不上去。
登录接口报错了,返回303
reason:'See Other'
我在用户名和账号那里填写邮箱账号,运行后没反应额。
属实是不会变通到阿里云,麻烦更新图文教程
部署云函数的时候点击测试,显示失败,应该怎么操作呢?(代码仅修改了用户名密码等参数)
{"errorCode":1,"errorMessage":"Traceback (most recent call last):\n File \"/var/runtime/python37/bootstrap.py\", line 133, in init_handler\n func_handler = get_func_handler(file.rsplit(\".\", 1)[0], func)\n File \"/var/runtime/python37/bootstrap.py\", line 159, in get_func_handler\n mod = imp.load_module(mname, *imp.find_module(mname))\n File \"/var/lang/python37/lib/python3.7/imp.py\", line 234, in load_module\n return load_source(name, filename, file)\n File \"/var/lang/python37/lib/python3.7/imp.py\", line 171, in load_source\n module = _load(spec)\n File \"Ϗrozen; importlib._bootstrap>\", line 696, in _load\n File \"Ϗrozen; importlib._bootstrap>\", line 677, in _load_unlocked\n File \"Ϗrozen; importlib._bootstrap_external>\", line 728, in exec_module\n File \"Ϗrozen; importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"/var/user/index.py\", line 3, in <module;>\n import requests,time,re,json,random\nModuleNotFoundError: No module named 'requests'","requestId":"76121d9f-2051-45fd-91fa-cb3a9f86b0f9","statusCode":443}
https://api-user.huami.com:443 "POST /registrations/[email protected]/tokens HTTP/1.1" 303 0
登陆失败!
小米运动步数成功变了 但是第三方的没有变
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.