mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
change weathergov.js for multi-URL api
This commit is contained in:
parent
46543daa13
commit
1244121216
@ -1,4 +1,4 @@
|
|||||||
/* global WeatherProvider, WeatherObject */
|
/* global WeatherProvider, WeatherObject, SunCalc */
|
||||||
|
|
||||||
/* Magic Mirror
|
/* Magic Mirror
|
||||||
* Module: Weather
|
* Module: Weather
|
||||||
@ -203,7 +203,7 @@ WeatherProvider.register("weathergov", {
|
|||||||
// specify date
|
// specify date
|
||||||
weather.date = moment(forecast.startTime);
|
weather.date = moment(forecast.startTime);
|
||||||
|
|
||||||
// If the first value of today is later than 17:00, we have an icon at least!
|
// use the forecast isDayTime attribute to help build the weatherType label
|
||||||
weather.weatherType = this.convertWeatherType(forecast.shortForecast, forecast.isDaytime);
|
weather.weatherType = this.convertWeatherType(forecast.shortForecast, forecast.isDaytime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user