diff --git a/homepage/index.php b/homepage/index.php
index dd45925..d39162a 100644
--- a/homepage/index.php
+++ b/homepage/index.php
@@ -5,7 +5,7 @@ body::-webkit-scrollbar {
display:none
}
-
+
diff --git a/homepage/style.css b/homepage/style.css
index 6cc70ea..a912b7e 100644
--- a/homepage/style.css
+++ b/homepage/style.css
@@ -776,4 +776,8 @@ form#views button .updatenumber {
.brbanner h1 {
margin:0px;
font-size: xx-large;
+}
+
+.testbtn {
+ background:#77c487;
}
\ No newline at end of file
diff --git a/scripts/config.php b/scripts/config.php
index cbf3d25..060d044 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -130,6 +130,31 @@ if(isset($_GET["latitude"])){
shell_exec("sudo restart_services.sh");
}
+if(isset($_GET['sendtest']) && $_GET['sendtest'] == "true") {
+ $user = shell_exec("awk -F: '/1000/{print $1}' /etc/passwd");
+ $home = shell_exec("awk -F: '/1000/{print $6}' /etc/passwd");
+ $home = trim($home);
+ $cf = explode("\n",$_GET['apprise_config']);
+ $cf = "'".implode("' '", $cf)."'";
+
+ $title = $_GET['apprise_notification_title'];
+ $body = $_GET['apprise_notification_body'];
+
+ $title = str_replace("\$comname", "Common Name", $title);
+ $title = str_replace("\$sciname", "Scientific Name", $title);
+ $title = str_replace("\$confidence", "0.8", $title);
+ $title = str_replace("\$listenurl", "http://example.com", $title);
+
+ $body = str_replace("\$comname", "Common Name", $body);
+ $body = str_replace("\$sciname", "Scientific Name", $body);
+ $body = str_replace("\$confidence", "0.85", $body);
+ $body = str_replace("\$listenurl", "http://example.com/listenurl=", $body);
+
+ shell_exec($home."/BirdNET-Pi/birdnet/bin/apprise -vv -t '".$title."' -b '".$body."' ".$cf." ");
+
+ die();
+}
+
?>