1
0

Webhook final fixes

This commit is contained in:
Anna Christina Naß 2025-07-07 20:48:12 +02:00
parent f6717560c0
commit 10dafd2bdb
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<?php
$hawebhook = "http://homeassistant:8123/api/webhook/plweb"; // Webhook-URL von Home Assistant
$hawebhook = "http://homie:8123/api/webhook/plweb"; // Webhook-URL von Home Assistant
$dbconnstring = "host=localhost dbname=plweb user=plweb password=plweb";
$test_url = "https://example.com/plweb/test.php?";
$test_url = "https://sinclair.narnia.lan/plweb/test.php?id=";
?>

View File

@ -70,7 +70,7 @@ function test_finished() {
if ($rc) {
$id = pg_fetch_result($rc, 0, 0);
echo return_success();
send_notification("Test fertig. ID: " . $id, $test_url + $id);
send_notification("Test fertig. Ergebnis: " . $data['test']['result']['detectionResult'], $test_url . $id);
} else {
echo return_error(500, 'insert Datenbankfehler: ' . pg_last_error());
}