From 7edb759bd92284a06ad969288990ccfc0df840fb Mon Sep 17 00:00:00 2001 From: Etienne Chassaing <60154720+cetiennec@users.noreply.github.com> Date: Wed, 6 Aug 2025 10:49:56 +0200 Subject: [PATCH] Adds DS data reading and monitor page --- templates/control.html | 71 ++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 37 deletions(-) diff --git a/templates/control.html b/templates/control.html index 4570436..94f825d 100644 --- a/templates/control.html +++ b/templates/control.html @@ -21,8 +21,8 @@ background-color: #1e1e1e; padding: 10px 20px; display: flex; - flex-direction: column; - align-items: flex-start; + justify-content: space-between; + align-items: center; } .header-row { display: flex; @@ -191,25 +191,28 @@ .monitor-link { color: white; background-color: #007bff; - padding: 10px 15px; + padding: 5px 10px; border-radius: 5px; text-decoration: none; font-weight: bold; + font-size: 12px; } .monitor-link:hover { background-color: #0056b3; } .monitor-pu-buttons { display: flex; - gap: 10px; + gap: 5px; + margin: 10px; } .monitor-pu-buttons a { color: white; background-color: #007bff; - padding: 10px 15px; + padding: 5px 10px; border-radius: 5px; text-decoration: none; font-weight: bold; + font-size: 12px; } .monitor-pu-buttons a:hover { background-color: #0056b3; @@ -235,38 +238,32 @@
-
-

Hydraulic Machine Control

-
- - -
-
-
- - +

Hydraulic Machine Control

+ +
@@ -377,12 +374,12 @@ connectButton.classList.remove('connected'); connectButton.innerHTML = ' Connect'; } - connectButton.innerHTML = ` ${data.connected ? 'Disconnect' : 'Connect'}`; } async function toggleConnection() { const response = await fetch('/connect_toggle', { method: 'POST' }); const data = await response.json(); + await getConnectionStatus(); } let isRecording = false;