• Resolved stevang1

    (@stevang1)


    The following link worked perfectly fine using my free openweathermap API key.
    api.openweathermap.org/data/2.5/weather?q=my-city-name&APPID=my-API-Key
    But i get 401 errors all over when i try to test your plugin with the free API key of openweathermap.

    So the question is, does this plugin work with openweathermap free? It does not look like it to me. Would be nice to know upfront, cause i was under the impression it would work with the free openweathermap API.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter stevang1

    (@stevang1)

    ..and if i would subscribe to a paid openweathermap plan,
    how does your plugin cache the weather data?
    I want to display weather and forecast for a certain city only.
    If i had a 1000 visitors to my wordpress weather page for that city a day,
    how many API calls would that trigger?

    Plugin Author tuxlog

    (@tuxlog)

    Hi,

    please check if your API-Key works with One-call-API from OpenWeatherMap. Either

    https://api.openweathermap.org/data/2.5/onecall?lat=<YourLAT>&lon=<YourLON>&appid=<YourAPIKEY>&exclude=minutely,hourly&units=metric&lang=en


    or https://api.openweathermap.org/data/3.0/onecall?&#8230; must work for the plugin.

    As an alternative you can use the weatherdata from OpenMeteo for free and without ApiKey. You can switch to OpenMeteo in the admin dialog.

    You can set the time the data is cached in the admin dialog of wp-forecast, e.g. 3600 seconds for one hour and this would trigger 24 calls a day.

    Thread Starter stevang1

    (@stevang1)

    Ok, i had to subscribe to One Call API 3.0 with a credit card to make it work, wich still should have 1000 Calls free a day. So it should not cost a thing for my “one city weather forecast” display and a 30min cache. The free OWM API did not work for me.

    btw: are there any design examples or tutorials? i am not very familiar with CSS and i would like the widget output to look “different”. i think, the plugin is really great with the different widgets etc but it could look a little more modern and stylish. Also Barbaras Icons are not available anymore on archive.org. Are there any other sets of icons that one could use, except the accuweather.com ones?

    ps: thanks for offering a free forecast plugin!

    Plugin Author tuxlog

    (@tuxlog)

    Good to hear it is working. To use any of the available weather icon sets on the internet, you have to renamethe icons mapping the weathersituations.

    Mapping for OpenWeatherMap:

                'clear-day'             => '01',
    'clear-night' => '33',
    'rain' => '12',
    'snow' => '22',
    'sleet' => '29',
    'wind' => '32',
    'fog' => '11',
    'cloudy' => '06',
    'partly-cloudy-day' => '04',
    'partly-cloudy-night' => '38',
    'hail' => '25',
    'thunderstorm' => '15',
    'tornado' => '32',

    As for the CSS, my first try would be to deactivate the CSS from wp-forecast in the admin dialog and see what your theme is doing with the widget. Then try to format it via your themes settings and/or CSS.

    Hope it helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.