A live bird collage card for your Home Assistant dashboard.
fix dark theme, fix running update from the ui
frederik633ee7855542
diff --git a/scripts/config.php b/scripts/config.phpindex 7892b995..6922d602 100644--- a/scripts/config.php+++ b/scripts/config.php@@ -491,7 +491,7 @@ https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}<label for="apprise_notification_title">Notification Title: </label><input name="apprise_notification_title" style="width: 100%" type="text" value="<?php print($config['APPRISE_NOTIFICATION_TITLE']);?>" /><br><label for="apprise_notification_body">Notification Body: </label>- <textarea name="apprise_notification_body" rows="5" type="text" ><?php print($apprise_notification_body);?></textarea>+ <textarea class="testbtn" name="apprise_notification_body" rows="5" type="text" ><?php print($apprise_notification_body);?></textarea><input type="checkbox" name="apprise_notify_new_species" <?php if($config['APPRISE_NOTIFY_NEW_SPECIES'] == 1 && filesize($home."/BirdNET-Pi/apprise.txt") != 0) { echo "checked"; };?> ><label for="apprise_notify_new_species">Notify each new infrequent species detection (<5 visits per week)</label><br><input type="checkbox" name="apprise_notify_new_species_each_day" <?php if($config['APPRISE_NOTIFY_NEW_SPECIES_EACH_DAY'] == 1 && filesize($home."/BirdNET-Pi/apprise.txt") != 0) { echo "checked"; };?> >diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.shindex 42cc8de6..4ac57601 100755--- a/scripts/update_birdnet_snippets.sh+++ b/scripts/update_birdnet_snippets.sh@@ -93,7 +93,7 @@ DST='APPRISE_NOTIFICATION_BODY="A \$comname (\$sciname) was just detected withsed -i --follow-symlinks -E "s/$SRC/$DST/" /etc/birdnet/birdnet.confif ! [ -f $HOME/BirdNET-Pi/body.txt ];then- grep -E '^APPRISE_NOTIFICATION_BODY=".*"' birdnet.conf | cut -d '"' -f 2 | sudo_with_user tee "$HOME/BirdNET-Pi/body.txt"+ grep -E '^APPRISE_NOTIFICATION_BODY=".*"' /etc/birdnet/birdnet.conf | cut -d '"' -f 2 | sudo_with_user tee "$HOME/BirdNET-Pi/body.txt"chmod g+w "$HOME/BirdNET-Pi/body.txt"sed -i --follow-symlinks -E 's/^APPRISE_NOTIFICATION_BODY=/#APPRISE_NOTIFICATION_BODY=/' /etc/birdnet/birdnet.conffi