From ace05447df56cfdc578e8e48f2ea5c460b32e09a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 8 Jul 2024 14:11:35 +0200 Subject: [PATCH] Add MQTT_DISABLED --- birdnet-pi/rootfs/etc/cont-init.d/33-mqtt.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/birdnet-pi/rootfs/etc/cont-init.d/33-mqtt.sh b/birdnet-pi/rootfs/etc/cont-init.d/33-mqtt.sh index 681bed1e5..41020c51b 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/33-mqtt.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/33-mqtt.sh @@ -2,7 +2,7 @@ # shellcheck shell=bash set -e -if bashio::services.available 'mqtt'; then +if bashio::services.available 'mqtt' && ! bashio::config.true 'MQTT_DISABLED' ; then bashio::log.green "---" bashio::log.blue "MQTT addon is active on your system! Birdnet-pi is now automatically configured to send its ouptut to MQTT" bashio::log.blue "MQTT user : $(bashio::services "mqtt" "username")" @@ -22,5 +22,4 @@ if bashio::services.available 'mqtt'; then # Start python "$PYTHON_VIRTUAL_ENV" /usr/bin/birdnet_to_mqtt.py &>/proc/1/fd/1 & true - fi