Skip to content

A live bird collage card for your Home Assistant dashboard.

no more birdnet_stats.sh

Patrick McGuire6fb031433e5c
diff --git a/scripts/viewdb.php b/scripts/viewdb.php
index 6f87301c..9703232b 100644
--- a/scripts/viewdb.php
+++ b/scripts/viewdb.php
@@ -42,7 +42,7 @@ $sql5 = "SELECT Com_Name,COUNT(*)
AS Total
FROM detections
GROUP BY Com_Name
- ORDER BY MAX(Confidence) DESC";
+ ORDER BY Total DESC";
$speciestally = $mysqli->query($sql5);
$mysqli->close();
diff --git a/templates/index.html b/templates/index.html
index e24803f3..a8463548 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -325,7 +325,7 @@ footer {
</header>
<hr>
<h2>
- <a href="http://birdnetpi.local:9090">
+ <a href="/viewdb.php">
<span class="name">🐦 Recognized Birds</span>
</a>
</h2>
@@ -429,16 +429,6 @@ footer {
</form>
</td>
- </tr>
- <tr class="file">
- <td></td>
- <td>
- <form action="/viewdb.php">
- <input type="submit" value="View Database">
- </form>
-
- </td>
- </tr>
</tbody>
</table>
</div>