BirdNET-Pi + pushplus:认出鸟鸣推到微信
效果:树莓派识别到鸟种后,微信收到物种名称,不用一直开着 Web 界面听录音。
BirdNET-Pi 没有内置 pushplus。优先在设置里填 Apprise URL;没有该栏时,用检测后脚本 curl。
前置条件
- 一个 pushplus token(官网扫码获取)
- 已能打开 BirdNET-Pi 的 Tools 页面
配置步骤
- 打开 Tools → Settings,找到 Notifications 或 Apprise Notifications。
- 启用通知,Apprise URL 填:
pushplus://你的token
标题/正文会映射为 title / content。置信度、最小间隔按页面上的阈值调好,避免同一种鸟连推。 3. 只有 Webhook URL 时,用 GET 固定文案(检测 JSON 不会自动当 content):
https://www.pushplus.plus/send?token=你的token&title=BirdNET检测到鸟鸣&content=请打开BirdNET-Pi查看物种
- 没有通知栏时,在检测成功的自定义脚本(或
birdnet.conf里指定的 hook)末尾:
curl -s -X POST "https://www.pushplus.plus/send" \
-H "Content-Type: application/json" \
-d "{\"token\":\"$PUSH_PLUS_TOKEN\",\"title\":\"BirdNET 识别\",\"content\":\"species=${SPECIES} confidence=${CONFIDENCE}\",\"template\":\"markdown\"}"
环境变量名以你用的脚本为准,content 必填。完整字段见 消息接口。
验证
curl -X POST "https://www.pushplus.plus/send" \
-H "Content-Type: application/json" \
-d '{"token":"你的token","title":"BirdNET-Pi 配置测试","content":"token 可用","template":"markdown"}'
再在 Tools 里播一段测试录音,或等下一次真实识别。
常见问题
识别日志有、微信没有? 先 curl 通 token;树莓派需能访问 www.pushplus.plus。见 收不到消息、接口限制。
同一种鸟刷屏? 提高置信度,并加大「同一物种冷却时间」。