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:

Hi Matt
I added wp-weather and now have :
Fatal error: Call to a member function on a non-object in /usr/www/users/theoar/wp/wp-content/plugins/wp-weather/wp-weather.php on line 394
Advice?
The config link to setup this widget does not work.
I have the partner ID and the license key but no idea how to set this up now. I also know the City code.
Please help or link to a config page for this widget.
Cheers,
Kev
Hi Matt !
Great plugin. Just what I was looking for
But there is a small problem. I live outside the USA and some times weather.com doesnt display weather and so for my city it shows N/A
However the plugin doesn’t display the N/A image which is bundled with the other plugin files (just like how it does for sunny and cloudy)
So the widget just displays this:
Currently: ˚ C
Feels Like: ˚ C
Hi: ˚, Lo: ˚
It looks very odd on my sidebar..Any ideas ??
Multiple cities function would be really great.
I have PHP 5 and wordpress 2.8.1, will this widget work? Thanks!
Signing up to weather.com’s XML service is nothing short of ridiculous. Where are the codes for the service? They provide zero instruction as to what happens after they throw 10 or more + ads at you!
I forgot to mention that I checked my email for the info as well, and nothing.
How can I get the partner_id and licence key?
Hi there,
I just wanna know why sometimes show this message:
Fatal error: Uncaught exception ‘Exception’ with message ‘String could not be parsed as XML’ in /public_html/site/wp-content/plugins/wp-weather/wp-weather.php:306 Stack trace: #0 /public_html/site/wp-content/plugins/wp-weather/wp-weather.php(306): SimpleXMLElement->__construct(”) #1 /public_html/site/wp-content/plugins/wp-weather/wp-weather.php(295): parseSimpleXml(”) #2
Please, if you know.. mail me.
Thanks again
Hi, I’m looking for where I can edit the alt texts for Rain, Farly… etc.
can you halp me?
Hi,
I’ve installed this plug-in but the weather only shows the information from when it is last refreshed.
Is there a way to set this to automatically refresh whenever someone loads the page, or automatically in the background every 10 minutes or so?
Thanks
Laerte, I had the same issue, didn’t have time to invest though, I just switched off the plugin. Maybe the provided xml format has changed, I don’t know. If anybody has a clue…
Steven – it is hardcoded in the plugin file to refresh every 30 minutes. This is required by weather.com.
Pad/Laerte – the issue here is that sometimes weather.com doesn’t return the full XML in their response. I’ve coded around this in one instance, but looks like I need additional checks.
Thanks for the answer, i must confess i haven’t taken time to investigate this issue so far
Hi, sorry to be stupid, but I’ve signed up with weather.com and for the life of me I can’t figure out where to find the Id and license number. Can you help me?