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, )