A live bird collage card for your Home Assistant dashboard.
Fix nocache param in history.php
Jurriaan Pruis6c40e00d87c8
diff --git a/scripts/history.php b/scripts/history.phpindex deb240c1..a37cbe0f 100644--- a/scripts/history.php+++ b/scripts/history.php@@ -148,14 +148,16 @@ function submitID() {</table><?php // <br><button type="button" onclick="showDialog()">Export as CSV for eBird</button><br><br> ?><?php+$time = time();+if (file_exists('./Charts/'.$chart)) {- echo "<img src=\"/Charts/$chart?nocache=time()\" >";+ echo "<img src=\"/Charts/$chart?nocache=$time\" >";} else {echo "<p>No Charts for $theDate</p>";}echo "<hr>";if (file_exists('./Charts/'.$chart2)) {- echo "<img src=\"/Charts/$chart2?nocache=time()\">";+ echo "<img src=\"/Charts/$chart2?nocache=$time\">";} else {echo "<p>No Charts For $theDate</p>";}?>