Skip to content

A live bird collage card for your Home Assistant dashboard.

Update play.php

ehpersonal38495a787d14a7
diff --git a/scripts/play.php b/scripts/play.php
index 8f4a3a6a..dc3f591c 100644
--- a/scripts/play.php
+++ b/scripts/play.php
@@ -243,7 +243,7 @@ if(!isset($_GET['species']) && !isset($_GET['filename'])){
$date = $results['Date'];
if(realpath($home."/BirdSongs/Extracted/By_Date/".$date) !== false){
echo "<td>
- <button action=\"submit\" name=\"date\" value=\"$date\">$date</button></td></tr>";}}
+ <button action=\"submit\" name=\"date\" value=\"$date\">".($date == date('Y-m-d') ? "Today" : $date)."</button></td></tr>";}}
#By Species
} elseif($view == "byspecies") {