mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-26 19:09:02 +03:00
Report skipped detections in status bar (#24223)
* report skipped detections in the system notices pane * revert notices and move to status bar * shorten string
This commit is contained in:
committed by
Nicolas Mowen
parent
f9347967eb
commit
e3029beba5
@@ -144,6 +144,19 @@ export default function useStats(stats: FrigateStats | undefined) {
|
||||
|
||||
const cameraName = config?.cameras?.[name]?.friendly_name ?? name;
|
||||
|
||||
if (config?.cameras?.[name]?.enabled && cam["skipped_fps"] > 1) {
|
||||
problems.push(
|
||||
problem(
|
||||
"warning",
|
||||
t("stats.cameraSkippedDetections", {
|
||||
camera: capitalizeFirstLetter(capitalizeAll(cameraName)),
|
||||
fps: cam["skipped_fps"],
|
||||
}),
|
||||
"/system#cameras",
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
if (!isNaN(ffmpegAvg) && ffmpegAvg >= CameraFfmpegThreshold.error) {
|
||||
problems.push(
|
||||
problem(
|
||||
|
||||
Reference in New Issue
Block a user