From 86469dbc679676bd2f5f6b052ea117e082a05884 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 9 Jul 2024 20:26:38 +0200 Subject: [PATCH] Create birdnet_to_mqtt.sh --- birdnet-pi/rootfs/helpers/birdnet_to_mqtt.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 birdnet-pi/rootfs/helpers/birdnet_to_mqtt.sh diff --git a/birdnet-pi/rootfs/helpers/birdnet_to_mqtt.sh b/birdnet-pi/rootfs/helpers/birdnet_to_mqtt.sh new file mode 100644 index 000000000..1a48bfda5 --- /dev/null +++ b/birdnet-pi/rootfs/helpers/birdnet_to_mqtt.sh @@ -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