* Update advanced.php
Added a checkbox in the Advanced Settings page to enable Automatic Update
* Update install_config.sh
The AUTOMATIC_UPDATE parameter needs to be created in the BirdNET-Pi configuration file.
* Update install_services.sh
Add a cron job to the system to performa automatic updates.
* Create automatic_update.cron
The line to be added to the cron table to check for need to perform automatic update.
* Create automatic_update.sh
Script to perform the automatic update if the flag is set in the configuration. Also, the services are restarted after the update.
* Update install_services.sh
* Update automatic_update.sh
* Update advanced.php
Correct typo
* Update update_birdnet_snippets.sh
Add the automatic_update.cron to the list of cron jobs
* Update update_birdnet_snippets.sh
* Update automatic_update.cron
Change automatic update to once a week on Sunday at 3AM
* Update update_birdnet_snippets.sh
Adjusted to add option to existing installations
* Update automatic_update.sh
Removed unnecessary call to restart_services.sh
* Update advanced.php
Cleaned up the Options section line spacing in the settings table
* Update templates/automatic_update.cron
Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>
* Update scripts/update_birdnet_snippets.sh
Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>
* Delete scripts/automatic_update.sh
* Update advanced.php
Modified the description of the Automatic Update feature on the Advanced Configuration tab.
* Update install_config.sh
---------
Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>
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