Giter Site home page Giter Site logo

mimotion's Introduction

mimotion

 刷步数 同步到Gitee GitHub forks GitHub stars GitHub issues

小米运动自动刷步数

小米运动自动刷步数

Github Actions 部署指南

一、Fork 此仓库

二、设置账号密码

添加名为 USERPWDSKEYSCKEYPOSITIONCORPIDCORPSECRETAGENTIDTOUSERTOPARTYTOTAGOPEN_GET_WEATHERAREA的变量: Settings-->Secrets-->New secret

Secrets 格式
USER 小米运动登录账号,仅支持小米运动账号对应的手机号,不支持小米账号
PWD 小米运动登录密码,仅支持小米运动账号对应的密码
SKEY 酷推skey,如无填写NO
SCKEY server酱sckey,如无填写NO
POSITION 是否开启企业微信推送false关闭,true开启
CORPID 企业ID, 登陆企业微信,在我的企业-->企业信息里查看,必填,如果没有,填写NO
CORPSECRET 自建应用,每个自建应用里都有单独的secret,必填,如果没有,填写NO
AGENTID 填写你的应用ID,不加引号,是个整型常数,就是AgentId,如果没有,填写NO
TOUSER 指定接收消息的成员,成员ID列表(多个接收者用”¦”分隔,最多支持1000个)。特殊情况:指定为”@all”,则向该企业应用的全部成员发送,如果没有,填写NO
TOPARTY 指定接收消息的部门,部门ID列表,多个接收者用”¦”分隔,最多支持100个。当touser为”@all”时填写”@all”,如果没有,填写NO
TOTAG 指定接收消息的标签,标签ID列表,多个接收者用”¦”分隔,最多支持100个。当touser为”@all”时填写”@all”,如果没有,填写NO
OPEN_GET_WEATHER 开启根据地区天气情况降低步数False关闭,True开启
AREA 设置获取天气的地区(上面开启后必填)如:北京,当OPEN_GET_WEATHERFalse时填写NO
PAT 此处PAT需要申请,值为github token,教程详见:https://www.jianshu.com/p/bb82b3ad1d11 ,需要repo和workflow权限,此项必填,避免git push的权限错误。

三、自定义启动时间多账户(用不上请忽略)

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

例如

13800138000#13800138001 变量 USER

abc123qwe#abcqwe2 变量 PWD

四、自定义启动时间

编辑 main.py

找到 time_list项目,此数据为北京时间,默认表示为8点10点13点15点17点19点21点运行,如需修改,请修改time_list列表,如:time_list = [7, 9, 13, 15, 17, 19, 20]就表示为7点9点13点15点17点19点20点运行,Actions触发里面也要同步修改。 编辑 random_cron.sh 修改其中if语句的判断时间为UTC时间,即北京时间-8,如北京时间8点为UTC时间0点,需要运行的时间-8就是UTC时间

注意事项

  1. 每天运行七次,整由time_list和random_cron.sh控制,分钟为随机值

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

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

  4. server酱注册地址 点我

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

  6. 小米运动不会更新步数,只有关联的会同步!!!!!

  7. 请各位在使用时Fork主分支,防止出现不必要的bug.

  8. TG推送教程 点我

  9. 请注意,账号不是 [小米账号],而是 [小米运动] 的账号。

历史Star数

Stargazers over time

mimotion's People

Contributors

xunichanghuan avatar wxm78 avatar

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.