Giter VIP home page Giter VIP logo

mimotion-run's Introduction

mimotion

 刷步数 GitHub forks GitHub stars GitHub issues

小米运动自动刷步数

小米运动自动刷步数

Github Actions 部署指南

一、Fork 此仓库

二、设置账号密码

20230224新增

添加名为 CONFIG的变量: Settings-->Secrets-->New secret ,使用下面json模板配置多账户,支持邮箱,手机号

{
  "SKEY": "酷推skey,如果没有,请留空",
  "SCKEY": "server酱sckey,如果没有,请留空",
  "POSITION": "是否开启企业微信推送,如果没有,请留空",
  "CORPID": "企业ID, 登陆企业微信,在我的企业-->企业信息里查看,如果没有,请留空",
  "CORPSECRET": "企业微信自建自建应用,每个自建应用里都有单独的secret,如果没有,请留空",
  "AGENTID": "填写你的企业微信自建应用ID,不加引号,是个整型常数,就是AgentId,如果没有,请留空",
  "TOUSER": "指定接收消息的成员,成员ID列表(多个接收者用”¦”分隔,最多支持1000个)。特殊情况:指定为”@all”,则向该企业应用的全部成员发送如果没有,请留空",
  "TOPARTY": "指定接收消息的部门,部门ID列表,多个接收者用”¦”分隔,最多支持100个。当touser为”@all”时填写”@all”,如果没有,请留空",
  "TOTAG": "指定接收消息的标签,标签ID列表,多个接收者用”¦”分隔,最多支持100个。当touser为”@all”时填写”@all”,如果没有,请留空",
  "OPEN_GET_WEATHER": "开启根据地区天气情况降低步数,如果没有,请留空",
  "AREA": "设置获取天气的地区(上面开启后必填)如 北京 ,如果没有,请留空",
  "QWEATHER": "此处填写和风天气 Private KEY,申请地址https://console.qweather.com/#/apps,如果没有,请留空",
  "MIMOTION": [
    {
      "max_step": "20000",
      "min_step": "10000",
      "password": "Sitoi",
      "user": "18888xxxxxx"
    },
    {
      "max_step": "多账号 最大步数填写,请参考上面",
      "min_step": "多账号 最小步数填写,请参考上面",
      "password": "多账号 密码填写,请参考上面",
      "user": "多账号 手机号填写,请参考上面"
    }
  ]
}

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

Secrets 格式
PAT 此处PAT需要申请,值为github token,教程详见:https://www.jianshu.com/p/bb82b3ad1d11 ,需要repo和workflow权限,此项必填,避免git push的权限错误。

CONFIG示例

{
  "SKEY": "",
  "SCKEY": "",
  "POSITION": "",
  "CORPID": "",
  "CORPSECRET": "",
  "AGENTID": "",
  "TOUSER": "",
  "TOPARTY": "",
  "TOTAG": "",
  "OPEN_GET_WEATHER": "",
  "AREA": "",
  "QWEATHER": "",
  "MIMOTION": [
    {
      "max_step": "20000",
      "min_step": "10000",
      "password": "Sitoi",
      "user": "18888xxxxxx"
    },
    {
      "max_step": "多账号 最大步数填写,请参考上面",
      "min_step": "多账号 最小步数填写,请参考上面",
      "password": "多账号 密码填写,请参考上面",
      "user": "多账号 手机号填写,请参考上面"
    }
  ]
}

三、自定义启动时间

编辑 random_cron.sh 修改其中if语句的判断时间为UTC时间,即北京时间-8,如北京时间8点为UTC时间0点,需要运行的时间-8就是UTC时间

注意事项

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

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

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

  4. server酱注册地址 点我

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

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

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

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

历史Star数

Stargazers over time

mimotion-run's People

Contributors

xunichanghuan 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

Watchers

 avatar

mimotion-run's Issues

KeyError: 'location'##[error***Process completed with exit code 1.

直接fork主分支的,变量全部添加了,没有的项都填写NO,天气选项都关闭了, 运行就报错, 变量核对了几遍,没有错误的地方.运行就卡在这个地方.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 7.6 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 kB 15.0 MB/s eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.6/140.6 kB 41.9 MB/s eta 0:00:00
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (195 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 195.4/195.4 kB 54.2 MB/s eta 0:00:00
Installing collected packages: charset-normalizer, urllib3, idna, certifi, requests
Successfully installed certifi-2022.12.7 charset-normalizer-3.0.1 idna-3.4 requests-2.28.2 urllib3-1.26.14
Traceback (most recent call last):
File "main.py", line 140, in
print(MiMotion(check_item=_check_item).main())
File "main.py", line 106, in main
login_token, userid = self.login(user, password)
File "main.py", line 39, in login
location = r1.headers["Location"***
File "/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/requests/structures.py", line 52, in getitem
return self._store[key.lower()[1
KeyError: 'location'
##[error***Process completed with exit code 1.

我这边汇总下我知道的消息,做个分享。

https://www.52pojie.cn/thread-1750173-1-1.html

https://motion.faithxy.com/

支付宝步数不同步

方法1、在支付宝设置-隐私-个人授权管理-取消对zepp Life的授权,然后注销zeppLIfe账号,重新绑定

方法2、在支付宝取消授权后,新注册一个zepp Life账号绑定,改步

注:部分账号数据同步可能有延迟

注:建议在上午9点-晚上23点间修改步数,其它时间段步数可能不同步

本人亲测【方法2】,成功。

action报错

repo-syn action报错,如图image
我的settings配置如下:
image
PAT配置的token对应的权限都勾选了

wx不能同步

这两天刚注册的账号,软件内已经刷好了,但是微信不管咋样,都不能同步

真是奇了怪

作者自己的,https://github.com/xunichanghuan/mimotion-run/actions/runs/4281700322/jobs/7455047366

Successfully installed certifi-2022.12.7 charset-normalizer-3.0.1 idna-3.4 requests-2.28.2 urllib3-1.26.14
帐号信息: +8611868
修改信息: success
修改步数: 59418
帐号信息: +861
1861
修改信息: success
修改步数: 28511
帐号信息: +8611432
修改信息: success
修改步数: 164
帐号信息: +861
3359
修改信息: success
修改步数: 18210
帐号信息: +8618739
修改信息: success
修改步数: 12140
帐号信息: 1065
.com
修改信息: success
修改步数: 25096

True
True
"errcode":0,"errmsg":"ok","invalidparty":"NO","invalidtag":"0","msgid":"WpLDpQFMGSE843kRbNhgXdtU_PIOB-0nPKcBgavLrxejpaLzjKc4BY0jKm2VfDhQOp1kinX114myVsjjmqSyVQ"

意外缩进...

File "main.py", line 76
data = json.dumps(data)
^
IndentationError: unexpected indent

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.