Commit Graph

1784 Commits

Author SHA1 Message Date
jaredb7 ac9a0e4cbe Consolidate code in remaining pages, setting page updates
The Config and Advanced setting pages received changes to use the new setSetting() function which looks after creating or updated the setting in the required config files.
Optionally it also specification of a command to run after saving the settings.
Some variables like models, audio formats and frequency shift tools were also moved into common.php

Service Controls page received changes with the replacement of the actual command to execute with a sort of shorthand human friendly version e.g. service <action> <service_name> -- service restart livestream.service

These commands map to the original commands in serviceMaintenance() so this could be called through the API without needing the full-blown commend.
views.php was updated to accommodate this also

System Controls page received a small change to make the process checking for new git updates or getting the last commit hash a single function call.

Include and Exclude species updated to use getFilePath() to generate a path to the required file instead of the hard coded path

Views.php also received similar treatment with replacing some hard coded paths with generated paths, but logic changes to handle the change in running service commands
2023-05-08 23:24:15 +10:00
jaredb7 bf0131cf27 Query Consolidate Code for API Preparations
All SQL Queries were moved into their respective functions and parameterized, there were some slight logic changes in the front end pages to accommodate data being returned differently but existing functionality is maintained

A common function is used to execute the queries and looks after binding any parameterized values that have been supplied.

Other code for deleting / protecting detection's, frequency shift, Flickr API call etc have also been moved into common.php to be used later by the API

Two new functions getDirectory and getFilePath were introduced in aims and make it easier to relocate files. This will be worked into all existing php files to replace hardcoded paths
2023-05-07 11:59:50 +10:00
ehpersonal38 bddd8b3b9f Tim's requests
https://github.com/mcguirepr89/BirdNET-Pi/discussions/184#discussioncomment-5825259
2023-05-06 15:28:02 -04:00
ehpersonal38 520e9825d8 highlight current hour label on daily_plot 2023-05-06 13:37:11 -04:00
gerritzen ef3916a043 Fixed year number 2023-05-03 23:58:49 +02:00
lloydbayley b3e496f876 Merge branch 'main' of https://github.com/lloydbayley/BirdNET-Pi 2023-05-03 23:02:05 +10:00
lloydbayley 743074b9df Update weekly_report.php 2023-05-03 23:01:39 +10:00
ehpersonal38 6d3857b86e Apprise ONLY notify for certain species 2023-05-02 15:51:10 -04:00
ehpersonal38 f30e48356c better purge exclude language 2023-05-02 12:45:35 -04:00
ehpersonal38 dd2e90eeb7 bug 2023-04-30 21:46:09 -04:00
ehpersonal38 a97679633a add delete button to Today's Detections 2023-04-29 17:19:27 -04:00
ehpersonal38 2c77964b1a fix #876 2023-04-27 14:53:02 -04:00
ehpersonal38 898101d111 Merge pull request #872 from croisez/main
Use of git command to retrieve the current commit hash - more robust way, take care of branch cases
2023-04-25 19:14:59 -04:00
ehpersonal38 5de300caa5 fix kiosk mode 2023-04-25 16:10:21 -04:00
ehpersonal38 59fea28a73 coldfix
Co-Authored-By: Datore7 <62485051+datore7@users.noreply.github.com>
2023-04-24 16:13:53 -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
Louis Croisez 7117d097fa Correction made in 'sudo -u' command 2023-04-24 15:36:54 +02:00
Louis Croisez 6f674d1c2f Modified way for getting current commit hash - more robust because now it works for branches 2023-04-24 15:30:58 +02:00
Louis Croisez 63326ea01a Added clickable BirdNET-Pi version info in the SystemControls web page 2023-04-22 12:43:36 +02:00
ehpersonal38 0570e9b093 fix syntax error
Co-Authored-By: croisez <1774281+croisez@users.noreply.github.com>
2023-04-21 16:06:54 -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
jaredb7 e7e2ec472c Incert the LogLevel_ into the config file is they don't exisst
Update the saving of the LogLevel_ settings to create the setting in the config file if it doesn't exist at the time of saving, the setting is created with the chosen value.

