Skip to content

A live bird collage card for your Home Assistant dashboard.

397 more info for debugging

ehpersonal3842de0bcc7d92
diff --git a/homepage/style.css b/homepage/style.css
index 19faf05b..6f093bba 100644
--- a/homepage/style.css
+++ b/homepage/style.css
@@ -780,7 +780,4 @@ form#views button .updatenumber {
.testbtn {
background:#77c487 !important;
-}
-#testsuccessmsg {
- font-size:small;
}
\ No newline at end of file
diff --git a/scripts/config.php b/scripts/config.php
index 3122b66f..e98b9b4f 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -150,7 +150,7 @@ if(isset($_GET['sendtest']) && $_GET['sendtest'] == "true") {
$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." ");
+ echo "<pre class=\"bash\">".shell_exec($home."/BirdNET-Pi/birdnet/bin/apprise -vv -t '".$title."' -b '".$body."' ".$cf." ")."</pre>";
die();
}
@@ -197,6 +197,7 @@ if (!isset($_SERVER['PHP_AUTH_USER'])) {
<script>
function sendTestNotification(e) {
+ document.getElementById("testsuccessmsg").innerHTML = "";
e.classList.add("disabled");
var apprise_notification_title = document.getElementsByName("apprise_notification_title")[0].value;
@@ -206,7 +207,7 @@ function sendTestNotification(e) {
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function() {
if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
- document.getElementById("testsuccessmsg").innerHTML = "Test sent! Make sure to Update Settings below."
+ document.getElementById("testsuccessmsg").innerHTML = this.responseText+" Test sent! Make sure to <b>Update Settings</b> below."
e.classList.remove("disabled");
}
}