mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-09-02 02:03:31 +02:00
Port of the birdnet-pi fix in #2972. birdnet-pi-zach is a sibling wrapper around the zach7036 BirdNET-Pi fork, and carried the identical defect: 99-run.sh was byte-identical to birdnet-pi's before the fix, and 01-structure.sh still is, so this is an exact port rather than an adaptation — verified by diffing the result against the fixed file (identical). ALSA_CARD was copied straight into REC_CARD, but BirdNET-Pi passes REC_CARD to `arecord -D` and `ffmpeg -f alsa -i`, which want an ALSA PCM name. A card index like `1` became "Unknown PCM 1" and nothing recorded. It is now converted to plughw:CARD=<value>,DEV=0, with values that already are PCM names passed through. The sed also clobbered the symlink: 01-structure.sh links $HOME/BirdNET-Pi/birdnet.conf -> /config/birdnet.conf (confirmed present in this add-on, same CONFIG_FILES loop), and `sed -i` replaces a symlink with a regular file, detaching it from the file the WebUI writes to. Now edits /config/birdnet.conf with --follow-symlinks. version 2026.07.10.2 -> 2026.08.15, matching the new CHANGELOG heading. This add-on's updater.json has an empty upstream_version and is paused, so there is no upstream prefix to derive a patch counter from; the family's date convention governs instead. Without the bump Supervisor would never offer the rebuild and the fix would ship inert. Shellcheck: clean apart from two pre-existing SC2015 warnings in the unrelated AUDIO_GID block, which are present on master and left alone. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>