From 3bdb53880c2b2b49fbc89cf5f5529f578f0fda28 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 14 Jul 2024 12:23:06 +0200 Subject: [PATCH] Update 33-mqtt.sh --- birdnet-pi/rootfs/etc/cont-init.d/33-mqtt.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 7e8cbe2c4..c0fe6b8c4 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/33-mqtt.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/33-mqtt.sh @@ -24,9 +24,10 @@ if bashio::services.available 'mqtt' && ! bashio::config.true 'MQTT_DISABLED' ; cp /helpers/birdnet_to_mqtt.sh /custom-services.d chmod 777 /usr/bin/birdnet_to_mqtt.py chmod 777 /custom-services.d/birdnet_to_mqtt.sh -elif bashio::config.has_value "MQTT_HOST_manual" && bashio::config.has_value "MQTT_PORT_manual" && bashio::config.has_value "MQTT_USER_manual" && bashio::config.has_value "MQTT_PASSWORD_manual"; then +elif bashio::config.has_value "MQTT_HOST_manual" && bashio::config.has_value "MQTT_PORT_manual"; then bashio::log.green "---" bashio::log.blue "MQTT is manually configured in the addon options" + bashio::log.blue "Birdnet-pi is now automatically configured to send its ouptut to MQTT" bashio::log.green "---" bashio::log.blue "Data will be posted to the topic : 'birdnet'" bashio::log.blue "Json data : {'Date', 'Time', 'ScientificName', 'CommonName', 'Confidence', 'SpeciesCode', 'ClipName', 'url'}"