forked from Github/frigate
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:
@@ -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