Commit Graph

13 Commits

Author SHA1 Message Date
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
David Lamkin 92f2540792 Use posix sh compatible redirect in crontab
&> is a bash shortcut to redirect both stdout and stderr
it is more portable to use '>/dev/null 2>&1' to achieve this effect.

Without this change the pi mailbox is filled with cron job output
2022-05-21 17:22:22 +01:00
mcguirepr89 023b68f386 making changes to accomodate removing the pi user 2022-04-11 10:16:54 -04:00
mcguirepr89 2dd5944841 crons now have user field 2022-01-25 08:49:40 -05:00
Patrick McGuire dc0f8aff5d fixing Disk Full behavior -- invokes stop_core_services.sh 2021-12-01 10:33:04 -05:00
Patrick McGuire 4871157bf5 Update cleanup.cron 2021-10-13 18:52:59 -04:00
Patrick McGuire fd5d41df08 Update cleanup.cron 2021-10-13 18:47:37 -04:00
Patrick McGuire 451edcdb73 another typo! 2021-10-13 18:39:00 -04:00
Patrick McGuire 935d31b655 Update cleanup.cron 2021-10-13 17:34:07 -04:00
Patrick McGuire 08074436d6 working on cleanup.sh 2021-10-13 17:18:14 -04:00
mcguirepr89 c9a604ff69 fixing uninstall issue 2021-10-10 18:31:19 -04:00
Patrick McGuire ad6dc4c356 renaming project birdingpi 2021-10-08 12:57:28 -04:00
Patrick McGuire bc2d3df898 updating references to old repo to new repo 2021-09-28 14:48:25 -04:00