diff --git a/scripts/advanced.php b/scripts/advanced.php
index 765016cb..fd484d49 100644
--- a/scripts/advanced.php
+++ b/scripts/advanced.php
@@ -196,6 +196,15 @@
$contents = preg_replace("/RAW_SPECTROGRAM=.*/", "RAW_SPECTROGRAM=0", $contents);
}
+ if(isset($_GET["rare_species_threshold"])) {
+ $rare_species_threshold = $_GET["rare_species_threshold"];
+ if(strcmp($rare_species_threshold, $config['RARE_SPECIES_THRESHOLD']) !== 0) {
+ $contents = preg_replace("/RARE_SPECIES_THRESHOLD=.*/", "RARE_SPECIES_THRESHOLD=$rare_species_threshold", $contents);
+ }
+ } else {
+ $contents = preg_replace("/RARE_SPECIES_THRESHOLD=.*/", "RARE_SPECIES_THRESHOLD=30", $contents);
+ }
+
if(isset($_GET["custom_image"])) {
$custom_image = $_GET["custom_image"];
if(strcmp($custom_image,$config['CUSTOM_IMAGE']) !== 0) {
@@ -434,6 +443,10 @@ function collectrtspUrls() {
>
This allows you to remove the axes and labels of the spectrograms that are generated by Sox for each detection for a cleaner appearance.
+ + +This setting defines after how many days since last detection a species is considered rare. Default is 30 days.
diff --git a/scripts/install_config.sh b/scripts/install_config.sh
index 5fdf4521..57dd458a 100755
--- a/scripts/install_config.sh
+++ b/scripts/install_config.sh
@@ -270,6 +270,9 @@ RAW_SPECTROGRAM=0
CUSTOM_IMAGE=
CUSTOM_IMAGE_TITLE=""
+## RARE_SPECIES_THRESHOLD defines after how many days a species is considered as rare and highlighted on overview page
+RARE_SPECIES_THRESHOLD=30
+
## These are just for debugging
LAST_RUN=
THIS_RUN=
diff --git a/scripts/overview.php b/scripts/overview.php
index 3abc40e9..7394811c 100644
--- a/scripts/overview.php
+++ b/scripts/overview.php
@@ -313,6 +313,143 @@ function setModalText(iter, title, text, authorlink, photolink, licenseurl) {
+
+
detected today!+ 5): ?> +
|