Files
hassio-addons/birdnet-pipy/config.yaml
Yudong Sun 896adcd858 fix(birdnet-pipy): serve API via gunicorn + gevent worker
Replace the legacy Werkzeug dev server (python -m core.api) with a single
gunicorn GeventWebSocketWorker, matching upstream BirdNET-PiPy 0.7.0's
production-server migration (the add-on already builds 0.7.0 source).

Single worker is mandatory: live detections fan out via an in-process
Socket.IO emit (no Redis message_queue), so >1 worker would silently drop
Live Feed broadcasts. Heavy maintenance jobs cooperatively yield to keep the
worker responsive. Bound to 127.0.0.1:5002 for single-container use. Also
fixes the now-stale 'Python core.api' comment in nginx/run.

Add-on packaging change only -> 0.7.0 -> 0.7.0-1 (suffix convention; base
tracks upstream via the updater bot).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 08:33:01 -04:00

100 lines
1.7 KiB
YAML

arch:
- aarch64
- amd64
audio: true
description: BirdNET-PiPy bird detection with a modern web dashboard
devices:
- /dev/dri
- /dev/dri/card0
- /dev/dri/card1
- /dev/dri/renderD128
- /dev/vchiq
- /dev/video10
- /dev/video11
- /dev/video12
- /dev/video13
- /dev/video14
- /dev/video15
- /dev/video16
- /dev/ttyUSB0
- /dev/sda
- /dev/sdb
- /dev/sdc
- /dev/sdd
- /dev/sde
- /dev/sdf
- /dev/sdg
- /dev/nvme
- /dev/nvme0
- /dev/nvme0n1
- /dev/nvme0n1p1
- /dev/nvme0n1p2
- /dev/mmcblk
- /dev/fuse
- /dev/sda1
- /dev/sdb1
- /dev/sdc1
- /dev/sdd1
- /dev/sde1
- /dev/sdf1
- /dev/sdg1
- /dev/sda2
- /dev/sdb2
- /dev/sdc2
- /dev/sdd2
- /dev/sde2
- /dev/sdf2
- /dev/sdg2
- /dev/sda3
- /dev/sdb3
- /dev/sda4
- /dev/sdb4
- /dev/sda5
- /dev/sda6
- /dev/sda7
- /dev/sda8
- /dev/nvme0
- /dev/nvme1
- /dev/nvme2
environment:
PGID: "0"
PUID: "0"
hassio_api: true
hassio_role: manager
homeassistant_api: true
image: ghcr.io/alexbelgium/birdnet-pipy-{arch}
ingress: true
ingress_stream: true
init: false
map:
- addon_config:rw
- ssl:rw
- share:rw
name: BirdNET-PiPy
options:
env_vars: []
ICECAST_PASSWORD: ''
data_location: /config/data
panel_icon: mdi:bird
ports:
80/tcp: 8011
ports_description:
80/tcp: Web UI
schema:
env_vars:
- name: match(^[A-Za-z0-9_]+$)
value: str?
ICECAST_PASSWORD: str?
certfile: str?
cifsdomain: str?
cifspassword: str?
cifsusername: str?
data_location: str
keyfile: str?
localdisks: str?
networkdisks: str?
ssl: bool?
slug: birdnet-pipy
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pipy
version: "0.7.0-1"