Reduce length of weatherProvider field in response
This commit is contained in:
@@ -60,7 +60,7 @@ export default class DarkSkyWeatherProvider extends WeatherProvider {
|
||||
}
|
||||
|
||||
return {
|
||||
weatherProvider: "DarkSky",
|
||||
weatherProvider: "DS",
|
||||
temp: totals.temp / 24,
|
||||
humidity: totals.humidity / 24 * 100,
|
||||
precip: totals.precip,
|
||||
@@ -147,7 +147,7 @@ export default class DarkSkyWeatherProvider extends WeatherProvider {
|
||||
}
|
||||
|
||||
return {
|
||||
weatherProvider: "DarkSky",
|
||||
weatherProvider: "DS",
|
||||
periodStartTime: historicData.hourly.data[ 0 ].time,
|
||||
minTemp: historicData.daily.data[ 0 ].temperatureMin,
|
||||
maxTemp: historicData.daily.data[ 0 ].temperatureMax,
|
||||
|
||||
@@ -37,7 +37,7 @@ export default class WUnderground extends WeatherProvider {
|
||||
}
|
||||
|
||||
return {
|
||||
weatherProvider: "WUnderground",
|
||||
weatherProvider: "WU",
|
||||
temp: totals.temp / samples.length,
|
||||
humidity: totals.humidity / samples.length,
|
||||
precip: totals.precip,
|
||||
|
||||
Reference in New Issue
Block a user