https://github.com/devifish/sport-editor
通过小米运动API实现的自动刷运动步数工具😒(可同步到微信、支付宝)
https://github.com/devifish/sport-editor
Last synced: about 1 year ago
JSON representation
通过小米运动API实现的自动刷运动步数工具😒(可同步到微信、支付宝)
- Host: GitHub
- URL: https://github.com/devifish/sport-editor
- Owner: Devifish
- License: mit
- Created: 2021-03-22T09:33:33.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-19T02:11:48.000Z (about 2 years ago)
- Last Synced: 2025-03-30T21:08:00.921Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 94
- Watchers: 3
- Forks: 264
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 运动步数修改工具
[](https://github.com/Devifish/sport-editor/actions/workflows/sport-editor-task.yml)
[](https://github.com/Devifish/sport-editor)
[](https://github.com/Devifish/sport-editor)
> 通过华米运动的 API 提交运动步数 😒
> 可实现同步运动步数至热门平台,如微信、支付宝等
## 实现功能
- [x] 每日自动更新步数
- [x] 指定随机运动步数范围
- [x] Github Action 运行
## 配置参数
| 环境变量 | 说明 | 值 |
| ------------------------ | ------------------- | ------------------- |
| XIAOMI_AMAZFIT_USERNAME | 用户名 | 159000000 |
| XIAOMI_AMAZFIT_PASSWORD | 密码 | xxxxxx |
| XIAOMI_AMAZFIT_USER_ID | 用户 ID (可选) | 123456 |
| XIAOMI_AMAZFIT_APP_TOKEN | APP Token (可选) | xxxxxxxx |
| STED_SIZE_RANGE | 运动步数范围 (可选) | 5000-15000 (默认值) |
- 推荐使用 Node.js 12 及以上的运行/构建当前项目
- 运动步数范围使用 - 分隔上下限
- 可选账号/密码、UserID/AppToken 两种方式运行
## Github Actions 部署
- fork 本项目
- 将环境变量参数填到 Setting -> Secrets (如果使用 Token+ID 方式可不填用户名及密码)
- 开启 actions (默认`actions`处于禁止状态)
- 执行 sport-editor-task workflow
## 命令行运行
```
git clone https://github.com/Devifish/sport-editor.git
cd sport-editor
npm install
npm run start
```