From c263202a62e333189bf2878fafc79784b1c537e5 Mon Sep 17 00:00:00 2001 From: lloydbayley Date: Fri, 18 Nov 2022 22:28:05 +1100 Subject: [PATCH 1/6] Update config.php --- scripts/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.php b/scripts/config.php index 476cc60..17174b6 100644 --- a/scripts/config.php +++ b/scripts/config.php @@ -23,7 +23,7 @@ if(isset($_GET["latitude"])){ $latitude = $_GET["latitude"]; $longitude = $_GET["longitude"]; $site_name = $_GET["site_name"]; - $site_name = preg_replace( '/[^A-Za-z0-9 ]/' , "", $site_name); + $site_name = preg_replace('/['|\'|\"|"]*/', '', $site_name); $birdweather_id = $_GET["birdweather_id"]; $apprise_input = $_GET['apprise_input']; $apprise_notification_title = $_GET['apprise_notification_title']; From a71898e8782c99f6b61e3a617259db2656ca73fd Mon Sep 17 00:00:00 2001 From: lloydbayley Date: Sat, 19 Nov 2022 00:13:15 +1100 Subject: [PATCH 2/6] Revert "Update config.php" This reverts commit c263202a62e333189bf2878fafc79784b1c537e5. --- scripts/config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/config.php b/scripts/config.php index 17174b6..14d4430 100644 --- a/scripts/config.php +++ b/scripts/config.php @@ -23,7 +23,8 @@ if(isset($_GET["latitude"])){ $latitude = $_GET["latitude"]; $longitude = $_GET["longitude"]; $site_name = $_GET["site_name"]; - $site_name = preg_replace('/['|\'|\"|"]*/', '', $site_name); + $site_name = str_replace('"', "", $site_name); + $site_name = str_replace('\'', "", $site_name); $birdweather_id = $_GET["birdweather_id"]; $apprise_input = $_GET['apprise_input']; $apprise_notification_title = $_GET['apprise_notification_title']; From 2e56b94e3d6c2d01a7df9fa1e73c2658fdb983b6 Mon Sep 17 00:00:00 2001 From: lloydbayley Date: Sat, 21 Jan 2023 01:27:02 +1100 Subject: [PATCH 3/6] Update index.php --- homepage/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homepage/index.php b/homepage/index.php index 887c881..3c61d35 100644 --- a/homepage/index.php +++ b/homepage/index.php @@ -52,7 +52,7 @@ if(isset($_GET['stream'])){

- "; +

$site_name

"; } else { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); From 3c421aae6270e65878deab7dcf2f11b4dfed9c2f Mon Sep 17 00:00:00 2001 From: lloydbayley Date: Fri, 7 Apr 2023 23:22:38 +1000 Subject: [PATCH 4/6] Update advanced.php Tidy Up UI --- scripts/advanced.php | 91 +++++++++++++++++++++++++++----------------- 1 file changed, 56 insertions(+), 35 deletions(-) diff --git a/scripts/advanced.php b/scripts/advanced.php index a0ddf28..4d7a0c9 100644 --- a/scripts/advanced.php +++ b/scripts/advanced.php @@ -268,9 +268,10 @@ if (file_exists('./scripts/thisrun.txt')) { $newconfig = parse_ini_file('./scripts/firstrun.ini'); } ?> -

Advanced Settings

+

Advanced Settings


-
+
+

Privacy Threshold

Value: %

@@ -285,7 +286,6 @@ if (file_exists('./scripts/thisrun.txt')) { output.innerHTML = this.value; document.getElementById("predictionCount").innerHTML = parseInt((this.value * )/100); } - //Keep track of how many new input fields were added var number_of_new_rtsp_urls_added = 0; //Function to insert new input fields @@ -339,18 +339,43 @@ if (file_exists('./scripts/thisrun.txt')) { }

If a Human is predicted anywhere among the top predictions, the sample will be considered of human origin and no data will be collected. Start with 1% and move up as needed.

- +

+ +
+

Full Disk Behaviour

When the disk becomes full, you can choose to 'purge' old files to make room for new ones or 'keep' your data and stop all services instead.
Note: you can exclude specific files from 'purge' on the Recordings page.

+

+
+ +

Audio Settings


Set Audio Card to 'default' to use PulseAudio (always recommended), or an ALSA recognized sound card device from the output of `arecord -L`. Choose the `dsnoop` device if it is available


Set Channels to the number of channels supported by your sound card. 32 max.

+ +
+

Set Recording Length in seconds between 6 and 60. Multiples of 3 are recommended, as BirdNET analyzes in 3-second chunks.

+ +
+

Set Extraction Length to something less than your Recording Length. Min=3 Max=Recording Length

+ + +

+
@@ -379,34 +404,25 @@ if (file_exists('./scripts/thisrun.txt')) { ?>

- add
+ Add

If you place an RTSP stream URL here, BirdNET-Pi will use that as its audio source.
Multiple streams are allowed but may have a impact on rPi performance.
Analyze ffmpeg CPU/Memory usage with top or htop if necessary.
To remove all and use the soundcard again, just delete the RTSP entries and click Save at the bottom.

- -
-

Set Recording Length in seconds between 6 and 60. Multiples of 3 are recommended, as BirdNET analyzes in 3-second chunks.

- -
-

Set Extraction Length to something less than your Recording Length. Min=3 Max=Recording Length

- - -

BirdNET-Pi Password

+

+
+

BirdNET-Pi Password

This password will protect your "Tools" page and "Live Audio" stream.

show
-

Custom URL

+

+
+

Custom URL

When you update the URL below, the web server will reload, so be sure to wait at least 30 seconds and then go to your new URL.


The BirdNET-Pi URL is how the main page will be reached. If you want your installation to respond to an IP address, place that here, but be sure to indicate "http://".
Example for IP: http://192.168.0.109
Example if you own your own domain: https://virginia.birdnetpi.com

+

+
+

Options

>

This allows you to quiet the display of how many commits your installation is behind by relative to the Github repo. This number appears next to "Tools" when you're 50 or more commits behind.

@@ -414,9 +430,10 @@ foreach($formats as $format){ >

This allows you to remove the axes and labels of the spectrograms that are generated by Sox for each detection for a cleaner appearance.

+

-
- +
+

Custom Image


@@ -424,8 +441,10 @@ 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.

+

-

BirdNET-Lite Settings

+
+

BirdNET-Lite Settings

@@ -442,15 +461,17 @@ foreach($formats as $format){
    Min=0.5, Max=1.5

+

-

Accessibility Settings

+
+

Accessibility Settings

Birdsongs Frequency shifting configuration:
this can be useful for hearing impaired people. Note: audio files will only be pitch shifted when the "FREQ SHIFT" button is manually clicked for a detection on the "Recordings" page.

- + - Choose here the shifting tool.
+ Choose the shifting tool here.

- using ffmpeg: + Using ffmpeg: e.g. origin=6000, target=4000, performs a shift of 2000 Hz down.
- +
- +

- using sox: + Using sox: e.g. shiftPitch=-1200 performs a shift of 1 octave down. This value is in 100ths of a semitone.
- +

- +



From a4b18fb06663fbd5885c57d6577ce80ad0901a19 Mon Sep 17 00:00:00 2001 From: lloydbayley Date: Fri, 7 Apr 2023 23:22:47 +1000 Subject: [PATCH 5/6] Update config.php Tidy Up UI --- scripts/config.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/config.php b/scripts/config.php index 1d782ec..fb5c79d 100644 --- a/scripts/config.php +++ b/scripts/config.php @@ -472,9 +472,10 @@ function runProcess() {
BirdNET_6K_GLOBAL_MODEL (2020)

This is the BirdNET-Lite model, with bird sound recognition for more than 6,000 species worldwide. This is the default option and will generally work very for people in most of the world.
+
BirdNET_GLOBAL_3K_V2.2_Model_FP16 (2022)

This is the BirdNET-Analyzer model, a newer work-in-progress project with aims to improve on the BirdNET-Lite model. Currently it only supports about 3,500 species worldwide, meaning for some regions (North America, Europe, Australia) it will usually outperform the BirdNET-Lite model, but for other regions it will be worse.

-
(in-depth technical write-up on the models here)
+
[ In-depth technical write-up on the models here ]

@@ -482,7 +483,7 @@ function runProcess() {

Location

(Optional)
- +

@@ -650,6 +651,7 @@ https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken} ?> > >
+