Commit Graph

129 Commits

Author SHA1 Message Date
Alexandre 465e9739ce New feat : Disk usage summary (#318)
* Disk usage summary

* Explain why there is more files than the max specified

* Update advanced.php

* Update advanced.php

* Few improvements

* Improve alerts

* Define HOME

* Use single alert

* Shorten message for single alert

* Add execute permission to scripts/disk_species_count.sh

* Removed MAX_FILE_SPECIES

* Update advanced.php

* Improve message

* Update scripts/advanced.php

Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>

* Clean

* Update scripts/advanced.php

Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>

* Typo

---------

Co-authored-by: root <root@db21ed7f-webtop.local.hass.io>
Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>
2025-04-23 18:41:59 +02:00
Christopher Leinbach 23f52ae673 Add Purge Threshold
Adds a purge threshold setting. This setting allows the user to
control at what filled percentage the purge activities are run.
This replaces the default, hard coded 95% point.

The purge threshold defaults at the original 95%. I set a minimum
of 20 and max of 99 because those values felt sensible but am open
to changing those based on feedback.

Note: The purge threshold is still active when the keep option is
set. I added a note for this but this still presents some risk
where users who change this while in Keep mode could have their
services shut down earlier than they expect.

Patch: Fix a couple of typos in initial changes and improve
formatting.
2025-01-25 17:40:29 +01:00
Christopher Leinbach bdc5802816 Add Purge Threshold
Adds a purge threshold setting. This setting allows the user to
control at what filled percentage the purge activities are run.
This replaces the default, hard coded 95% point.

The purge threshold defaults at the original 95%. I set a minimum
of 20 and max of 99 because those values felt sensible but am open
to changing those based on feedback.

Note: The purge threshold is still active when the keep option is
set. I added a note for this but this still presents some risk
where users who change this while in Keep mode could have their
services shut down earlier than they expect.
2025-01-25 17:40:29 +01:00
Alexandre dfd6199b1c Add RARE_SPECIES_THRESHOLD 2025-01-25 12:02:00 +01:00
Emmo213 714519b35b Cleanup the Audio Settings section a little (#153) 2024-07-28 15:33:11 +02:00
frederik 774f0d4cfb singular of species is species 2024-07-24 23:01:46 +02:00
Alexandre b77f579e35 Feat : limit the number of audio files to keep per species (#121)
* New disk usage settings

* Use sudo for rm, just in case

* Remove set -x

* Correct code for png

* Correct today

* Correct dates

* Accepts date format of different distributions

* Avoid message

* Very significant processing time optimisation

* Update disk_species_clean.sh

* Avoid locking database

* Update disk_species_clean.sh

* Disable set -x (again)

* Add number of remaining files

* Add new variables to update_birdnet_snippets.sh

* Consolidate disk management elements

* Update disk_species_clean.sh

* Update disk_species_clean.sh

* Protect last 7 days

* Add options to advanced.php, in same style

* Remove from config

* Update config.php

* Reset max_disk_usage to hard 95

* Improve layout

* Remove automatic addition of MAX_FILE_SPECIES if not defined https://github.com/alexbelgium/hassio-addons/issues/1458

* Cosmetic white-listed changed to whitelist

* Add comma in text

* Update scripts/advanced.php

Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>

* Update crontab if less than 5 #birdnet occurence (= all scripts not installed)

* Made .sh file executable

* Remove unused field k5 (second field of year) ; add explanations

* Call functions without ()

* Uninstall current cron before reinstalling them

* Update update_birdnet_snippets.sh

* Use $HOME instead of $mydir

---------

Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>
2024-07-12 18:18:27 +02:00
Alexandre 4384f32c83 Align remaining droplists with testbtn 2024-06-20 17:53:29 +02:00
Alexandre f622b073dd Align droplists to testbtn style (already used) 2024-06-20 17:47:54 +02:00
frederik d3b6ccf65d fix: collectrtspUrls(); is needed to actually save the rtsp urls 2024-06-18 19:10:18 +02:00
frederik eb7d7abebf make advanced setting page behave a bit more as the basic settings page 2024-06-16 11:09:49 +02:00
Alexandre 0ab46e3637 Proposal to move success message to js alert (#95)
* Proposal to move success message to js alert

https://github.com/Nachtzuster/BirdNET-Pi/issues/92

* Align with basic

* Fix advanced.php

https://github.com/Nachtzuster/BirdNET-Pi/pull/95
2024-06-15 14:25:09 +02:00
Jochen Oberreiter e0e5aff081 Fixed a copy & paste error (#72)
The error resulted in a "duplicate config" warning in scripts/utils/helper.py.
2024-05-21 09:40:39 +02:00
frederik 3844f7da83 tidy input boxes 2024-04-09 17:52:39 +02:00
frederik 464b2240d8 convert to standard html 2024-04-09 17:52:39 +02:00
frederik abdffccc2e convert advanced.php config.php 2024-03-29 13:21:18 +01:00
frederik 17ff415217 correct privacy explanation 2024-02-16 09:57:23 +01:00
frederik 23dfa3bb99 fix: changing advanced settings was not updating on a fresh install ed. CHANNELS, RECORDING_LENGHT, ... simplify 2024-02-13 18:06:57 +01:00
Louis Croisez 53fabaaa50 Added units indication in advanced config page 2023-05-29 16:29:35 +02:00
Louis Croisez cf8493aef3 Added config variable for livestream reconnection delay, for freqshift purpose 2023-05-29 16:26:07 +02:00
Louis Croisez 04dae073f6 Added option in Spectrogram view to activate a frequency shift in the audio livestream 2023-05-16 10:46:43 +02:00
jaredb7 e7e2ec472c Incert the LogLevel_ into the config file is they don't exisst
Update the saving of the LogLevel_ settings to create the setting in the config file if it doesn't exist at the time of saving, the setting is created with the chosen value.

Moves the RTSP javascript code into it's script tag and moved it be near the controls for the RTSP URL.
2023-04-19 21:01:53 +10:00
jaredb7 fa5662fa00 Update Birdnet Snipper to insert out new setting options
Update Birdnet Snipper to insert out new setting options
Update log level descriptions.
2023-04-13 22:42:01 +10:00
jaredb7 1b3a31c3ee Allow user configurable log level option for some services
After some services were recently quieted down by adjusting the log level for e.g ffmpeg. It would be nice if the user can easily adjust the log level again so that that they can investigate or debug a issue since output is not generated by default, so now the Livestream, Spectrogream and Birdnet Recording have a adjustable log levels to help with this.
2023-04-12 21:32:44 +10:00
ehpersonal38 56f168a280 remove trailing birdnet_url slash, if there is one 2023-04-07 21:29:12 -04:00
ehpersonal38 f8e68551a3 Revert "Revert "Merge pull request #829 from lloydbayley/main""
This reverts commit 712f4b034a.
2023-04-07 21:24:49 -04:00
ehpersonal38 712f4b034a Revert "Merge pull request #829 from lloydbayley/main"
This reverts commit 3abc483ef5, reversing
changes made to 21beea2f2d.
2023-04-07 21:08:42 -04:00
lloydbayley 0acb3cec62 Update advanced.php
Missed a capitalisation...oops!
2023-04-07 23:35:34 +10:00
lloydbayley 3c421aae62 Update advanced.php
Tidy Up UI
2023-04-07 23:22:38 +10:00
jaredb7 bb1ac2dd70 Fix alignment of new RTSP stream URL input field
Remove style that was indenting the input field, this isn't needed anymore since we aren't trying to align with the label
2023-04-07 08:59:58 +10:00
ehpersonal38 825e3926fa Lloyd's suggestions
Co-Authored-By: lloydbayley <21309308+lloydbayley@users.noreply.github.com>
2023-04-06 13:26:31 -04:00
jaredb7 8fbc8fdb16 Slight cosmetic change to the RTSP input boxes
Move the first input box down one line instead of being inline with the label. Makes alignment simple and work on mobile
2023-04-03 20:22:30 +10:00
jaredb7 ae94cbc189 Enhancement to allow simultaneous RTSP stream recording
Updated birdnet_recording.sh
With a functional change around how ffmpeg is used to make use if it's functionality to accept multiple input streams and map each to a output file.
Due to the original implementation generating a  filename that contain the date/time streams would be writing to the same file - a small change was make each stream go to it's one file with unique filenames.

Updated livestream.sh & spectrogram.php
The Livestream service would fail if the RTSP stream setting was more than 1 stream (i.e comma separated list of streams)
Made some improvements so streaming is possible from any of the URL's, The Spectrogram page received a new control and some Javascript that allows the user to change between streams, the setting gets saved and the livestream service restarted so it uses's the correct stream.
This control is not visible if there are no RTSP streams configured
By default the livestream service will stream the the first RTSP URL, if the setting is not set or invalid

Updated advanced.php
With a small GUI change around RTSP steam entry by providing a input field for each URL and a button to add more fields.
In the background nothing changes as we use some Javascript to extract the valus entered and fill in the original rtsp_stream value with the correct comma separated string

Updated server.py
To work with the recording filename changes so that the correct filename is stored in the DB

Updated update_birdnet_snippets.sh
To support a new setting RTSP_STREAM_TO_LIVESTREAM on the Spectrogram page and in the livestream service
2023-04-01 22:29:02 +10:00
ehpersonal38 a45018b473 making things more secure 2023-03-30 14:15:01 -04:00
ehpersonal38 61a67c517e Wrap CUSTOM_IMAGE_TITLE in quotes 2023-03-17 17:05:09 -04:00
ehpersonal38 f532e9cabe better Advanced Settings formatting and explanations 2023-03-15 13:57:24 -04:00
ehpersonal38 be70c54d68 Update advanced.php 2023-03-14 22:37:28 -04:00
ehpersonal38 ab67799958 CUSTOM_IMAGE fixes 2023-03-14 22:35:46 -04:00
ehpersonal38 4ec6b4ff31 Merge branch 'custom_image' of https://github.com/mcguirepr89/BirdNET-Pi into custom_image 2023-03-14 22:32:29 -04:00
ehpersonal38 9efc79f0b2 Initial CUSTOM_IMAGE commit 2023-03-14 22:30:59 -04:00
ehpersonal38 6638016546 Initial CUSTOM_IMAGE commit 2023-03-14 22:28:10 -04:00
ehpersonal38 6d6a09f2ff Clarifying how pitch shifting works 2023-03-07 18:09:26 -05:00
ehpersonal38 c5459a2283 Forgot to change this label 2023-03-06 16:33:14 -05:00
ehpersonal38 adefbadb5f Adding support to create minimalist raw spectrogram images 2023-03-06 16:26:29 -05:00
ehpersonal38 75bc9918ef issue #742 2023-02-17 20:06:56 -05:00
ehpersonal38 8491d216c4 Workaround for #276 2023-02-14 19:59:55 -05:00
Patrick McGuire f6a07cacdd typo 2022-12-16 06:06:43 -05:00
Patrick McGuire 5df0210df4 aplay -> arecord 2022-12-16 05:51:26 -05:00
Patrick McGuire 69481061ea Update advanced.php 2022-12-16 05:49:58 -05:00
lloydbayley 690d184f62 Update advanced.php
Fix spelling error
2022-11-07 22:30:15 +11:00