修改说明文档

This commit is contained in:
meng 2024-03-24 21:21:02 +08:00
parent d973d1216d
commit f17a47e7b8

View File

@ -1,38 +1,64 @@
# Air700E / Air780E / Air780EG 短信转发
## 保姆级教程https://kdocs.cn/l/coe1ozIlSX70
## :sparkles: Feature
# Air700E / Air780E / Air780EG And ESP32C3 短信转发
- [x] 多种通知方式
- [x] [Telegram](https://github.com/0wQ/telegram-notify)
- [x] [PushDeer](https://www.pushdeer.com/)
- [x] [Bark](https://github.com/Finb/Bark)
> 默认使用两种常见的钉钉群机器人和企业微信机器人
- [ ] [Telegram](https://github.com/0wQ/telegram-notify)
- [ ] [PushDeer](https://www.pushdeer.com/)
- [ ] [Bark](https://github.com/Finb/Bark)
- [x] [钉钉群机器人 DingTalk](https://open.dingtalk.com/document/robots/custom-robot-access)
- [x] [飞书群机器人 Feishu](https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN)
- [ ] [飞书群机器人 Feishu](https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN)
- [x] [企业微信群机器人 WeCom](https://developer.work.weixin.qq.com/document/path/91770)
- [x] [Pushover](https://pushover.net/api)
- [x] [邮件 next-smtp-proxy](https://github.com/0wQ/next-smtp-proxy)
- [x] [Gotify](https://gotify.net)
- [x] [Inotify](https://github.com/xpnas/Inotify) / [合宙官方的推送服务](https://push.luatos.org)
- [x] 通过短信控制设备
- [x] 发短信, 格式: `SMS,10010,余额查询`
- [x] 定时基站定位
- [x] 定时查询流量
- [x] 开机通知
- [x] POW 按键长按短按操作
- [x] 低功耗模式 (使用 IoT Power 测量, 开发板待机 30min 平均电流 2.5mA)
- [ ] [Pushover](https://pushover.net/api)
- [ ] [邮件 next-smtp-proxy](https://github.com/0wQ/next-smtp-proxy)
- [ ] [Gotify](https://gotify.net)
- [ ] [Inotify](https://github.com/xpnas/Inotify) / [合宙推送服务](https://push.luatos.org)
- [x] 开机通知、自检通知
- [x] 使用消息队列, 经测试同时发送几百条通知, 不会卡死
- [x] 通知发送失败, 自动重发
- [x] 开机通知、自检通知可选转发
- [x] 微信配网
- [x] SoftAP配网 地址:`192.168.4.1`
- [x] 通知机器人地址可配置 `http://192.168.4.1/config`
- [ ] 配置PC客户端
- [ ] web配置客户端
## :hammer: Usage
### 1. 按注释修改 `script/config.lua` 配置文件
### 1. 烧录固
### 2. 烧录脚本
> 推荐使用 `core` 目录下的固件
>
> `core` 目录下文件名中带有 `RNDIS` 的, 支持 RNDIS 网卡功能, 如果 SIM 卡流量不多请勿选择
> 默认在对应主板的 `core` 目录下有对应底层固件可以配合lua脚本进行烧录
> 推荐使用已经编译好的固件进行烧录
> Air780e使用 `air780e\core\SOC量产及远程升级文件\EC618` 目录下的soc固件烧录
> ESP32C3使用 `esp32c3\core\SOC量产及远程升级文件\ESP32C3` 目录下的soc固件烧录
根据 [air780e.cn](http://air780e.cn) 官方指引下载 LuaTools 并写入 `script` 目录下文件
### 2. web接口配置
#### 2.1. 访问 `http://192.168.4.1/config` 获取当前配置
```
{
"code": 0,
"msg": "完成",
"ssid": "M302", //wifi接入点名称只支持2.4G
"passwd": "41672088", //wifi密码
"notify_channel": {
"dingtalk": "https://oapi.dingtalk.com/xxx", //钉钉机器人地址
"wecom": "https://qyapi.weixin.qq.com/xxx" //企业微信机器人地址
},
"numbers": [
"15264925507", //子设置手机号列表 如果设备不能获取本身的手机号 则使用此处的手机号
"129",
"120",
"5555",
"8888888"
],
"notify_type": [
"dingtalk",
"wecom"
]
}
```
#### 2.2. 修改配置json并POST到 `http://192.168.4.1/config` 设置
注意不需要配置的选项可以删除修改ssid和wifi密码会重启设备