From c67caf94c18f507a8dfce0f4e214f7e5b4b4551a Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Sun, 14 May 2023 21:37:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=9B=20Adds=20topbar=20information=20dr?= =?UTF-8?q?awer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/components/Topbar.svelte | 97 ++++++++++++++++++++++++++------ app/src/lib/utils.ts | 4 ++ 2 files changed, 84 insertions(+), 17 deletions(-) create mode 100644 app/src/lib/utils.ts diff --git a/app/src/components/Topbar.svelte b/app/src/components/Topbar.svelte index b79e9d4..bffeec7 100644 --- a/app/src/components/Topbar.svelte +++ b/app/src/components/Topbar.svelte @@ -1,33 +1,96 @@ -
-
-
- - - +
+
+ +
+
- - - - + {#if $width !== 0} +
+
RSSI:{$data[0]}db
+
MPU:{round($data[1])}°
+
CPU:{round($data[8])}°
+
X:{round($data[5])}
+
Y:{round($data[6])}
+
Z:{round($data[7])}
+
Left:{round($data[9])}cm
+
Right:{round($data[10])}cm
+
Heap:{humanFileSize($data[11])}
+
Psram:{humanFileSize($data[12])}
+
+
+ + +
+ {/if} +
+
+ + + +
+ + + + +
-
{Math.floor($data[1])}°🌡️
+
{Math.floor($data[8])}°🌡️