Commit Graph

85 Commits

Author SHA1 Message Date
Steve Dodd eb86faddcd In certain situations trying to recover from stalled analysis we can end up
with low / no disk space and be unable to "escape." In the event of a backlog,
the loop in birdnet_analysis.sh runs continuously, which means analyzed files
do not get moved, which means in turn extract_new_birdsounds.sh cannot create
mp3 extractions and move the processed files again, which would allow them to
be cleaned up by the cron jobs.

This patch is the obvious fix, i.e. to just limit the maximum amount of files
birdnet_analysis.sh can process to 20. This should be a good trade off given
the small overhead of listing files etc before the main loop begins - note that
for the "normal" case of no backlog, birdnet_analysis usually exits after a
single analysis anyway.
2023-08-11 22:33:46 +01: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
ehpersonal38 1647604122 Update birdnet_analysis.sh 2023-02-17 12:15:17 -05:00
ehpersonal38 b0676c8217 possible workaround for notorious bug 2023-02-17 12:03:49 -05:00
ehpersonal38 a439214d32 Revert "restart services if analysis hangs"
This reverts commit 5cd885b24c.
2023-02-16 21:56:42 -05:00
ehpersonal38 5cd885b24c restart services if analysis hangs 2023-02-16 21:40:28 -05:00
Phill Price ea5d9d70eb Add Heartbeat ping on every analysis to see if service is working 2022-09-29 17:57:40 +01:00
mcguirepr89 bf75943be6 find fails silently 2022-07-22 07:48:07 -04:00
mcguirepr89 7a0eb8bd30 typo 2022-07-16 09:22:38 -04:00
ehpersonal38 a3ddce480f redact lat/lon in view logs
can't see why this needs to be visible in logs to everyone, do revert if you disagree
2022-07-01 11:21:23 -04:00
mcguirepr89 b796ec2094 analysis uses new StreamData location 2022-06-04 13:09:48 -04:00
Patrick McGuire c54c0c7f17 Merge branch 'main' into remove-python-shebangs 2022-05-24 12:09:53 -04:00
mcguirepr89 6a404ebb70 adding condition to the birdnet_recording restart 2022-05-21 14:01:48 -04:00
Jake Herbst 873dfb12d6 Fixing analyze.py location 2022-05-16 22:16:29 -04:00
Jake Herbst dad5868f22 Adding pythond3 virtualenv to birdnet analysis python call 2022-05-16 21:46:24 -04:00
mcguirepr89 6cc2e0b0fd removing a iterator that removes files 2022-05-11 08:32:19 -04:00
mcguirepr89 aa4908559c removed quotes from lists -- should fix the bug? 2022-05-09 09:25:01 -04:00
mcguirepr89 c3908a0435 exclude typo -- removing quotes from BIRDWEATHERIDPARAMt 2022-05-08 08:54:42 -04:00
Patrick McGuire bad8ff7ed7 Merge branch 'main' into Nachtzuster_improvements_to_birdnet_analysis 2022-05-05 16:56:48 -04:00
Patrick McGuire 3705334570 Midnight bug redux 2022-05-05 07:56:17 -04:00
frederik c914c645a8 avoid using ffmpeg: the loop is faster now, so slow down again 2022-05-02 13:03:02 +02:00
frederik be800cd51a avoid using ffmpeg: just wait until the file is closed 2022-05-02 13:03:02 +02:00
frederik ba33976b28 avoid using ffmpeg: check existence of file in staid of checking for no length 2022-05-02 13:03:02 +02:00
frederik a2243fcfc7 consolidate duplicated code 2022-05-02 13:03:02 +02:00
mcguirepr89 a8fb4c79a6 fixing how birdnet_analysis.service handles corrupt
audio files
2022-04-24 11:30:19 -04:00
Patrick McGuire 4a0b1c4ad8 Silence the (harmless) midnight cleanup error 2022-04-17 14:50:48 -04:00
mcguirepr89 7489298d91 This catches the midnight straggler 2022-04-16 15:30:07 -04:00
mcguirepr89 f69f04d19d changes that remove the default pi user 2022-04-11 17:29:00 -04:00
mcguirepr89 023b68f386 making changes to accomodate removing the pi user 2022-04-11 10:16:54 -04:00
mcguirepr89 10090f9411 saving changes 2022-02-24 13:27:08 -05:00
mcguirepr89 a0722fbf0f more testing 2022-02-18 12:47:17 -05:00
mcguirepr89 64295bece0 fixing restart_services 2022-02-16 07:19:26 -05:00
mcguirepr89 4724b1781f now the birdnet_analysis waits for the socket 2022-02-11 14:37:28 -05:00
mcguirepr89 cdad986a18 adding informative section in "System" > "Info" 2022-02-11 13:09:38 -05:00
mcguirepr89 29155027c1 fixing bug that stopped recording_service! 2022-02-09 10:01:12 -05:00
Patrick McGuire 5730a6d06d removing unnecessary service restarts 2022-02-08 14:32:21 -05:00
mcguirepr89 67b0796a81 birdnet_analysis doesn't restart the socket on config
change
2022-02-06 11:45:39 -05:00
mcguirepr89 2781c32f76 small tweaks to birdnet_anaysis.sh 2022-02-05 15:06:58 -05:00
mcguirepr89 e8c4e81406 allows shorter recording_length variables 2022-02-05 11:11:22 -05:00
mcguirepr89 dc0a9feb42 typo 2022-01-31 20:25:03 -05:00
mcguirepr89 0907ca55a1 typo 2022-01-31 16:38:47 -05:00
mcguirepr89 0ec02a2239 fixing some missing symlinks and file permissions 2022-01-31 16:35:57 -05:00
mcguirepr89 a824d17fa6 moved analyze.py into scripts directory 2022-01-31 14:04:36 -05:00
mcguirepr89 eb218030e5 adding full species list editor 2022-01-31 12:10:11 -05:00
mcguirepr89 d22e9c9532 obscuring BIRDWEATHER_ID 2022-01-30 15:34:26 -05:00
mcguirepr89 0090835929 fixing typo 2022-01-30 15:31:37 -05:00
mcguirepr89 8e9c43ad34 adding include_list and exclude_list to analyze.py and
birdnet_analysis.sh
2022-01-30 15:26:09 -05:00
Patrick McGuire 48b734c9c2 Update birdnet_analysis.sh 2022-01-22 17:48:58 -05:00
Patrick McGuire 5e919ff4c3 Update birdnet_analysis.sh 2022-01-22 17:38:37 -05:00
Patrick McGuire 1390a0d180 uses new analyze.py 2021-12-01 12:54:14 -05:00