This commit is contained in:
Alexandre
2024-04-23 12:20:55 +02:00
parent db89d1a8f4
commit c5637269a7
10 changed files with 401 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/command/with-contenv bashio
# shellcheck shell=bash
set -e
#################
# INITALISATION #
#################
bashio::log.info "ALSA_CARD option is set to $(bashio::config "ALSA_CARD"). If the microphone doesn't work, please adapt it"
echo " "
########################
# CONFIGURE birdnet-pi #
########################
bashio::log.info "Starting app..."
COMMAND="$(bashio::config "COMMAND")"
# shellcheck disable=SC2086
/usr/bin/birdnet-pi $COMMAND & true
# Wait for app to become available to start nginx
bashio::net.wait_for 8080 localhost 900
bashio::log.info "Starting NGinx..."
exec nginx