A live bird collage card for your Home Assistant dashboard.
cleanup: make sure $kiosk is defined
frederik38841b4950f2
diff --git a/scripts/todays_detections.php b/scripts/todays_detections.phpindex c7d8500c..4c117fff 100644--- a/scripts/todays_detections.php+++ b/scripts/todays_detections.php@@ -24,10 +24,12 @@ if (file_exists('./scripts/thisrun.txt')) {$site_name = $config['SITE_NAME'];}- if($kiosk == true) {+if(isset($kiosk) && $kiosk == true) {echo "<div style='margin-top:20px' class=\"centered\"><h1><a><img class=\"topimage\" src=\"images/bnp.png\"></a></h1></div></div><div class=\"centered\"><h3>$site_name</h3></div><hr>";- }+} else {+ $kiosk = false;+}$db = new SQLite3('./scripts/birds.db', SQLITE3_OPEN_READONLY);$db->busyTimeout(1000);