Search code examples
androidopenweathermap

Openweathermap API get HIGH and LOW temperature of the day


I'm developing an android app and I need the current weather and its low/high temperature for the city I'm in. Is there a way to get the current high and low temperature for the city I'm in?

I found that there's a min/max temperature but I don't think it's what I'm looking for. If openweathermap doesn't have low/high temp, is there a way I can find it manually from its data?

"Please, do not confuse min/max parameters in current weather API and forecast API. In current weather API temp_min and temp_max are optional parameters mean min / max temperature in the city at the current moment to see deviation from current temp just for your reference. For large cities and megalopolises geographically expanded it might be applicable. In most cases both temp_min and temp_max parameters have the same volume as 'temp'. Please, use temp_min and temp_max parameters in current weather API optionally."


Solution

  • For the Current Weather API of OpenWeatherMap the max and min temp are based on the current temperature. Meaning if the temp is 70 degrees the min is probably 69 degrees and the max is 71 degrees. The min and max are just given to be the range of temperature at that time not the entire day. You must use the other API (Forecast API) to get the min and max temperatures of the ENTIRE day.