wp-weather

Latest version: 0.3.8
Please update to the latest version. I apologize for the rash of updates, but this version should fix all issues while allowing multiple forecasts to be used. Hopefully this will be the final update for quite some time.

Download link: http://wordpress.org/extend/plugins/wp-weather/

I have been using weather.com’s XML web service to display local weather information on my family website for several years. I decided to make the PHP code into a widget for wordpress. Here’s where you sign up for their service: http://www.weather.com/services/xmloap.html

This widget uses a database table to cache the data for a half hour to avoid hammering the web service. Additionally, if you are using the wp-cache plugin, any changes to the options clear the cache.

To install: upload to your plugin directory, activate the plugin, set the options and add the widget to your sidebar. Your location ID is a zip code for US and an alphanumeric code for international. Take Dublin for example – when searching for Dublin on weather.com you are taken to the following page: http://www.weather.com/weather/today/Dublin+Ireland+EIXX0014 and EIXX0014 is the location code.

Additionally, you may use a shortcode on any post or page.
[weather_display]
If you want to show different cities on different pages/posts you can specify a location id:
[weather_display location_id="75034"]
If you’d like to display more days than default (what you set in the plugin options page):
[weather_display forecast_length=5]

weather.com has made changes to their servers which now REQUIRE you to enter a partner id and license key in this plugin’s settings. If you do not, they will not send the complete forecast data which in turn will break this plugin.

Preview:

219 responses to “wp-weather”

  1. Fabrice

    Hello,

    I am looking for a plugin able to save the weather in a mysql table each hour (for example). Is your plugin easily updatable do do that ?

    Thanks a lot.

    Fabrice

  2. kopulex

    Hi, I’ve made Czech translation of your localization file WP-Weather’s plugin.

  3. pedro

    Where can I find the Location id (zip code or city code) of my city (montevideo, Uruguay)

  4. Velnias

    Hi, i found a little bug in this plugin. When switching betweeen Metric and standard units, it does not change MPH to km/h. The acctual data is changed but the name of the units are not.

    Also, it shoud be not “standard” but “imperial” i suppose.

  5. Velnias

    A suggestion, it would be nice if plugin could select the weather information by reader location. :)

  6. John

    Hi,

    I’m getting this message frequently, not all the time. Any ideas on what maybe causing this?

    Thanks,

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 500001 bytes) in /home/fleafm/public_html/wp-includes/class-snoopy.php on line 894

  7. Lincoln Barbour

    Is there anyway to add the weather in the WordPress Loop. I want it to be in the header file, not in a post or page. The short tags don’t work in the template files.

    Thanks!

    Lincoln

1 ... 13 14 15

Leave a Reply