Skip to content

A live bird collage card for your Home Assistant dashboard.

Added clickable BirdNET-Pi version info in the SystemControls web page

Louis Croisez63326ea01aae
diff --git a/scripts/system_controls.php b/scripts/system_controls.php
index cf3dafb3..5f1cc360 100644
--- a/scripts/system_controls.php
+++ b/scripts/system_controls.php
@@ -44,4 +44,12 @@ function update() {
<form action="" method="GET">
<button type="submit" name="submit" value="sudo clear_all_data.sh" onclick="return confirm('Clear ALL Data? Note that this cannot be undone and will take up to 90 seconds.')">Clear ALL data</button>
</form>
+<?php
+ $cmd="cat ".$home."/BirdNET-Pi/.git/refs/heads/main";
+ $curr_hash = shell_exec($cmd);
+?>
+ <p style="font-size:11px;text-align:center"></br></br>Running version: </p>
+ <a href="https://github.com/mcguirepr89/BirdNET-Pi/commit/<?php echo $curr_hash; ?>" target="_blank">
+ <p style="font-size:11px;text-align:center;box-sizing: border-box"><?php echo $curr_hash; ?></p>
+ </a>
</div>