From 578e6ee6454702e7f67f74e9cc42299d3a4752bf Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 12 Dec 2023 12:56:18 -0700 Subject: [PATCH] Add storage --- web-new/src/pages/Storage.tsx | 63 +++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 3 deletions(-) diff --git a/web-new/src/pages/Storage.tsx b/web-new/src/pages/Storage.tsx index dc5c216e6..a37c8983d 100644 --- a/web-new/src/pages/Storage.tsx +++ b/web-new/src/pages/Storage.tsx @@ -65,11 +65,13 @@ function Storage() { <> Storage - Overview + + Overview +
-
+
Data @@ -79,7 +81,10 @@ function Storage() { -

Overview of total used storage and total capacity of the drives that hold the recordings and snapshots directories.

+

+ Overview of total used storage and total capacity of the + drives that hold the recordings and snapshots directories. +

@@ -181,6 +186,58 @@ function Storage() {
+ +
+ Cameras + + + + + + +

Overview of per-camera storage usage and bandwidth.

+
+
+
+
+ +
+ {Object.entries(storage).map(([name, camera]) => ( + + +
+ + + + Usage + Stream Bandwidth + + + + + + {Math.round(camera["usage_percent"] ?? 0)}% + + + {camera["bandwidth"] + ? `${getUnitSize(camera["bandwidth"])}/hr` + : "Calculating..."} + + + +
+
+
+ ))} +
); }