Skip to content

A live bird collage card for your Home Assistant dashboard.

Update overview.php

ehpersonal389bdd049c5f42
diff --git a/scripts/overview.php b/scripts/overview.php
index 4eba52d7..d7007daa 100644
--- a/scripts/overview.php
+++ b/scripts/overview.php
@@ -73,6 +73,8 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse
die();
}
+if(isset($_GET['ajax_left_chart']) && $_GET['ajax_left_chart'] == "true") {
+
$totalcount = 0;
$todaycount = 0;
$hourcount = 0;
@@ -107,9 +109,7 @@ if($statement6 == False) {
}
$result6 = $statement6->execute();
$totalspeciestally = $result6->fetchArray(SQLITE3_ASSOC);
-
-
-if(isset($_GET['ajax_left_chart']) && $_GET['ajax_left_chart'] == "true") {
+
?>
<table>
<tr>