Skip to content

A live bird collage card for your Home Assistant dashboard.

another ugh

mcguirepr89e5f02994b845
diff --git a/homepage/style.css b/homepage/style.css
index 38e2586f..83d6730f 100644
--- a/homepage/style.css
+++ b/homepage/style.css
@@ -299,11 +299,11 @@ body::-webkit-scrollbar {
margin-left: auto;
margin-right: auto;
}
- .overview span{
+ .overview span {
margin-right: auto;
margin-left: auto;
}
- .overview span img,.overview span table {
+ .overview span img,.overview span table,.overview img {
margin: 0;
width: 100%;
}
@@ -378,7 +378,7 @@ body::-webkit-scrollbar {
margin-right: auto;
margin-left: auto;
}
- .overview span img,.overview span table {
+ .overview span img,.overview span table,.overview img {
margin: 0;
width: 100%;
}
diff --git a/scripts/overview.php b/scripts/overview.php
index 39284f5b..dfadc51b 100644
--- a/scripts/overview.php
+++ b/scripts/overview.php
@@ -89,6 +89,13 @@ $speciestally = $result5->fetchArray(SQLITE3_ASSOC);
</td></tr></table>
</div>
<br><br>
+<?php
+if (file_exists('/home/pi/BirdSongs/Extracted/Charts/'.$chart)) {
+ echo "<img src=\"/Charts/$chart?nocache=time()\">";
+} else {
+ echo "<p>No Detections For Today</p>";
+}
+?>
<span>
<table>
<h3>Most Recent Detection: <span style="font-weight: normal;"><?php echo $mostrecent['Date']." ".$mostrecent['Time'];?></span></h3>
@@ -103,13 +110,6 @@ $speciestally = $result5->fetchArray(SQLITE3_ASSOC);
</form>
</tr>
</table>
-<?php
-if (file_exists('/home/pi/BirdSongs/Extracted/Charts/'.$chart)) {
- echo "<img src=\"/Charts/$chart?nocache=time()\">";
-} else {
- echo "<p>No Detections For Today</p>";
-}
-?>
<h3 class="centered">Currently Analyzing</h3>
<img class="centered" src='/spectrogram.png?nocache=<?php echo time();?>' >
</span>