Skip to content

A live bird collage card for your Home Assistant dashboard.

No detections for today

ehpersonal383ac167808fde
diff --git a/scripts/overview.php b/scripts/overview.php
index cd59d9c6..25d77b71 100644
--- a/scripts/overview.php
+++ b/scripts/overview.php
@@ -136,6 +136,9 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse
</table> <?php break;
}
}
+ if($iterations == 0) {
+ echo "<h3>No Detections For Today.</h3>";
+ }
die();
}
diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php
index 60a0feaa..6deadf57 100644
--- a/scripts/todays_detections.php
+++ b/scripts/todays_detections.php
@@ -199,6 +199,10 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) {
</table>
<?php
+ if($iterations == 0) {
+ echo "<h3>No Detections For Today.</h3>";
+ }
+
// don't show the button if there's no more detections to be displayed, we're at the end of the list
if($iterations >= 40 && isset($_GET['display_limit']) && is_numeric($_GET['display_limit'])) { ?>
<center>