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.
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.
* 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>
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.
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.
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