Save initial camera state to update when websocket connects (#11174)

* Send camera state to dispatcher

* Fix logic

* Cleanup

* Send camera activitiy in on connect

* Support reading initial camera state

* Fix key

* Formatting

* Sorting
This commit is contained in:
Nicolas Mowen authored and GitHub committed 2024-04-30 07:09:50 -06:00
1 parent 0080c28c4d
commit 461442b399
9 files changed
+147 -43

No files matched your search

+11
View File
@@ -41,4 +41,15 @@ export interface FrigateEvent {
after: FrigateObjectState;
}
export type ObjectType = {
id: string;
label: string;
stationary: boolean;
};
export interface FrigateCameraState {
motion: boolean;
objects: ObjectType[];
}
export type ToggleableSetting = "ON" | "OFF";