Skip to content

A live bird collage card for your Home Assistant dashboard.

using webroot for file check on `$count`

mcguirepr8957bbc83a4c23
diff --git a/scripts/advanced.php b/scripts/advanced.php
index 24f4879f..db3140ce 100644
--- a/scripts/advanced.php
+++ b/scripts/advanced.php
@@ -165,8 +165,8 @@ if(isset($_GET['submit'])) {
fwrite($fh2, $contents2);
}
-$count_included = count(file("/home/pi/BirdNET-Pi/include_species_list.txt"));
-$count_labels = count(file("/home/pi/BirdNET-Pi/model/labels.txt"));
+$count_included = count(file("./scripts/include_species_list.txt"));
+$count_labels = count(file("./scripts/labels.txt"));
if($count_included > 0) {
$count = $count_included;