From 94f6e9dc3ff32266cef3a099b47692b431a06fee Mon Sep 17 00:00:00 2001 From: Victor Fraile Garcia Date: Wed, 27 May 2026 14:07:02 +0200 Subject: [PATCH] fix(ucepsa): show monitored machine in operator console --- .../services/operator-stop-console/app.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/ucepsa/edge-oee-demo/services/operator-stop-console/app.py b/ucepsa/edge-oee-demo/services/operator-stop-console/app.py index bd4173e..beb4503 100644 --- a/ucepsa/edge-oee-demo/services/operator-stop-console/app.py +++ b/ucepsa/edge-oee-demo/services/operator-stop-console/app.py @@ -23,7 +23,8 @@ PG_CONFIG = { } APP_TITLE = getenv("APP_TITLE", "MESAVAULT Edge-OEE - Consola de paros") -DEFAULT_MACHINE_ID = getenv("DEFAULT_MACHINE_ID", "CORTADORA 01") +DEFAULT_MACHINE_ID = getenv("DEFAULT_MACHINE_ID", "CORT-01") +DEFAULT_ASSET = getenv("DEFAULT_ASSET", "revpi_oee_node_01") app = Flask(__name__) @@ -297,10 +298,15 @@ PAGE = """
Paros pendientes
{{ stops|length }}
-
-
Máquina demo
-
{{DEFAULT_MACHINE_ID}}
-
+ + +
+
Máquina monitorizada
+
{{ default_machine }}
+
{{ default_asset }}
+
+ + {% if stops|length == 0 %} @@ -404,6 +410,7 @@ def index(): causes=causes, now=datetime.now().strftime("%Y-%m-%d %H:%M:%S"), default_machine=DEFAULT_MACHINE_ID, + default_asset=DEFAULT_ASSET, )