survivingwithandroid / WeatherLib

Android Weather Library: android weather lib to develop weather based app fast and easily
http://survivingwithandroid.github.io/WeatherLib/
640 stars 170 forks source link

OpenWeatherMap : min/max temp is null in getForecastWeather #27

Open fabreax opened 9 years ago

fabreax commented 9 years ago

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

survivingwithandroid commented 9 years ago

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

fabreax commented 9 years ago

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 ?

KlausHans commented 8 years ago

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