From ef3916a0436472825e060b31710e3a4bb2eeb782 Mon Sep 17 00:00:00 2001 From: gerritzen <19152801+gerritzen@users.noreply.github.com> Date: Wed, 3 May 2023 23:58:49 +0200 Subject: [PATCH 1/4] Fixed year number --- scripts/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.php b/scripts/config.php index 0dcdbe5..809f5e4 100644 --- a/scripts/config.php +++ b/scripts/config.php @@ -476,7 +476,7 @@ 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.3_Model_FP16 (2022)

+
BirdNET_GLOBAL_3K_V2.3_Model_FP16 (2023)

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 ]
From fdc175255ff01eb42ffeae6ea07906f4886f1ae4 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Fri, 5 May 2023 21:36:59 -0400 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b750d8f..8f5cc6e 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Currently listening in these countries . . . that I know of . . . ## Features * **24/7 recording and automatic identification** of bird songs, chirps, and peeps using BirdNET machine learning -* **Automatic extraction and cataloguing** of bird sounds +* **Automatic extraction and cataloguing** of bird clips from full-length recordings * **Tools to visualize your recorded bird data** and analyze trends * **Live audio stream and spectrogram** * **Automatic disk space management** that periodically purges old audio files From 520e9825d8ada5782904ee959c738a15ec9d1a2a Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Sat, 6 May 2023 13:37:11 -0400 Subject: [PATCH 3/4] highlight current hour label on daily_plot --- scripts/daily_plot.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/scripts/daily_plot.py b/scripts/daily_plot.py index d42b76c..db989ae 100755 --- a/scripts/daily_plot.py +++ b/scripts/daily_plot.py @@ -81,24 +81,25 @@ plot.set(xlabel="Detections") # Generate crosstab matrix for heatmap plot - heat = pd.crosstab(df_plt_top10_today['Com_Name'], df_plt_top10_today['Hour of Day']) + # Order heatmap Birds by frequency of occurrance heat.index = pd.CategoricalIndex(heat.index, categories=freq_order) heat.sort_index(level=0, inplace=True) - hours_in_day = pd.Series(data=range(0, 24)) heat_frame = pd.DataFrame(data=0, index=heat.index, columns=hours_in_day) heat = (heat + heat_frame).fillna(0) -# Generatie heatmap plot +# Get current hour +current_hour = now.hour + +# Generate heatmap plot plot = sns.heatmap( heat, norm=LogNorm(), annot=True, - annot_kws={ - "fontsize": 7}, + annot_kws={"fontsize": 7}, fmt="g", cmap=pal, square=False, @@ -106,9 +107,18 @@ plot = sns.heatmap( linewidths=0.5, linecolor="Grey", ax=axs[1], - yticklabels=False) + yticklabels=False +) + +# Set color and weight of tick label for current hour +for label in plot.get_xticklabels(): + if int(label.get_text()) == current_hour: + label.set_color('yellow') + plot.set_xticklabels(plot.get_xticklabels(), rotation=0, size=7) + + # Set heatmap border for _, spine in plot.spines.items(): spine.set_visible(True) From bddd8b3b9f31629e5b0c2d66a4b93d93457fc92d Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Sat, 6 May 2023 15:28:02 -0400 Subject: [PATCH 4/4] Tim's requests https://github.com/mcguirepr89/BirdNET-Pi/discussions/184#discussioncomment-5825259 --- scripts/email_template | 4 +++- scripts/server.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/email_template b/scripts/email_template index 72a559e..ca56c88 100644 --- a/scripts/email_template +++ b/scripts/email_template @@ -4,7 +4,9 @@ Below is the information I would like to use to request a BirdWeather ID %0A%0A Latitude={{ LATITUDE }}%0A Longitude={{ LONGITUDE }}%0A -Location= [ Create a location name ]%0A +City= [ City ]%0A +State= [ State ]%0A +Country= [ Country ]%0A %0A%0A Thank you so much!%0A [ Your Name Here ] diff --git a/scripts/server.py b/scripts/server.py index d735160..ccae348 100755 --- a/scripts/server.py +++ b/scripts/server.py @@ -585,7 +585,7 @@ def handle_client(conn, addr): post_scientificName = "\"scientificName\": \"" + entry[0].split('_')[0] + "\"," if model == "BirdNET_GLOBAL_3K_V2.3_Model_FP16": - post_algorithm = "\"algorithm\": " + "\"2p2\"" + "," + post_algorithm = "\"algorithm\": " + "\"2p3\"" + "," else: post_algorithm = "\"algorithm\": " + "\"alpha\"" + ","