mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Create birdnet_to_mqtt.sh
This commit is contained in:
7
birdnet-pi/rootfs/helpers/birdnet_to_mqtt.sh
Normal file
7
birdnet-pi/rootfs/helpers/birdnet_to_mqtt.sh
Normal 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
|
||||
Reference in New Issue
Block a user