From c1e5393c6cfe420d59e7ef2187d6664ebb2927d1 Mon Sep 17 00:00:00 2001 From: jr Date: Fri, 20 Aug 2021 10:57:30 +0200 Subject: [PATCH] fix grafana path and add scrolling parameter --- MMM-GrafanaChart.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MMM-GrafanaChart.js b/MMM-GrafanaChart.js index 718729b..903dd21 100755 --- a/MMM-GrafanaChart.js +++ b/MMM-GrafanaChart.js @@ -29,8 +29,7 @@ Module.register("MMM-GrafanaChart", { iframe.scrolling = this.config.scrolling; if (this.config.version == "6") { - iframe.src = "http://" + this.config.host + ":" + this.config.port + "/d-solo/" + this.config.id + "/" + this.config.dashboardname + "?orgId=" + this.config.orgId + "&panelId=" + this.config.panelId + "&fullscreen&kiosk"; - + iframe.src = "http://" + this.config.host + ":" + this.config.port + "/d-solo/" + this.config.id + "/" + this.config.dashboardname + "?orgId=" + this.config.orgId + "&panelId=" + this.config.panelId + "&fullscreen&kiosk"; } else{ iframe.src = "http://" + this.config.host + ":" + this.config.port + "/dashboard-solo/db/" + this.config.dashboardname+ "?orgId=" + this.config.orgId + "&panelId=" + this.config.panelId;; @@ -55,7 +54,7 @@ Module.register("MMM-GrafanaChart", { } if (this.config.version == "6") { - this.src = "http://" + this.config.host + ":" + this.config.port + "/d-solo/" + this.config.id + "/" + this.config.dashboardname + "?orgId=" + this.config.orgId + "&panelId=" + this.config.panelId + "&fullscreen&kiosk"; + this.src = "http://" + this.config.host + ":" + this.config.port + "/d-solo/" + this.config.id + "/" + this.config.dashboardname + "?orgId=" + this.config.orgId + "&panelId=" + this.config.panelId + "&fullscreen&kiosk"; } else{ this.src = "http://" + this.config.host + ":" + this.config.port + "/dashboard-solo/db/" + this.config.dashboardname+ "?orgId=" + this.config.orgId + "&panelId=" + this.config.panelId;