397 more info for debugging
This commit is contained in:
@@ -780,7 +780,4 @@ form#views button .updatenumber {
|
|||||||
|
|
||||||
.testbtn {
|
.testbtn {
|
||||||
background:#77c487 !important;
|
background:#77c487 !important;
|
||||||
}
|
|
||||||
#testsuccessmsg {
|
|
||||||
font-size:small;
|
|
||||||
}
|
}
|
||||||
+3
-2
@@ -150,7 +150,7 @@ if(isset($_GET['sendtest']) && $_GET['sendtest'] == "true") {
|
|||||||
$body = str_replace("\$confidence", "0.85", $body);
|
$body = str_replace("\$confidence", "0.85", $body);
|
||||||
$body = str_replace("\$listenurl", "http://example.com/listenurl=", $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();
|
die();
|
||||||
}
|
}
|
||||||
@@ -197,6 +197,7 @@ if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
function sendTestNotification(e) {
|
function sendTestNotification(e) {
|
||||||
|
document.getElementById("testsuccessmsg").innerHTML = "";
|
||||||
e.classList.add("disabled");
|
e.classList.add("disabled");
|
||||||
|
|
||||||
var apprise_notification_title = document.getElementsByName("apprise_notification_title")[0].value;
|
var apprise_notification_title = document.getElementsByName("apprise_notification_title")[0].value;
|
||||||
@@ -206,7 +207,7 @@ function sendTestNotification(e) {
|
|||||||
var xmlHttp = new XMLHttpRequest();
|
var xmlHttp = new XMLHttpRequest();
|
||||||
xmlHttp.onreadystatechange = function() {
|
xmlHttp.onreadystatechange = function() {
|
||||||
if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
|
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");
|
e.classList.remove("disabled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user