mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-19 15:23:20 +00:00
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:
1 parent
0080c28c4d
commit
461442b399
9 files changed
+147
-43
No files matched your search
@@ -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";
|
||||
Reference in new issue
Block a user