refined readme

This commit is contained in:
Twarner491
2026-05-28 15:23:26 -07:00
parent 87981a62fb
commit ec167eac7b
8 changed files with 154 additions and 220 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ function read_audio(): array {
for ($i = 0; $i < count($lines); $i += 2) {
$head = trim($lines[$i]);
$detail = isset($lines[$i + 1]) ? trim($lines[$i + 1]) : '';
$cards[] = $detail !== '' ? "$head $detail" : $head;
$cards[] = $detail !== '' ? "$head - $detail" : $head;
}
$usb = shellout('lsusb');
return [
+2 -2
View File
@@ -47,8 +47,8 @@ if ($file !== '') {
exit;
}
// BirdNET-Pi names the spectrogram as the FULL mp3 filename plus
// ".png" - e.g. "American_Crow-82--20:25:29.mp3" pairs with
// "American_Crow-82--20:25:29.mp3.png" (not "-20:25:29.png").
// ".png" - e.g. "American_Crow-82-...-20:25:29.mp3" pairs with
// "American_Crow-82-...-20:25:29.mp3.png" (not "...-20:25:29.png").
// Accept either form gracefully.
if (substr($file, -4) === '.png') {
$png = $file;