Commit Graph

173 Commits

Author SHA1 Message Date
frederik 2a79f1fa65 we previously merged both BirdNET label files, not realising one had traditional and the other simplified Chinese, so split properly and have both Chinese variants now. 2025-11-29 16:57:13 +01:00
frederik c9787ed5ae cleanup usage of labels.txt a bit 2025-11-17 18:44:27 +01:00
frederik 1f91f7c2b5 login trixie fix 2025-11-10 18:59:56 +01:00
frederik 6b7c3382c6 bump apprise 2025-11-01 12:18:57 +01:00
frederik 5e97f6bad5 cleanup: no need to edit phpsysinfo.ini, change it in the repo 2025-10-11 16:10:20 +02:00
dalogue1 786348d815 Automatic Update Feature (#424)
* 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>
2025-09-24 20:06:48 +02:00
cjwaian 29eb69025a Adjusting systemd unit files to avoid hardcoded UID in the runtime dir path (#461)
* Update install_services.sh

Replaced hardcoded uid

* Update install_services.sh

avoid uid in /run path

* Update install_services.sh

had to use $(id)

* Update update_birdnet_snippets.sh

Remove XDG_RUNTIME_DIR from templates

* removed XDG_RUNTIME_DIR

* update HIDE_MOUNTS runtime paths

uid agnostic

* typos
2025-09-23 18:17:22 +02:00
frederik 633ee78555 fix dark theme, fix running update from the ui 2025-09-09 17:53:20 +02:00
frederik 2ce355a2ae update config 2025-09-08 20:09:49 +02:00
frederik a5154c38ed add IMAGE_PROVIDER config 2025-08-19 11:12:50 +02:00
Alexandre 176a105782 Use raw flac (#408)
* Use raw

* clean not used

* Add soundfile

* Add soundfile

* Update scripts/update_birdnet_snippets.sh

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

---------

Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>
2025-08-02 21:02:07 +02:00
Alexandre 943e1ab9dd Fix pyarrow incompatibility (#407)
* Fix pyarrow

* Update pyarrow

* Fix update_birdnet_snippets.sh
2025-08-02 12:43:17 +02:00
frederik 628a2bd713 create db index on hot column 2025-05-11 13:01:51 +02:00
frederik fa1c15ceb8 install flickr_labels 2025-05-04 11:06:56 +02:00
frederik ab72c222ff bump tflite version to 2.17.1 on Python>3.9 2025-04-05 11:33:47 +02:00
frederik 4579f46c43 bump streamlit version 2025-03-29 10:33:35 +01:00
frederik da81260a25 Revert "bump streamlit version to 1.41.1"
This reverts commit 65cd03ab21.
2025-03-24 19:53:38 +01:00
frederik 65cd03ab21 bump streamlit version to 1.41.1 2025-03-23 09:45:13 +01:00
frederik f33a9d24a7 fix: make sure the regex is not being interpreted as an option, this was causing a unneeded services restarts 2025-03-15 11:17:43 +01:00
frederik ffca186325 fix: remove hardcoded version, pip can figure that out now tflite_runtime-2.11.0-cp39-none-linux_aarch64.whl list the correct numpy version it needs 2025-03-15 11:17:43 +01:00
frederik e62b991f8e cleanup: our Python dependencies all seem to have native versions these days: no dev tools needed anymore 2025-03-15 11:17:43 +01:00
frederik 0ffe3eec26 pin suntime at 1.3.2, also cleanup: use same logic on all pip packages 2025-03-08 19:01:22 +01:00
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