From d7e5d1e34eccde3e4d5045679a4d3a6ba785a828 Mon Sep 17 00:00:00 2001 From: Etienne Chassaing <60154720+cetiennec@users.noreply.github.com> Date: Mon, 4 Aug 2025 16:31:06 +0200 Subject: [PATCH] Mock can updat and multi conductivity reading --- MockCAN.py | 4 +++- main.py | 2 +- static/monitor.html | 2 +- static/multi_pu_dashboard.html | 2 ++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/MockCAN.py b/MockCAN.py index 7572f31..8b899ff 100644 --- a/MockCAN.py +++ b/MockCAN.py @@ -40,7 +40,9 @@ class CANBackend: "PS2": 6.2, "PS3": 6.2, "PS4": 6.2, - "Cond": 1* np.random.random(), + "Conductivity_Feed": 1* np.random.random(), + "Conductivity_Permeate": 1 * np.random.random(), + "Conductivity_Product": 1 * np.random.random(), "MV02": round(100 * np.random.random(), 2), "MV02_sp": round(100 * np.random.random(), 2), "MV03": round(100 * np.random.random(), 2), diff --git a/main.py b/main.py index 489832e..5cd7dc6 100644 --- a/main.py +++ b/main.py @@ -420,7 +420,7 @@ if __name__ == "__main__": uvicorn.run( "main:app", host="127.0.0.1", - port=8080, + port=8081, reload=True, reload_dirs=["."], ) diff --git a/static/monitor.html b/static/monitor.html index 5e15a9e..a2571f4 100644 --- a/static/monitor.html +++ b/static/monitor.html @@ -170,7 +170,7 @@ { x: time0, y: [0], name: 'Pro', mode: 'lines' }, { x: time0, y: [0], name: 'Pretentate', mode: 'lines' } ], { - title: 'Pressures 1', xaxis: { type: 'date' }, yaxis: { title: 'Pressure (bar)' } + title: 'Pro and Pretentate ', xaxis: { type: 'date' }, yaxis: { title: 'Pressure (bar)' } }); Plotly.newPlot('pressure-plot-2', [ diff --git a/static/multi_pu_dashboard.html b/static/multi_pu_dashboard.html index 162a355..49cac05 100644 --- a/static/multi_pu_dashboard.html +++ b/static/multi_pu_dashboard.html @@ -34,6 +34,7 @@
+