Respect motion only when playing back (#10632)

* Respect motion only when playing back motion

* Increase efficiency

* Fix import
This commit is contained in:
Nicolas Mowen
2024-03-23 13:49:31 -06:00
committed by GitHub
parent c2a32bd6c1
commit bb50b2b6f4
8 changed files with 82 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
type Timeline = {
export type Timeline = {
camera: string;
timestamp: number;
data: {
@@ -23,11 +23,4 @@ type Timeline = {
source: string;
};
// may be used in the future, keep for now for reference
// eslint-disable-next-line @typescript-eslint/no-unused-vars
type HourlyTimeline = {
start: number;
end: number;
count: number;
hours: { [key: string]: Timeline[] };
};
export type TimeRange = { before: number; after: number };