Files
hassio-addons/birdnet-pi/config.yaml
alexbelgium c53263a29d Fix BirdNET-Pi standalone mode: strip sudo at build time + ensure /run/php
The build-time hook that removes `sudo` from the BirdNET-Pi scripts was
injected at line 2 of newinstaller.sh, i.e. before the repo is cloned, so it
was a no-op and `sudo` remained in 25 scripts. Outside Home Assistant this
breaks every script invoked by a non-sudoers user (php-fpm's `caddy` user for
the WebUI System Controls, or `abc`) with "X is not in the sudoers file",
which is what prevented standalone (no-Supervisor) operation. Move the strip
to run after the installer clones the repo. Also drop the unused (and, in this
fork, incorrect) `$my_dir` -> `/config` rewrite.

Additionally create /run/php before starting PHP-FPM: it is normally created
by systemd-tmpfiles, which does not run in this container, so on a fresh/tmpfs
/run the socket cannot be bound and the WebUI never comes up.

Verified against the published 2026.07.10 image: the WebUI serves HTTP 200 and
restart_services.sh runs cleanly as the non-sudoers `caddy` user.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-10 16:08:41 +02:00

121 lines
2.1 KiB
YAML

arch:
- aarch64
- amd64
audio: true
backup: cold
description: Realtime acoustic bird classification system
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
image: ghcr.io/alexbelgium/birdnet-pi-{arch}
ingress: true
init: false
map:
- addon_config:rw
- media:rw
- share:rw
- ssl
name: BirdNET-pi
options:
env_vars: []
BIRDSONGS_FOLDER: /config/BirdSongs
LIVESTREAM_BOOT_ENABLED: false
MQTT_DISABLED: true
TZ: Europe/Paris
Use_tphakala_model_v2: false
certfile: fullchain.pem
keyfile: privkey.pem
ssl: false
panel_admin: false
panel_icon: mdi:bird
ports:
80/tcp: null
8081/tcp: 8081
ports_description:
80/tcp: "Optional : set to 80 to use caddy's automatic ssl"
8081/tcp: Web ui
privileged:
- SYS_ADMIN
- DAC_READ_SEARCH
schema:
env_vars:
- name: match(^[A-Za-z0-9_]+$)
value: str?
BIRDSONGS_FOLDER: str?
LIVESTREAM_BOOT_ENABLED: bool
MQTT_DISABLED: bool?
MQTT_HOST_manual: str?
MQTT_PASSWORD_manual: password?
MQTT_PORT_manual: int?
MQTT_USER_manual: str?
TZ: str?
Use_tphakala_model_v2: bool
certfile: str
cifsdomain: str?
cifspassword: str?
cifsusername: str?
keyfile: str
localdisks: str?
networkdisks: str?
pi_password: password
ssl: bool
services:
- mqtt:want
slug: birdnet-pi
tmpfs: true
udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi
usb: true
version: 2026.07.10-1
video: true