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:

221 responses to “wp-weather”

  1. Barb

    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

  2. Barb

    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.

  3. Top 1000 WordPress Plugin Authors « Metode de promovare

    [...] wp-weather [...]

  4. paul

    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.

  5. Maurizio Delladio

    I can’t use Celsius. I select “metric” in setting but the temperature is F…

  6. Paul

    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?

  7. Paul

    Excellent! Thanks Matt, great plugin.

  8. Benjamin

    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!

  9. Benjamin

    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.

1 ... 9 10 11 12 13 ... 15