• Hello,

    I want to display a forecast of 6 day, but in front end, i got 6 day temperature block on the same day without temperature like:

    Friday | Friday | Friday | Friday | Friday | Friday |
    0°C 0°C|0°C 0°C|0°C 0°C|0°C 0°C|0°C 0°C|0°C 0°C|

    I saw, i can only display 5 forcast with and free key of OpenWeatherMap so i change this, but same problem.

    Any ideas ? Did i made a mistake ?
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,
    clear your weather cache (WP -> Settings -> WP Cloudy -> Clear cache

    Also, make sure your have setup your OpenWeatherMap API key.

    Hi Ben,

    I encounter a similar issue while using the five day forecast for Faro, Portugal (ID=2268339). The forecast for high and low temperatures appears to show always the same values instead of low/high temperature values. The issue appears to be a change of the API JSON response from http://openweathermap.org/.

    The corresponding API call is
    https://api.openweathermap.org/data/2.5/forecast?id=2268339&units=metric&APPID=<YOUROPENWEATHERMAPID>

    The returned JSON consists of a list of forecast values every three hours, i.e. eight list entries per day. Each of the forecast entries contains a temp, temp_min, and a temp_max value, which are typically the same. To get the proper low / high temp values, the API requires to iterate through all 8 entries per day storing min/max values instead.

    Thanks in advance,

    Matthieu

    I added the link to the current API doc for further investigation (see section Parameters of API respond for 5 day / 3 hour forecast): https://openweathermap.org/weather-data

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    In fact, it’s now a paid feature available in Forecast API 🙁

    See this link: https://openweathermap.org/current

    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.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WP Cloudy – Weather Forecast issue’ is closed to new replies.