Commit Graph

2277 Commits

Author SHA1 Message Date
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 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
ehpersonal38 35b5c64927 Update README.md 2023-04-11 10:59:28 -04:00
ehpersonal38 d0b328c07e Merge pull request #822 from patrikbwi/patrikbwi-patch-1
Update server.py
2023-04-10 21:41:05 -04:00
ehpersonal38 b2fbb58974 Merge pull request #835 from coldclimate/quit-early
Kick out super early if it's not a suitable system
2023-04-10 21:40:13 -04:00
ehpersonal38 2ca0cf4477 alert to click the species if none selected 2023-04-10 21:36:21 -04:00
ehpersonal38 9359f78a59 more cache busting
Co-Authored-By: Jared <799998+jaredb7@users.noreply.github.com>
2023-04-10 21:26:15 -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
ehpersonal38 05919105ce Update README.md 2023-04-09 12:29:34 -04:00
jaredb7 ad28127f6c Fix comments on birdnet_recording.sh 2023-04-09 23:24:57 +10:00
coldclimate c5938e5d7f Kick out super early if it's not a suitable system
Untested, but raised after a frustrating morning :D
2023-04-09 14:10:35 +01: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 94481bf915 Update service restart command to support multi service resstart
When restarting the Livestream service, the IceCast2 is restarted too, after fixing command to restart IceCast only it's status returned (since it's the last service)

Added in a small loop to try get both the service names so we can get the status of both.
2023-04-09 21:59:59 +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
ehpersonal38 b177fae7d0 Merge pull request #834 from jaredb7/Spectrogram-Controls-Fix
Check RTSP stream selection control is valid
2023-04-08 11:11:59 -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
jaredb7 4e882e3eef Dynamic style,css cache busting
Keeps the existing format used to version the style sheet but it's now based off the file modification time.
2023-04-08 13:58:42 +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
jaredb7 d16d4f60a3 Fix error when restarting the Live Stream service
Changed command to use systemctl to restart the icecast2 service, the error wasn't fatal but just made it look like restarting the live stream service had failed.
2023-04-08 11:14:04 +10:00
ehpersonal38 e5fa9c9c45 Merge pull request #831 from mcguirepr89/revert-829-main
Revert "Tidy up some UI things that were bugging me."
2023-04-07 21:09:40 -04:00
ehpersonal38 68051789f5 Revert "Tidy up some UI things that were bugging me." 2023-04-07 21:09:23 -04:00
ehpersonal38 712f4b034a Revert "Merge pull request #829 from lloydbayley/main"
This reverts commit 3abc483ef5, reversing
changes made to 21beea2f2d.
2023-04-07 21:08:42 -04:00
jaredb7 f1d440cda6 Merge branch 'BirdNET-pi-main' into More-Misc-Fixes-and-Enhancements_mcguire 2023-04-08 11:07:19 +10:00
ehpersonal38 3abc483ef5 Merge pull request #829 from lloydbayley/main
Tidy up some UI things that were bugging me.
2023-04-07 20:57:15 -04:00
ehpersonal38 21beea2f2d perms 2023-04-07 15:01:34 -04:00
ehpersonal38 fecfe40760 perms 2023-04-07 15:01:21 -04:00
ehpersonal38 bf6bee2e67 syntax error 2023-04-07 13:05:18 -04:00
lloydbayley 0acb3cec62 Update advanced.php
Missed a capitalisation...oops!
2023-04-07 23:35:34 +10:00
lloydbayley a4b18fb066 Update config.php
Tidy Up UI
2023-04-07 23:22:47 +10:00
lloydbayley 3c421aae62 Update advanced.php
Tidy Up UI
2023-04-07 23:22:38 +10:00
lloydbayley beeb32f971 Merge branch 'mcguirepr89:main' into main 2023-04-07 20:20:17 +10:00
jaredb7 b1dd0db441 Update .gitignore to skip JetBrains IDE files
We don't really need JetBrains IDE files in the repo
2023-04-07 19:21:13 +10:00
jaredb7 1018fbf40d Fix Excluded Species search for Chrome
Appears to be a issue scrolling a select list option into view and then setting it's selected state to true (as if the user had clicked on it) this seems to break all future calls of scrollIntoView on any options, regardless if the selected state if removed from all options.

scrollIntoView works perfectly otherwise and opted to apply a style to visually highlight the option. This turned out way better
2023-04-07 19:19:05 +10:00
ehpersonal38 9b6d3d7f0a Merge pull request #821 from Normanras/audio_errors
Created try/except statement around reading the audio data
2023-04-06 20:15:10 -04:00
ehpersonal38 a57df0462b Merge pull request #817 from jaredb7/Misc-Fixes-and-Enhancements__mcguirepr89-
Misc UI fixes and Enhancements
2023-04-06 20:12:35 -04:00
jaredb7 8b33cee93d Enhancement - Update Spectrogram page to show detection labels on RTSP streams
Added in logic to handle finding the correct 'newest' detection's CSV file for the stream being listened to, the script will look in the sound card recordings location as usual, if it finds nothing there, then look in the StreamData folder for files matching the currently listened stream

Updated spectrogram.sh to not execute sox if the file mentioned in analyzing now does not exist, this is just to try reduce noise in the logs

Fixed my mis-spelling of RTSP again

Small tweak to the Javascript responsible for drawing the labels on the spectrogram to accommodate the inclusion of RTSP_X in the streams filename
2023-04-07 09:46:31 +10:00
jaredb7 bb1ac2dd70 Fix alignment of new RTSP stream URL input field
Remove style that was indenting the input field, this isn't needed anymore since we aren't trying to align with the label
2023-04-07 08:59:58 +10:00
jaredb7 7972452d61 Merge branch 'BirdNET-pi-main' into Misc-Fixes-and-Enhancements__mcguirepr89- 2023-04-07 08:50:29 +10:00