WeatherLib icon indicating copy to clipboard operation
WeatherLib copied to clipboard

OpenWeatherMap : min/max temp is null in getForecastWeather

Open fabreax opened this issue 9 years ago • 3 comments

Hi, Using OpenWeatherMap, min/max temp is always null. Is it a known issue ?

fabreax avatar May 21 '15 10:05 fabreax

Nope it shouldnt be, try to use a known location (as. Rome, London and so on) and check if the temp is null. It is not a bug as far as i know. Check if the JSON coming from OWM has the temps. Let me know

survivingwithandroid avatar May 22 '15 13:05 survivingwithandroid

For instance, in debug mode, this is the url called : http://api.openweathermap.org/data/2.5/forecast/daily?mode=json&lat=48.756406&lon=2.3055477&units=metric&lang=en&APPID=928480875df79d0b28fbd89422ec55e1

We have min/max temperatures in the json result but for each DayForecast, we have a null value for dayForecast.temperature.getMinTemp() (the same form getMaxTemp and getTemp).

Are you able to reproduce it ?

fabreax avatar May 22 '15 15:05 fabreax

Got the same issue. Also, forecastTemp is not empty, but the values are surprisingly close together. Here's a screenshot from the retrieved list: http://s17.postimg.org/f0ynoduin/Screenshot_20160221_012608.png

KlausHans avatar Feb 21 '16 00:02 KlausHans