Publish finished reviews to mqtt / ws and use that for source of update banner (#10072)

* Add reviews to frontend

* Update ready when new review is saved

* fix

* Formatting
This commit is contained in:
Nicolas Mowen
2024-02-27 06:37:39 -07:00
committed by GitHub
parent 00c2caa1b7
commit f95ce913b1
6 changed files with 53 additions and 15 deletions

View File

@@ -1,3 +1,5 @@
import { ReviewSegment } from "./review";
type FrigateObjectState = {
id: string;
camera: string;
@@ -27,6 +29,11 @@ type FrigateObjectState = {
};
};
export interface FrigateReview {
type: "new" | "update" | "end";
review: ReviewSegment;
}
export interface FrigateEvent {
type: "new" | "update" | "end";
before: FrigateObjectState;