From b645007884b2fff9ac878eed44716a3d42a53e72 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Fri, 14 Jun 2019 13:42:59 +0200 Subject: [PATCH] Updated the fetchedLocationName (See PR: #1702) --- CHANGELOG.md | 1 + modules/default/currentweather/currentweather.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 228fdd51..75e54a5d 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ Added UK Met Office Datapoint feed as a provider in the default weather module. - Minor types in default NewsFeed [README.md](https://github.com/MichMich/MagicMirror/blob/develop/modules/default/newsfeed/README.md) - Fix typos and small syntax errors, cleanup dependencies, remove multiple-empty-lines, add semi-rule - Fixed issues with calendar not displaying one-time changes to repeating events +- Updated the fetchedLocationName variable in currentweather.js so that city shows up in the header ## [2.7.1] - 2019-04-02 diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index 7b5554c5..ffafd6a0 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -383,6 +383,7 @@ Module.register("currentweather",{ this.humidity = parseFloat(data.main.humidity); this.temperature = this.roundValue(data.main.temp); + this.fetchedLocationName = data.name; this.feelsLike = 0; if (this.config.useBeaufort){