From 7d868462a233a84b1d77c23b9b7f8407973cebce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Kie=C5=82kowski?= Date: Thu, 28 May 2026 15:37:50 +0200 Subject: [PATCH 1/3] status text disabled --- als_alert_screen.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/als_alert_screen.html b/als_alert_screen.html index 16d87b1..be83c97 100644 --- a/als_alert_screen.html +++ b/als_alert_screen.html @@ -178,7 +178,7 @@ - +
@@ -201,7 +201,7 @@ const MACHINES = [ "4.65","4.68","5.29","5.54" ]; -const WS_BASE = "ws://luport.local/ws/als-data/"; +const WS_BASE = "ws://192.168.40.127/ws/als-data/"; const RECONNECT_MS = 5000; // ── Debug mode ──────────────────────────────────────────────────────────── @@ -305,7 +305,7 @@ function renderCards(alarms) { card.className = "machine-card"; card.innerHTML = `
${d.machine ?? id}
-
${d.status ?? "ALARM"}
+ `; grid.appendChild(card); }); From c170807172b367da90982803f193033d41e986ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Kie=C5=82kowski?= Date: Thu, 28 May 2026 15:40:37 +0200 Subject: [PATCH 2/3] unicode char fix --- als_alert_screen.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/als_alert_screen.html b/als_alert_screen.html index be83c97..fd9957e 100644 --- a/als_alert_screen.html +++ b/als_alert_screen.html @@ -97,7 +97,7 @@ 50% { box-shadow: 0 0 30px rgba(255,0,0,.70); } } - /* ── big machine number – skala przez --cols / --rows + cqw ── */ + /* ── big machine number - skala przez --cols / --rows + cqw ── */ .card-machine-id { font-size: min(calc(55vw / var(--cols, 1)), calc(55vh / var(--rows, 1)), 35cqw); font-weight: 900; From 7cf063431df402d44434be9e45a154d89f03b287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Kie=C5=82kowski?= Date: Mon, 1 Jun 2026 19:41:16 +0200 Subject: [PATCH 3/3] hidden status-bar & machine.status --- als_alert_screen.html | 617 +++++++++++++++++++++++------------------- 1 file changed, 345 insertions(+), 272 deletions(-) diff --git a/als_alert_screen.html b/als_alert_screen.html index fd9957e..c114fd3 100644 --- a/als_alert_screen.html +++ b/als_alert_screen.html @@ -1,330 +1,403 @@ - + - - - + + + ALS Alert Screen - - + + + - - -
-
+
+
Alarm 0 +
+
-
-
-
WS: 0 / 0
+ - - + // ── Bootstrap ───────────────────────────────────────────────────────────── + if (DEBUG_ALARM) { + DEBUG_MACHINES.forEach((id) => { + machineData[id] = DEBUG_DATA[id]; + }); + document.getElementById("status-bar").textContent = + "[DEBUG] widok alarmowy"; + } else { + MACHINES.forEach(connect); + } + updateDisplay(); + +