A live bird collage card for your Home Assistant dashboard.
Efficiency, the sequel!
ehpersonal385178a9876695
diff --git a/scripts/play.php b/scripts/play.phpindex 1e73cbf6..c32c7d76 100644--- a/scripts/play.php+++ b/scripts/play.php@@ -319,6 +319,12 @@ if(isset($_GET['filename'])){$confidence = $results['Confidence'];$filename_formatted = $date."/".$comname."/".$results['File_Name'];+ // add disk_check_exclude.txt lines into an array for grepping+ $fp = @fopen($home."/BirdNET-Pi/scripts/disk_check_exclude.txt", 'r');+ if ($fp) {+ $disk_check_exclude_arr = explode("\n", fread($fp, filesize($home."/BirdNET-Pi/scripts/disk_check_exclude.txt")));+ }+if($config["FULL_DISK"] == "purge") {if(!in_array($filename_formatted, $disk_check_exclude_arr)) {$imageicon = "images/unlock.svg";