From 68edb0b224458156c3d235f5e69ae320b05edfdd Mon Sep 17 00:00:00 2001 From: Arun Date: Mon, 21 Sep 2026 14:19:47 +0530 Subject: [PATCH] feat: add real-time patient vital signs monitoring dashboard web interface and configuration --- api_client.py | 2 +- config.json | 2 +- config.py | 2 +- static/dashboard.html | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/api_client.py b/api_client.py index d2fefb0..2a3bfb3 100644 --- a/api_client.py +++ b/api_client.py @@ -20,7 +20,7 @@ def get_http_client() -> httpx.AsyncClient: return _http_client def get_cloud_base_url() -> str: - url = getattr(settings, "cloud_api_url", None) or os.getenv("CLOUD_API_URL") or "https://contectfiveparamonitor.onrender.com" + url = getattr(settings, "cloud_api_url", None) or os.getenv("CLOUD_API_URL") or "https://services-api.a2zhealth.in/v1/contec-monitor" return url.rstrip("/") async def forward_vitals_to_api(vitals: NormalizedVitals) -> bool: diff --git a/config.json b/config.json index bcae0ae..0d0712d 100644 --- a/config.json +++ b/config.json @@ -8,7 +8,7 @@ "192.168.100.120": "CMS7000PLUS" }, "target_api_url": "https://services-api.a2zhealth.in/v1/contec-monitor", - "cloud_api_url": "https://contectfiveparamonitor.onrender.com", + "cloud_api_url": "https://services-api.a2zhealth.in/v1/contec-monitor", "api_token": "", "retry_interval_seconds": 60, "log_file": "hl7_forwarder.log", diff --git a/config.py b/config.py index 2a4728f..b036d6a 100644 --- a/config.py +++ b/config.py @@ -10,7 +10,7 @@ class Settings(BaseSettings): monitor_model: str = "CMS7000PLUS" device_models: dict = {} target_api_url: str = "https://services-api.a2zhealth.in/v1/contec-monitor" - cloud_api_url: str = "https://contectfiveparamonitor.onrender.com" + cloud_api_url: str = "https://services-api.a2zhealth.in/v1/contec-monitor" api_token: str = "" retry_interval_seconds: int = 60 log_file: str = "hl7_forwarder.log" diff --git a/static/dashboard.html b/static/dashboard.html index 1d1c982..c8c005a 100644 --- a/static/dashboard.html +++ b/static/dashboard.html @@ -3439,6 +3439,7 @@ // === Configuration === function getAppPrefix() { const p = window.location.pathname; + if (p.includes('/v1/contec-monitor')) return '/v1/contec-monitor'; if (p.includes('/api/')) return p.substring(0, p.indexOf('/api/')); if (p.includes('/dashboard')) return p.substring(0, p.indexOf('/dashboard')); return '';