Skip to content

A live bird collage card for your Home Assistant dashboard.

Update Birdnet Snipper to insert out new setting options

jaredb7fa5662fa0069
diff --git a/scripts/advanced.php b/scripts/advanced.php
index e4a88e2e..5e1799c9 100644
--- a/scripts/advanced.php
+++ b/scripts/advanced.php
@@ -560,7 +560,7 @@ foreach($formats as $format){
<td>
<h2>Logging</h2>
<div class="callout callout-warning">
- <h4>Note:</h4>
+ <b>Note:</b>
It is recommended that the Log Level be set to <b>Error</b> on production systems to keep output
manageable by only reporting errors.
<br>
@@ -627,8 +627,8 @@ foreach($formats as $format){
<small>
<b>'error'</b> - Show all errors, including ones which can be recovered from. This is the default value.<br>
<b>'warning'</b> - Show all warnings and errors. Any message related to possibly incorrect or unexpected events will be shown.<br>
- <b>'info'</b> - Show informative messages and output during processing. This is in addition to warnings and errors. <br>
- <b>'debug'</b> - Show everything, including debugging information.<br>
+ <b>'info'</b> - Show informative messages and output during processing. This is in addition to warnings and errors. This will produce more output, use this for initial debugging.<br>
+ <b>'debug'</b> - Show everything, including debugging information. Produces a lot of output.<br>
</small>
</td>
</tr>
diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.sh
index 1d03b0bc..00dea4fb 100755
--- a/scripts/update_birdnet_snippets.sh
+++ b/scripts/update_birdnet_snippets.sh
@@ -191,6 +191,18 @@ if ! grep RTSP_STREAM_TO_LIVESTREAM /etc/birdnet/birdnet.conf &>/dev/null;then
sudo -u$USER echo "RTSP_STREAM_TO_LIVESTREAM=\"0\"" >> /etc/birdnet/birdnet.conf
fi
+# For new Advanced Setting Logging level options,
+if ! grep LogLevel_BirdnetRecordingService /etc/birdnet/birdnet.conf &>/dev/null;then
+ sudo -u$USER echo "LogLevel_BirdnetRecordingService=\"error\"" >> /etc/birdnet/birdnet.conf
+fi
+
+if ! grep LogLevel_LiveAudioStreamService /etc/birdnet/birdnet.conf &>/dev/null;then
+ sudo -u$USER echo "LogLevel_LiveAudioStreamService=\"error\"" >> /etc/birdnet/birdnet.conf
+fi
+
+if ! grep LogLevel_SpectrogramViewerService /etc/birdnet/birdnet.conf &>/dev/null;then
+ sudo -u$USER echo "LogLevel_SpectrogramViewerService=\"error\"" >> /etc/birdnet/birdnet.conf
+fi
sudo systemctl daemon-reload
restart_services.sh