Skip to content

A live bird collage card for your Home Assistant dashboard.

typo

mcguirepr897e2ffcb9b53d
diff --git a/scripts/stats.php b/scripts/stats.php
index cfa2c478..fce469b9 100644
--- a/scripts/stats.php
+++ b/scripts/stats.php
@@ -206,7 +206,7 @@ array_push($excludelines, $results['Date']."/".$comname."/".$results['File_Name'
<input type="hidden" name="sort" value="<?php if(isset($_GET['sort'])){echo $_GET['sort'];}?>">
<td class="relative"><a target="_blank" href="index.php?filename=<?php echo $results['File_Name']; ?>"><img class="copyimage" width=25 src="images/copy.png"></a><input type="hidden" name="view" value="Species Stats">
<button type="submit" name="species" value="<?php echo $results['Com_Name'];?>"><?php echo $results['Com_Name'];?></button><br><b>Occurrences:</b> <?php echo $results['COUNT(*)'];?><br>
- <b>Max Confidence:</b> <?php echo $percent = round((float)round($results['Confidence'],2) * 100 ) . '%';?><br>
+ <b>Max Confidence:</b> <?php echo $percent = round((float)round($results['MAX(Confidence)'],2) * 100 ) . '%';?><br>
<b>Best Recording:</b> <?php echo $results['Date']." ".$results['Time'];?><br><video onplay='setLiveStreamVolume(0)' onended='setLiveStreamVolume(1)' onpause='setLiveStreamVolume(1)' controls poster="<?php echo $filename.".png";?>" preload="none" title="<?php echo $filename;?>"><source src="<?php echo $filename;?>" type="audio/mp3"></video></td>
</tr>
<?php
@@ -218,4 +218,4 @@ editfile($home."/BirdNET-Pi/scripts/disk_check_exclude.txt","##start","##end",$e
</div>
</div>
</body>
-</html>
\ No newline at end of file
+</html>