diff --git a/MMM-GrafanaChart.js b/MMM-GrafanaChart.js index dcc70c0..61d78b5 100755 --- a/MMM-GrafanaChart.js +++ b/MMM-GrafanaChart.js @@ -34,8 +34,12 @@ Module.register("MMM-GrafanaChart", { URL += "/" + this.config.dashboardname; URL += "?orgId=" + this.config.orgId; URL += "&panelId=" + this.config.panelId; - URL += "&from=" + this.config.from; - URL += "&to=" + this.config.to + if( this.config.from ){ + URL += "&from=" + this.config.from; + } + if( this.config.to ){ + URL += "&to=" + this.config.to + } if (this.config.version == "6") { URL += "&fullscreen&kiosk"; }