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:

Barb – you should have received an email from weather.com containing your details.
Thanks Matt, I did receive the email, but it says nothing about the key. I’ve found a number in what they sent me I think is the id – it says PID=XXXXXXXXXX, but nothing that says it’s a license key. How many digits is it and does it have a prefix.
Thanks
Oops, sorry Matt, must have been a glitch at weather.com, received yet another email tonight (two days after registering) with the license. Thanks for your help.
[...] wp-weather [...]
I’m working on an inherited web site that uses this plugin, and it’s been working great, but we’ve now had a request to include wind information (we’re an outrigger paddling club and wind has a huge impact on our practices). Is there an easy way to add that bit of information? Otherwise, the plugin is great.
aloha.
Yes, the weather.com xml feed includes wind information. I’ll email you so we can figure out which section to edit as there are two different xml parsers in use to support both PHP4 and PHP5.
I can’t use Celsius. I select “metric” in setting but the temperature is F…
Ahh…I must have overlooked that in the code changes. Will put out an update. Thanks for the bug report.
New version out with fix for this and also added wind information in the settings as an option to display.
Version 0.3.2 is the latest. Sorry for the rash of updates. Thought I’d caught everything in the code upgrade — it was a major overhaul.
Before the update I was able to display the weather in a template using,
weather_display();
but no longer.
Is there a way to display the weather in a template without Widgets?
Crap. I left that out. I’ve now added legacy support for this template function.
Should be the last update in a good while I hope. Sorry everyone!
Excellent! Thanks Matt, great plugin.
Hey Matt, Thanks for making this for everyone. Can you help me to change the color of the text inside the widget? My users are complaining it’s hard to see (because of my theme the grey writing is on black)
http://www.buttebasinduckclub.com Thank you!
You should be able to add some css styling to your theme to accomodate this.
.weather_info { color: #fff; }Thanks for the info! Could you tell me where those 3 lines of code should go in the css template? Thank you very much Matt.