From ab67799958044cf0b812571e76821a7414922100 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Tue, 14 Mar 2023 22:34:22 -0400 Subject: [PATCH] CUSTOM_IMAGE fixes --- birdnet.conf-defaults | 2 +- scripts/advanced.php | 4 +++- scripts/install_config.sh | 2 +- scripts/update_birdnet_snippets.sh | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/birdnet.conf-defaults b/birdnet.conf-defaults index b329455..8cc19f0 100644 --- a/birdnet.conf-defaults +++ b/birdnet.conf-defaults @@ -211,7 +211,7 @@ HEARTBEAT_URL= ## updating picture of your garden, for example. CUSTOM_IMAGE= -CUSTOM_IMAGE_TITLE= +CUSTOM_IMAGE_TITLE="" ## These are just for debugging LAST_RUN= diff --git a/scripts/advanced.php b/scripts/advanced.php index ebd7d1e..4475b81 100644 --- a/scripts/advanced.php +++ b/scripts/advanced.php @@ -317,10 +317,12 @@ foreach($formats as $format){ >
+
+ +

These allow you to show a custom image on the Overview page of your BirdNET-Pi. This can be used to show a dynamically updating picture of your garden, for example.



-

diff --git a/scripts/install_config.sh b/scripts/install_config.sh index cdc386b..f60c077 100755 --- a/scripts/install_config.sh +++ b/scripts/install_config.sh @@ -238,7 +238,7 @@ RAW_SPECTROGRAM=0 ## updating picture of your garden, for example. CUSTOM_IMAGE= -CUSTOM_IMAGE_TITLE= +CUSTOM_IMAGE_TITLE="" ## These are just for debugging LAST_RUN= diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.sh index ff8a017..8b0bd28 100755 --- a/scripts/update_birdnet_snippets.sh +++ b/scripts/update_birdnet_snippets.sh @@ -178,7 +178,7 @@ if ! grep CUSTOM_IMAGE /etc/birdnet/birdnet.conf &>/dev/null;then sudo -u$USER echo "CUSTOM_IMAGE=" >> /etc/birdnet/birdnet.conf fi if ! grep CUSTOM_IMAGE_TITLE /etc/birdnet/birdnet.conf &>/dev/null;then - sudo -u$USER echo "CUSTOM_IMAGE_TITLE=" >> /etc/birdnet/birdnet.conf + sudo -u$USER echo "CUSTOM_IMAGE_TITLE=\"\"" >> /etc/birdnet/birdnet.conf fi