From ec34a2f16ea80797a4822fe0aae9ef3c54166bfc Mon Sep 17 00:00:00 2001 From: thor0215 Date: Tue, 25 Jun 2024 09:24:15 -0500 Subject: [PATCH 1/2] [Birdnet-go] Queue is full! #1449 --- birdnet-go/config.json | 3 ++- birdnet-go/rootfs/etc/cont-init.d/33-mqtt.sh | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 birdnet-go/rootfs/etc/cont-init.d/33-mqtt.sh diff --git a/birdnet-go/config.json b/birdnet-go/config.json index 7d311ba2a..bc64d54d0 100644 --- a/birdnet-go/config.json +++ b/birdnet-go/config.json @@ -102,7 +102,8 @@ "networkdisks": "str?" }, "services": [ - "mysql:want" + "mysql:want", + "mqtt:want" ], "slug": "birdnet-go", "udev": true, diff --git a/birdnet-go/rootfs/etc/cont-init.d/33-mqtt.sh b/birdnet-go/rootfs/etc/cont-init.d/33-mqtt.sh new file mode 100644 index 000000000..2dc29425c --- /dev/null +++ b/birdnet-go/rootfs/etc/cont-init.d/33-mqtt.sh @@ -0,0 +1,15 @@ +#!/usr/bin/with-contenv bashio +# shellcheck shell=bash +set -e + +# Gives mqtt information + +if bashio::services.available 'mqtt'; then + bashio::log.green "---" + bashio::log.yellow "MQTT addon is active on your system! Add the MQTT details below to the Birdnet-go config.yaml :" + bashio::log.blue "MQTT user : $(bashio::services "mqtt" "username")" + bashio::log.blue "MQTT password : $(bashio::services "mqtt" "password")" + bashio::log.blue "MQTT broker : tcp://$(bashio::services "mqtt" "host"):$(bashio::services "mqtt" "port")" + bashio::log.green "---" +fi + From 69fe0a2760e2b373671b3b0833625b9731efaac4 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 25 Jun 2024 21:49:18 +0200 Subject: [PATCH 2/2] Update config.json --- birdnet-go/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdnet-go/config.json b/birdnet-go/config.json index bc64d54d0..1491dd476 100644 --- a/birdnet-go/config.json +++ b/birdnet-go/config.json @@ -108,5 +108,5 @@ "slug": "birdnet-go", "udev": true, "url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-go", - "version": "0.5.5" + "version": "0.5.5-2" }