Moves the RTSP javascript code into it's script tag and moved it be near the controls for the RTSP URL.
2023-04-19 21:01:53 +10:00
ehpersonal38 2b77523ef8 suntime dependency 2023-04-17 22:12:12 -04:00
ehpersonal38 df1a591f2d Merge pull request #760 from chickadeebird/main
Update plotly_streamlit.py
2023-04-17 22:05:11 -04:00
ehpersonal38 91d2a60421 fix backlog message showing when it shouldn't 2023-04-17 10:51:27 -04:00
ehpersonal38 628552285c Merge pull request #851 from jaredb7/RTSP-Recording-fixes
Make ffmpeg record the first audio stream for RTSP
2023-04-16 16:36:36 -04:00
ehpersonal38 adce59fe49 remove world-writable perms 2023-04-16 15:00:24 -04:00
ehpersonal38 14f09a02e0 Add syslog snippet to diagnostic info script 2023-04-16 14:58:08 -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
jaredb7 b37b5ab781 Make ffmpeg record the first audio stream for RTSP
Small fix for now to handle of RTSP streams that may contain more than 1 audio stream within them,  we just tell ffmpeg to use the first audio stream for the recording.

A future enhancement to this is to allow the user to to set what audio stream to just in case there is a scenario where the first one doesn't work for some reason.
2023-04-13 22:16:25 +10:00
ehpersonal38 c87d507b0b allow user to view Weekly Report page 2023-04-12 22:00:47 -04:00
ehpersonal38 181ce4d34b perms 2023-04-12 18:33:24 -04:00
ehpersonal38 b2d600e8eb Merge branch 'main' of https://github.com/mcguirepr89/BirdNET-Pi 2023-04-12 18:31:43 -04:00
ehpersonal38 e0244edd7d Revert "perms"
This reverts commit 21beea2f2d.
2023-04-12 18:31:40 -04:00
jaredb7 1b3a31c3ee Allow user configurable log level option for some services
After some services were recently quieted down by adjusting the log level for e.g ffmpeg. It would be nice if the user can easily adjust the log level again so that that they can investigate or debug a issue since output is not generated by default, so now the Livestream, Spectrogream and Birdnet Recording have a adjustable log levels to help with this.
2023-04-12 21:32:44 +10:00
ehpersonal38 d0b328c07e Merge pull request #822 from patrikbwi/patrikbwi-patch-1
Update server.py
2023-04-10 21:41:05 -04:00
ehpersonal38 2ca0cf4477 alert to click the species if none selected 2023-04-10 21:36:21 -04:00
ehpersonal38 00ad025d96 Merge pull request #836 from jaredb7/More-Misc-Fixes-and-Enhancements_mcguire
More misc fixes and enhancements
2023-04-10 21:19:32 -04:00
ehpersonal38 513d093523 fix sox spectrogram title on non ASCII names 2023-04-10 16:38:46 -04:00
jaredb7 ad28127f6c Fix comments on birdnet_recording.sh 2023-04-09 23:24:57 +10:00
jaredb7 9a97d16883 Make the Spectrogram service run as a loop
The Spectrogram service was stopping after it completed it's work (no issue here) and the system would start it again 10 seconds later, sometimes it would stop and start multiple times a second (no file to analyse maybe)

Added a while loop to that it would just keep running and sleeping for the number of seconds of the recording length setting.
2023-04-09 22:49:53 +10:00
jaredb7 421902684f Quieten System logs
Attempt to quieten the amount of log noise being generated by some of the birdnet services visible in the syslog and daemon.log

Recording service
When using RTSP streams the recording service  is generating massive amounts of noise in the logs as it's basically outputting all it's startup info and also outputting stream and export info.
- Set the log level to only output errors

Also the birdnet_recoding service script is outputting it;s contents, I assume was doing this because of the set -x option at the beginning,
-Commenting this fixed that issue

Analysis Service
Small change to this it doesn't output a error when it can't find today's recording directory. It's a non issue if your recording via sound card but it pops up a bit when using RTSP streams as that directory is never created.

Livestream Service
Same treatment as the recording service, set log level to error. It was previously set to info and would occasionally output a massive chunk of output.. presumably abut the encoding processes.
2023-04-09 22:26:04 +10:00
jaredb7 f534accaae Merge branch 'BirdNET-pi-main' into More-Misc-Fixes-and-Enhancements_mcguire 2023-04-09 18:46:25 +10:00
ehpersonal38 6334367ac0 40% faster updates 2023-04-08 17:41:52 -04:00
jaredb7 9988acfdbd Check RTSP stream selection control is valid
Add a check to make sure the RTSP Stream control is valid before adding the 'onchange' event to avoid breaking the other controls
2023-04-08 14:13:44 +10:00
ehpersonal38 56f168a280 remove trailing birdnet_url slash, if there is one 2023-04-07 21:29:12 -04:00
ehpersonal38 f8e68551a3 Revert "Revert "Merge pull request #829 from lloydbayley/main""
This reverts commit 712f4b034a.
2023-04-07 21:24:49 -04:00