From 83ebe2f212ffb35aa6261044221a8671c5ff117d Mon Sep 17 00:00:00 2001 From: Etienne Chassaing <60154720+cetiennec@users.noreply.github.com> Date: Tue, 15 Jul 2025 14:11:14 +0200 Subject: [PATCH] Adds record button --- MockCAN.py | 1 - static/monitor.html | 174 +++++++++++++++++++++++++++++++------------- 2 files changed, 122 insertions(+), 53 deletions(-) diff --git a/MockCAN.py b/MockCAN.py index 9ab93cb..615d6c3 100644 --- a/MockCAN.py +++ b/MockCAN.py @@ -15,7 +15,6 @@ class CANBackend: def shutdown(self): self.connected = False - def read_current_state(self,pu_number: int): # Placeholder for reading mode command return PUs_states[pu_number-1]["PU_MODE"] diff --git a/static/monitor.html b/static/monitor.html index 34ab5e7..48b763a 100644 --- a/static/monitor.html +++ b/static/monitor.html @@ -34,6 +34,16 @@ font-size: 16px; padding: 5px 10px; } + #recordButton { + background-color: #ff4444; + color: white; + border: none; + padding: 10px 20px; + font-size: 16px; + cursor: pointer; + border-radius: 5px; + margin: 10px; + }
@@ -44,7 +54,7 @@ - +