air780e-forwarder/README.md
2024-03-24 22:50:55 +08:00

75 lines
3.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Air700E / Air780E / Air780EG And ESP32C3 短信转发
- [x] 多种通知方式
> 默认使用两种常见的钉钉群机器人和企业微信机器人
- [ ] [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)
- [ ] [飞书群机器人 Feishu](https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN)
- [x] [企业微信群机器人 WeCom](https://developer.work.weixin.qq.com/document/path/91770)
- [ ] [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. 烧录固件
> 默认在对应主板的 `core` 目录下有对应底层固件可以配合lua脚本进行烧录
> 推荐使用已经编译好的固件进行烧录
> Air780e使用 `air780e\core\SOC量产及远程升级文件\EC618` 目录下的soc固件烧录
> ESP32C3使用 `esp32c3\core\SOC量产及远程升级文件\ESP32C3` 目录下的soc固件烧录
### 2. 配置
#### 2.1. 配网
##### 2.1.1. 微信配网
注意:**配网前前请切换手机wifi到2.4G的ssid接入点esp32c3不支持5G接入。**
请关注“山东微果”公众号依次点击底部菜单里的“物联网“WIFI配网”按照提示输入密码即可配置联网。联网过程中尽量保证设备和手机都靠近要连接的无线路由器。
##### 2.1.1. SoftAP配网
如果设备在2分钟内没能微信配网成功会自动进入SoftAP配网模式此时手机可以连接热点 `weiguo_xxx` (xxx为随机字符),密码为空。然后按照 `2.2. 系统设置` 阶段进行配网。
#### 2.2. 系统设置
##### 2.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.2. 修改配置json并POST到 `http://192.168.4.1/config` 设置
注意不需要配置的选项可以删除修改ssid和wifi密码会重启设备