A live bird collage card for your Home Assistant dashboard.
Update advanced.php
ehpersonal3892b8371ddd5d
diff --git a/scripts/advanced.php b/scripts/advanced.phpindex 7e5a7946..97d1a643 100644--- a/scripts/advanced.php+++ b/scripts/advanced.php@@ -203,7 +203,7 @@ if (file_exists('./scripts/thisrun.txt')) {<input name="channels" type="number" min="1" max="32" step="1" value="<?php print($newconfig['CHANNELS']);?>" required/><br><p>Set Channels to the number of channels supported by your sound card. 32 max.</p><label for="recording_length">Recording Length: </label>- <input name="recording_length" oninput="document.getElementsByName('recording_length')[0].setAttribute('max', this.value);" type="number" min="3" max="60" step="1" value="<?php print($newconfig['RECORDING_LENGTH']);?>" required/><br>+ <input name="recording_length" oninput="document.getElementsByName('extraction_length')[0].setAttribute('max', this.value);" type="number" min="3" max="60" step="1" value="<?php print($newconfig['RECORDING_LENGTH']);?>" required/><br><p>Set Recording Length in seconds between 6 and 60. Multiples of 3 are recommended, as BirdNET analyzes in 3-second chunks.</p><label for="extraction_length">Extraction Length: </label><input name="extraction_length" oninput="this.setAttribute('max', document.getElementsByName('recording_length')[0].value);" type="number" min="3" value="<?php print($newconfig['EXTRACTION_LENGTH']);?>" /><br>