# BirdNET-Pi 接入 Server酱：识别到目标鸟种鸣叫时微信收到通知（2026 教程）

> BirdNET-Pi 内置 Apprise 支持，填入 schan:// 协议的 SendKey 即可在识别到目标鸟种时收到微信通知。

- 网页版：https://sct.ftqq.com/docs/integrations/birdnet-pi/
- 更新日期：2026-07-17

# BirdNET-Pi + Server酱：识别到目标鸟种鸣叫时微信收到通知

> 效果：树莓派上的 BirdNET-Pi 实时识别鸟鸣，识别到鸟鸣时自动推送微信通知。

## 前置条件

- 已获取 Server酱 SendKey（SCT 开头），参见 [30 秒获取教程](https://sct.ftqq.com/docs/getting-started/sendkey/)。
- BirdNET-Pi 已部署运行（Nachtzuster/BirdNET-Pi 分支，内置 apprise 库）。
- 如需推送到企业微信/钉钉/飞书群，另见 [通道配置](https://sct.ftqq.com/docs/getting-started/channels/)。

## 配置步骤

1. 在 BirdNET-Pi 界面中进入 **Tools → Settings → Notifications → Apprise Notification Configuration**，填入以下 URL：

```
schan://你的SENDKEY
```

将 `你的SENDKEY` 替换为你的 SCT 开头 SendKey。`schan://` 是 Apprise 中 Server酱Turbo 的专用协议，底层调用 `https://sctapi.ftqq.com/你的SENDKEY.send`。

2. 保存设置。BirdNET-Pi 在识别到鸟鸣时会自动通过该 URL 发送通知。

3. 如需命令行自测，可单独验证 Apprise 连通性：

```bash
pip install apprise && apprise -t "测试" -b "正文" "schan://你的SENDKEY"
```

收到微信通知说明配置成功。

## 完整示例

以下命令可直接复制运行，验证 Server酱 与 Apprise 的连通性：

```bash
pip install apprise
apprise -t "【成功】BirdNET-Pi 通知测试" -b "如果你收到了这条消息，说明 Server酱 配置正确。" "schan://你的SENDKEY"
```

## 常见问题

**每天能发多少条通知？**

免费额度为每天 5 条，每分钟上限 50 条。订阅会员目前特价最低 3 元/月，一天最多可发 1000 条（[价格详情](https://sct.ftqq.com/subscribe)）。

**配置后没收到消息怎么办？**

先用命令行 `apprise` 命令自测排除 BirdNET-Pi 自身问题。若 Apprise 测试通过但 BirdNET-Pi 不推送，检查 BirdNET-Pi 的通知配置是否正确。更多排查见 [常见问题与排查](https://sct.ftqq.com/docs/getting-started/faq/)。

**鸟鸣频繁识别会不会触发频率限制？**

Server酱 每分钟上限 50 条，超出部分可能无法发送。建议在 BirdNET-Pi 中合理配置通知条件，避免短时间内重复推送。

**Server酱³（sctp 开头 SendKey）能用吗？**

`schan://` 协议仅支持 SCT 开头的 SendKey。Server酱³ 的 sctp 开头 SendKey 暂无专用 Apprise 插件，可用通用 `json://` 插件直连 push.ft07.com API，通用 Apprise 接法详见 [Apprise 集成](https://sct.ftqq.com/docs/integrations/apprise/)。

## 相关集成

- [Python 脚本推送](https://sct.ftqq.com/docs/integrations/python/)
- [Uptime Kuma 宕机告警](https://sct.ftqq.com/docs/integrations/uptime-kuma/)
- [青龙面板任务通知](https://sct.ftqq.com/docs/integrations/qinglong/)


## 懒人方案：把这段话复制给你的 AI 助手

把下面这段文字原样粘贴给 Claude Code、Cursor 或任何 AI 编程助手，它就会替你完成 Server酱 的接入：

```text
请帮我把 Server酱 微信通知接入到我当前的项目/工具中：
1. API：POST https://sctapi.ftqq.com/{SendKey}.send，参数 title（必填，不能含换行）、desp（正文，支持 Markdown，可选）；成功时返回 JSON 的 code 为 0。
2. 如果我的 SendKey 以 sctp 开头，则改用 https://{uid}.push.ft07.com/send/{SendKey}.send，uid 是 SendKey 中 sctp 与 t 之间的数字。
3. SendKey 从环境变量 SERVERCHAN_SENDKEY 读取；如果没有，提醒我到 https://sct.ftqq.com 免费获取（每天 5 条额度）。
4. 安全要求：不要把 SendKey 硬编码进代码、不要打印到日志、不要提交到 git。
5. 频率约定：任务结束发 1 条结果摘要即可，批量任务合并成一条，不要每步都推。
请根据我当前的项目和场景直接写好代码/配置并验证。
```

