mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-02 12:56:51 +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:
@@ -311,6 +311,7 @@
|
|||||||
"lastRefreshed": "Last refreshed: ",
|
"lastRefreshed": "Last refreshed: ",
|
||||||
"stats": {
|
"stats": {
|
||||||
"ffmpegHighCpuUsage": "{{camera}} has high FFmpeg CPU usage ({{ffmpegAvg}}%)",
|
"ffmpegHighCpuUsage": "{{camera}} has high FFmpeg CPU usage ({{ffmpegAvg}}%)",
|
||||||
|
"cameraSkippedDetections": "{{camera}} has skipped detections ({{fps}}).",
|
||||||
"detectHighCpuUsage": "{{camera}} has high detect CPU usage ({{detectAvg}}%)",
|
"detectHighCpuUsage": "{{camera}} has high detect CPU usage ({{detectAvg}}%)",
|
||||||
"healthy": "System is healthy",
|
"healthy": "System is healthy",
|
||||||
"reindexingEmbeddings": "Reindexing embeddings ({{processed}}% complete)",
|
"reindexingEmbeddings": "Reindexing embeddings ({{processed}}% complete)",
|
||||||
|
|||||||
@@ -144,6 +144,19 @@ export default function useStats(stats: FrigateStats | undefined) {
|
|||||||
|
|
||||||
const cameraName = config?.cameras?.[name]?.friendly_name ?? name;
|
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) {
|
if (!isNaN(ffmpegAvg) && ffmpegAvg >= CameraFfmpegThreshold.error) {
|
||||||
problems.push(
|
problems.push(
|
||||||
problem(
|
problem(
|
||||||
|
|||||||
Reference in New Issue
Block a user