File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
modules/default/weather/providers Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -370,8 +370,6 @@ WeatherProvider.register("openmeteo", {
370370 */
371371 const h = moment ( ) . hour ( ) ;
372372 const currentWeather = new WeatherObject ( ) ;
373- Log . info ( weather ) ;
374- Log . info ( h ) ;
375373
376374 currentWeather . date = weather . current_weather . time ;
377375 currentWeather . windSpeed = weather . current_weather . windspeed ;
@@ -383,15 +381,13 @@ WeatherProvider.register("openmeteo", {
383381 currentWeather . maxTemperature = parseFloat ( weather . daily [ 0 ] . temperature_2m_max ) ;
384382 currentWeather . weatherType = this . convertWeatherType ( weather . current_weather . weathercode , currentWeather . isDayTime ( ) ) ;
385383 currentWeather . humidity = parseFloat ( weather . hourly [ h ] . relativehumidity_2m ) ;
386- // currentWeather.feelsLikeTemp = parseFloat(weather.hourly[h].apparent_temperature);
384+ currentWeather . feelsLikeTemp = parseFloat ( weather . hourly [ h ] . apparent_temperature ) ;
387385 currentWeather . rain = parseFloat ( weather . hourly [ h ] . rain ) ;
388386 currentWeather . snow = parseFloat ( weather . hourly [ h ] . snowfall * 10 ) ;
389387 currentWeather . precipitationAmount = parseFloat ( weather . hourly [ h ] . precipitation ) ;
390388 currentWeather . precipitationProbability = parseFloat ( weather . hourly [ h ] . precipitation_probability ) ;
391389 currentWeather . uv_index = parseFloat ( weather . hourly [ h ] . uv_index ) ;
392390
393- Log . info ( currentWeather ) ;
394-
395391 return currentWeather ;
396392 } ,
397393
You can’t perform that action at this time.
0 commit comments