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 authored and GitHub committed 2024-03-23 14:49:31 -05:00
1 parent c2a32bd6c1
commit bb50b2b6f4
8 files changed
+82 -16

No files matched your search

+2 -9
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 };