Skip to content

A live bird collage card for your Home Assistant dashboard.

fix: use hostname like the python code does

frederikb7225ca1d27d
diff --git a/scripts/config.php b/scripts/config.php
index a0ee0227..ed18c8d3 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -281,7 +281,7 @@ if(isset($_GET['sendtest']) && $_GET['sendtest'] == "true") {
if($config["BIRDNETPI_URL"] != "") {
$filename = $config["BIRDNETPI_URL"]."?filename=".$filename;
} else{
- $filename = "http://birdnetpi.local/"."?filename=".$filename;
+ $filename = "http://".$_SERVER['SERVER_NAME']."/"."?filename=".$filename;
}
$attach="";