Skip to content

A live bird collage card for your Home Assistant dashboard.

Menu: fix broken 'logs' link + add 'detections' shortcut

Twarner4914fea7501461f
diff --git a/.gitignore b/.gitignore
index be5e7541..339d6a84 100644
--- a/.gitignore
+++ b/.gitignore
@@ -47,3 +47,4 @@ HUMAN.txt
include_species_list.txt
whitelist_species_list.txt
/nbproject/private/
+.DS_Store
diff --git a/avian/api/menu.php b/avian/api/menu.php
index deaa13e7..83dc6804 100644
--- a/avian/api/menu.php
+++ b/avian/api/menu.php
@@ -23,15 +23,15 @@ if (getenv('AV_REQUIRE_AUTH') === '1' && empty($_SERVER['HTTP_AUTHORIZATION']))
exit;
}
+// All hrefs are the canonical paths BirdNET-Pi's views.php recognises
+// (lifted from homepage/views.php). AvianVisitors took over `/`, so
+// the stock home is at /index.php.
echo json_encode([
'items' => [
- // Stock BirdNET-Pi UI (AvianVisitors took over `/`, so the stock
- // UI is reachable at /index.php directly)
- ['label' => 'birdnet-pi', 'href' => '/index.php', 'native' => false],
- // BirdNET-Pi log view (php served at /views.php)
- ['label' => 'logs', 'href' => '/views.php?view=Log+Out', 'native' => false],
- ['label' => 'system', 'href' => '/views.php?view=Services', 'native' => false],
- // AvianVisitors source
- ['label' => 'github', 'href' => 'https://github.com/Twarner491/AvianVisitors', 'native' => false],
+ ['label' => 'birdnet-pi', 'href' => '/index.php', 'native' => false],
+ ['label' => 'detections', 'href' => '/views.php?view=Todays+Detections', 'native' => false],
+ ['label' => 'log', 'href' => '/views.php?view=View+Log', 'native' => false],
+ ['label' => 'system', 'href' => '/views.php?view=Services', 'native' => false],
+ ['label' => 'github', 'href' => 'https://github.com/Twarner491/AvianVisitors', 'native' => false],
],
]);