Skip to content

Commit

Permalink
fix grafana path and add scrolling parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jr committed Aug 20, 2021
1 parent 7dbcf5e commit c1e5393
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MMM-GrafanaChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;;
Expand All @@ -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;
Expand Down

0 comments on commit c1e5393

Please sign in to comment.