Commit Graph

142 Commits

Author SHA1 Message Date
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
Jared d1a0561d2d Merge branch 'main' into Configurable-Service-Logging-Options 2023-04-19 21:36:30 +10:00
ehpersonal38 2b77523ef8 suntime dependency 2023-04-17 22:12:12 -04:00
ehpersonal38 adce59fe49 remove world-writable perms 2023-04-16 15:00:24 -04:00
ehpersonal38 2be0b394ee fixy 2023-04-14 16:26:14 -04:00
jaredb7 fa5662fa00 Update Birdnet Snipper to insert out new setting options
Update Birdnet Snipper to insert out new setting options
Update log level descriptions.
2023-04-13 22:42:01 +10:00
ehpersonal38 181ce4d34b perms 2023-04-12 18:33:24 -04:00
ehpersonal38 6334367ac0 40% faster updates 2023-04-08 17:41:52 -04:00
jaredb7 ae94cbc189 Enhancement to allow simultaneous RTSP stream recording
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
2023-04-01 22:29:02 +10:00
ehpersonal38 5f4fd66835 Revert "Revert "perms""
This reverts commit 11b6c11e49.
2023-03-29 20:51:05 -04:00