fix rain amount information for different units and providers, documentation

This commit is contained in:
fewieden
2018-12-30 20:46:25 +01:00
parent 8dd7621f29
commit de04c12d3c
7 changed files with 150 additions and 18 deletions

View File

@@ -46,7 +46,7 @@ var WeatherProvider = Class.extend({
},
// Called when the weather provider is about to start.
start: function(config) {
start: function() {
Log.info(`Weather provider: ${this.providerName} started.`);
},
@@ -72,7 +72,7 @@ var WeatherProvider = Class.extend({
return this.weatherForecastArray;
},
// This returns the name of the fetched location or an empty string
// This returns the name of the fetched location or an empty string.
fetchedLocation: function() {
return this.fetchedLocationName || "";
},
@@ -93,7 +93,7 @@ var WeatherProvider = Class.extend({
this.updateAvailable();
},
// Set the fetched location name
// Set the fetched location name.
setFetchedLocation: function(name) {
this.fetchedLocationName = name;
},