Git Product home page Git Product logo

mimotions's Introduction

小米运动自动刷步数

小米运动自动刷步数

Github Actions 部署指南

一、Fork 此仓库

二、设置账号密码

添加名为 USERPWDOPEN_GET_WEATHERAREAPAT 的变量

Settings-->Secrets-->New secret

Secrets 格式
USER 小米运动登录账号,仅支持小米运动账号对应的手机号,不支持小米账号
PWD 小米运动登录密码,仅支持小米运动账号对应的密码
OPEN_GET_WEATHER 开启根据地区天气情况降低步数False关闭,True开启。(当前存在问题,请设置为False
AREA 设置获取天气的地区(上面开启后必填)如:北京,当OPEN_GET_WEATHERFalse时填写NO。(当前存在问题,请设置为NO
PAT 此处PAT需要申请,值为github token,教程详见:https://www.jianshu.com/p/bb82b3ad1d11 ,需要repo和workflow权限,此项必填,避免git push的权限错误。

三、多账户(用不上请忽略)

多账户请用 # 分割 然后保存到变量 USERPWD

例如

13800138000#13800138001 变量 USER

abc123qwe#abcqwe2 变量 PWD

四、自定义启动时间

编辑 .github/workflows/run.yml

找到 cron: 0 10 * * *

修改其中的10为你需要修改的时间

需要运行的时间-8就是UTC时间,比如上午9点,9-8=1,则cron: 0 1 * * *

五、启动

Actions-->点击“I understand my workflows, go ahead and enable them”-->All workflows-->刷步数-->点击“Enable workflow”

注意事项

  1. 每天运行一次,在下午 6 点

  2. 多账户的数量和密码请一定要对上 不然无法使用!!!

  3. 启动时间得是UTC时间!

  4. 如果支付宝没有更新步数,到小米运动->设置->账号->注销账号->清空数据,然后重新登录,重新绑定第三方

mimotions's People

Contributors

ruizhengyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mimotions's Issues

关于设置自定义启动时间

> 四、自定义启动时间
> 编辑 .github/workflows/run.yml
> 
> 找到 cron: 0 10 * * *
> 
> 修改其中的10为你需要修改的时间
> 
> 需要运行的时间-8就是UTC时间,比如上午9点,9-8=1,则cron: 0 1 * * *

现在新的runMain.yml里变成了cron: 15 12 * * *,请问设置时间的规则是什么?

小米运动数据不同步

失效原因 可能是账号 没有绑定手环手环设备 问过客服说必须绑定设备才能同步到第三方,是否可以支持提交步数前绑定一个虚拟设备来解决失效问题,有这个思路 但是不知道该怎么弄

好像现在请求成功之后数据也不会同步到wx了?

请求最终的接口https://api-mifit-cn.huami.com/v1/data/band_data.json 返回请求成功
response={'code': 1, 'message': 'success'}
我在zepp life的app里能看到新增的步数,但是在wx或者apple健康里看不到步数。
(我已经在zepp life里设置好了第三方接入,包括wx和苹果健康

不知道有没有遇到相同情况的小伙伴。。。我想确认是我自己的问题还是说zepp life有问题

这样算成功吗

1111
image

自动执行了,但是步数没变化,账号密码没问题,天气获取填了False,地区填了NO,PAT不知道对不对(那两项有勾选),请问这是什么错误呢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.