diff --git a/CHANGELOG.md b/CHANGELOG.md index faa8b775..d48a7faf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Prevent `getModules()` selectors from returning duplicate entries. +- Append endpoints of weather modules with `/` to retreive the correct data. (Issue [#337](https://github.com/MichMich/MagicMirror/issues/337)) ## [2.0.3] - 2016-07-12 ### Added @@ -15,8 +16,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Add an analog clock in addition to the digital one. ### Fixed -- Edit Alert Module to display title & message if they are provided in the notification (Issue #300) -- Removed 'null' reference from updateModuleContent(). This fixes recent Edge and Internet Explorer browser displays (Issue #319) +- Edit Alert Module to display title & message if they are provided in the notification (Issue [#300](https://github.com/MichMich/MagicMirror/issues/300)) +- Removed 'null' reference from updateModuleContent(). This fixes recent Edge and Internet Explorer browser displays (Issue [#319](https://github.com/MichMich/MagicMirror/issues/319)) ### Changed - Added default string to calendar titleReplace. diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index e00e738d..71fd93c4 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -164,7 +164,7 @@ Module.register("currentweather",{ * Calls processWeather on succesfull response. */ updateWeather: function() { - var url = this.config.apiBase + this.config.apiVersion + "/" + this.config.weatherEndpoint + this.getParams(); + var url = this.config.apiBase + this.config.apiVersion + "/" + this.config.weatherEndpoint + '/' + this.getParams(); var self = this; var retry = true; @@ -201,7 +201,7 @@ Module.register("currentweather",{ var params = "?"; if(this.config.locationID !== "") { params += "id=" + this.config.locationID; - } else { + } else { params += "q=" + this.config.location; } params += "&units=" + this.config.units; diff --git a/modules/default/weatherforecast/weatherforecast.js b/modules/default/weatherforecast/weatherforecast.js index dd8e0a46..daec744e 100644 --- a/modules/default/weatherforecast/weatherforecast.js +++ b/modules/default/weatherforecast/weatherforecast.js @@ -161,7 +161,7 @@ Module.register("weatherforecast",{ * Calls processWeather on succesfull response. */ updateWeather: function() { - var url = this.config.apiBase + this.config.apiVersion + "/" + this.config.forecastEndpoint + this.getParams(); + var url = this.config.apiBase + this.config.apiVersion + "/" + this.config.forecastEndpoint + '/' + this.getParams(); var self = this; var retry = true; @@ -198,7 +198,7 @@ Module.register("weatherforecast",{ var params = "?"; if(this.config.locationID !== "") { params += "id=" + this.config.locationID; - } else { + } else { params += "q=" + this.config.location; } params += "&units=" + this.config.units;