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>
* Create dark-style.css
* Add call to get_color_scheme
* Add call to get_color_scheme
* Create get_color_scheme function
* Add selection box in config.php
* Accept both lower and uppercase COLOR_SCHEME
* Add COLOR_SCHEME
* Add COLOR_SCHEME
* Change birdnet.conf after color scheme selection
* Move css to static to enable it
* Adapt css location to static
* Improve opacity value
* Fix logo background issues on smaller screens
* Avoid overlap of logos
* Ensure clean look (same margin as before but different location)
* Default background as transparent to avoid white on white
* Avoid black on dark ; improve readability
* Last element of green is homogenized to grayscale
* Enable site reload after color_scheme change