Commit Graph

151 Commits

Author SHA1 Message Date
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
frederik 0ed3fbb47a fix: do not clobber the link 2025-01-25 14:46:29 +01:00
frederik 05268f19bd Merge branch 'fix-backup' 2025-01-25 13:35:36 +01:00
frederik 9e64d77f0e fix: update caddyfile after restore 2025-01-25 13:17:30 +01:00
Alexandre aede3cc8b7 Add RARE_SPECIES_THRESHOLD 2025-01-25 12:02:00 +01:00
frederik 57c0d5b208 enable tmp.mount: Raspberry Pi OS and Debian don't have tmpfs mounted on /tmp. So during restore every uploaded chunk would still end up on the SD card before it is un-tar-ed 2024-12-03 19:10:03 +01:00
frederik dc634838ae Revert "fix: make sure we look for the correct gotty executable name"
This reverts commit ee9aeb6d62.
2024-11-03 11:05:51 +01:00
Lloyd Bayley de843a81dd Update Apprise from v1.8.0 to v1.9.0 (#205)
Upgrade Apprise from v1.80 to v1.90 to allow for the MQTT retain flag.
2024-10-01 22:20:59 +02:00
Emmo213 73d2ba5b48 Dark daily chart (#152)
* Updated daily chart to use the theme selector

* Added sleep after changing theme so the chart can update

* Added code for pink theme, made it easier to add more themes in the future

* Added blue chart for future blue theme

* Set chart background to none so it's transparent

* Added back background for dark mode.

* Change daily chart based on file based settings. Only support light/dark mode.

* Cleanup

* Added borders around the bars on the bar chart

* Updated background color for dark theme

* Merge from main

* Fixed some spacing

* Updating Python version for linting

* Cleanup

* Back leveled to Python 3.9

* Update scripts/daily_plot.py

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

* Coding suggestions

---------

Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>
2024-08-05 21:38:33 +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 f84c44bad4 Feature proposal : darkmode (#85)
* 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
2024-06-08 11:44:21 +02:00
frederik 780ec060c3 bump apprise version to 1.8.0 2024-06-01 10:34:48 +02:00
frederik 179f16f4bb add INFO_SITE to config 2024-05-31 14:12:53 +02:00
frederik ee9aeb6d62 fix: make sure we look for the correct gotty executable name 2024-04-29 17:57:34 +02:00
frederik b820c195ca advertise http for easy discovery 2024-04-08 15:39:57 +02:00
frederik 734f1d1374 bump apprise to 1.7.5 2024-04-06 11:43:04 +02:00
frederik 75b8256bb2 add debugging 2024-03-22 10:20:18 +01:00
frederik 88d273f8fe config: BIRDNET_USER=$USER added 2024-03-22 10:14:02 +01:00
frederik 3246b61c41 fix: don't send unsolicited stuff: this might break json 2024-03-14 11:55:31 +01:00
frederik 5c3b2d5691 fix: RTSP_STREAM_TO_LIVESTREAM was missing from config file 2024-03-14 11:55:31 +01:00
frederik 0c00e6fadd bump seaborn==0.13.2 2024-03-01 12:41:20 +01:00
frederik 819f390614 gotty: fix: forward compatibility with v1.5 2024-02-24 11:55:56 +01:00
frederik 8b1da71398 add DATA_MODEL_VERSION to config 2024-02-19 16:54:25 +01:00
frederik a10067cc09 fix: File Manager needs group read permissions 2024-02-17 12:47:30 +01:00
frederik a4122b5bcc write transient files to tmpfs aka ram drive 2024-02-13 18:06:57 +01:00
frederik 35db8bcb3b centralise transient files 2024-02-13 18:06:57 +01:00
frederik a16cb0e63a security update, not clear if it is relevant, but seems to work 2024-02-13 18:06:57 +01:00
frederik c100d19da1 bookwork fix: make php version independant 2024-02-13 18:06:57 +01:00
frederik 7317e0ef95 remove whl 2024-02-13 18:06:57 +01:00
frederik 1579e6b5bf debug 2024-02-13 18:06:57 +01:00
frederik d9bb782061 bump apprise version 2024-02-13 10:57:35 +01:00
frederik 3761d945a1 use only double quotes 2024-02-13 10:57:35 +01:00
frederik 19e68b5f08 use inotifywait update snippets 2024-02-13 10:57:35 +01:00
frederik 0df2b55036 update snippets for obsolete services 2024-02-13 10:57:35 +01:00
frederik 87e694ec14 update snippets for birdnet_analysis.py 2024-02-13 10:57:35 +01:00
frederik d4055b63b9 update snippets for daily_plot 2024-02-13 10:57:35 +01:00
frederik 7cad72cbe0 cleanup update snippets 2024-02-13 10:57:34 +01:00
ehpersonal38 6bdff30283 Update update_birdnet_snippets.sh 2023-06-13 20:42:06 -04:00
ehpersonal38 c0284206c9 allow analysis client to only run for 5 min 2023-06-13 20:35:57 -04:00
ehpersonal38 f7f0a28bd1 fix flickr_labels.txt being deleted 2023-06-09 18:07:40 -04:00
ehpersonal38 b20e91e11f Update update_birdnet_snippets.sh 2023-06-04 19:10:08 -04:00
ehpersonal38 fd7cdd4b57 Model Update: V2.4 2023-06-04 18:58:47 -04:00
Louis Croisez cf8493aef3 Added config variable for livestream reconnection delay, for freqshift purpose 2023-05-29 16:26:07 +02:00
Louis Croisez e92da07637 correction bug for var init 2023-05-20 09:49:26 +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
ehpersonal38 6d3857b86e Apprise ONLY notify for certain species 2023-05-02 15:51:10 -04:00
ehpersonal38 efa8582b91 Update .gitignore 2023-04-24 14:27:24 -04:00
ehpersonal38 c016427083 Model Update: V2.3
note for me:
for f in BirdNET_GLOBAL_3K_V2.3_Labels_*.txt; do mv -- "$f" "labels_${f#BirdNET_GLOBAL_3K_V2.3_Labels_}"; done
2023-04-24 14:09:24 -04:00
ehpersonal38 21a38d3e0d Update update_birdnet_snippets.sh 2023-04-19 11:05:06 -04:00