From 9e9d5e80d891e41c77ded60c59e122ef734ed31d Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 30 Sep 2024 16:49:01 +0200 Subject: [PATCH] Feat: add panoramax to status page --- src/UI/Status/StatusGUI.svelte | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/UI/Status/StatusGUI.svelte b/src/UI/Status/StatusGUI.svelte index 920c52985..d97e893cd 100644 --- a/src/UI/Status/StatusGUI.svelte +++ b/src/UI/Status/StatusGUI.svelte @@ -93,6 +93,23 @@ }) }) } + { + services.push({ + name: Constants.panoramax.url, + status: testDownload(Constants.panoramax.url + "/api").mapD((result) => { + if (result["success"]?.stac_version === "1.0.0") { + return "online" + } + if (result["error"]) { + return "offline" + } else { + return "degraded" + } + }), + message: simpleMessage(testDownload(Constants.panoramax.url + "/api")) + + }) + } { services.push({ name: Constants.GeoIpServer,