Create birdnet_to_mqtt.sh

This commit is contained in:
Alexandre
2024-07-09 20:26:38 +02:00
committed by GitHub
parent 45fff2aadf
commit 86469dbc67

View File

@@ -0,0 +1,7 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
if bashio::services.available 'mqtt'; then
echo "Starting service: mqtt publish"
"$PYTHON_VIRTUAL_ENV" /usr/bin/birdnet_to_mqtt.py &>/proc/1/fd/1
fi