wp-weather
Updated: 2008-0815
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.
I have been using weather.com's XML web service to display local weather information on my family website for several years. Today I decided to make the PHP code into a widget for wordpress.
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.
This version now supports PHP4.
If you have questions, leave a comment or contact me.
Preview:

Downloads: 7879 times
Update: This plugin is now in the Subversion Repository.
http://svn.wp-plugins.org/wp-weather/trunk
Update: The plugin can be placed anywhere in your template with a simple call to the display function (assuming you have configured the basic options in the admin):
-
<?php
-
weather_display();
-
?>
I have changed the plugin to use the snoopy class provided by wordpress for retrieving the xml data. This should get around the fopen issues with some hosts.


136 Comments to 'wp-weather'
March 2, 2007
WP Plugin:wp-weather...
This plugin display local weather information on your blog
Table of Contents
Name(插件名称)
Author(插件作者)
Version(插件版本)
Download(下载插件)
Introduction(插件介绍)
Installation(安装插件)
Name....
March 2, 2007
Thanks for your plugin,I 've collected it on my blog here
http://www.tearsea.com/?p=632
March 2, 2007
Is there any possible work around to use this plugin if your server only has PHP4?
March 3, 2007
I will look into a way to parse the xml that will work under PHP4. Hopefully, there is an easy was to do so as SimpeXML really makes x-path navigation easy. Stay tuned for updates.
March 3, 2007
Is there a way to show more than one city location?
March 3, 2007
Not currently. I'm sure it is rather simple to do so, but how to display it might be a challenge.
March 4, 2007
Is there any way..to use this plugin without widgets?
March 4, 2007
Nice, i gonna try this! thanks!
March 4, 2007
i have a problem with this plug, i have the ID number and the licence key but not the other required fields... and when i update the options my blog "crash".
Check in this pls
http://img95.imageshack.us/img95/4548/clipboard01fl2.jpg
thanks
March 4, 2007
Looks like you're using this plugin on PHP4. I'm currently investigating a solution for PHP4 users, but at this moment, the plugin only works on PHP5 with SimpleXML.
March 5, 2007
March 7, 2007
I get the following error when I activate your WP Plugin:
---
Warning: require_once(/home/incog/public_html/blog/wp-admin/upgrade-functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/incog/public_html/blog/wp-content/plugins/wp-weather/wp-weather.php on line 33
Fatal error: require_once() [function.require]: Failed opening required '/home/incog/public_html/blog/wp-admin/upgrade-functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/incog/public_html/blog/wp-content/plugins/wp-weather/wp-weather.php on line 33
---
I noticed that I do not have the file "upgrade-functions.php" in that folder and suspect this is the problem.
What is that file for, and why don't I have it?
I'm running WP 2.0.5.
Thanks in advance.
March 7, 2007
Rusty: That file is included in later versions of WP. I am utilizing it to create the database table that stores the weather data. The WP reference for the methods I am using is here. I suggest you upgrade to 2.1.2 as I can not support below 2.1 and there are many security fixes in the new code.
Cheers.
March 15, 2007
What code do I need to enter in my sidebar.php file to get this working? I installed the plugin and configured it without problems. But now I am stuck with how to get it up and running on my site. I have WP 2.1 installed along with PHP5. Any help would be appreciated.
March 15, 2007
Rhon - you need a widget compatible theme. Upon selecting a widget compatible theme from the presentation tab, you should see a new option on that page for Sidebar Widgets. This is where you drag and drop the wp-weather widget to your sidebar.
Cheers.
March 15, 2007
So their is no using this theme without having a widget compatible theme? I would really like to use the theme I hacked together and just be able to add some code to my sidebar.php file.
Any chance this can happen? Thanks...
March 20, 2007
What code do I use to get it to show on my site? I'm using WP
March 20, 2007
Ditto to what Rhon said. I hate widgets and there are still a whole lot of people who avoid them like the plague. Would be nice if this didn't require a "idget" ready theme. I'm sure there is a work around and just a matter of time before somebody posts it. If I were talented enough, I would.lol
March 20, 2007
I found a simple solution - if you'd like to include this, assuming you've already done the configuration part, insert this anywhere in your template.
April 13, 2007
Fatal error: Cannot instantiate non-existent class: simplexmlelement in /srv/www/vhosts/sunsonic.de/subdomains/ardiem/httpdocs/1988er/wp-content/plugins/wp-weather/wp-weather.php on line 204thats what happens when i try to display the plugin on my blog
April 13, 2007
1988er -- you don't have php5 if you get that error. The next release of this plugin will check for it upon activation and not allow you to activate if the host is not compatible.
April 15, 2007
Hi,
Is there any possibility that the temperature will be shown in Celsius as well.
Thanks in advance,
Marc
May 1, 2007
Any chance the next version could have a 2-3 day forecast. It would be great if an effect like Yahoo.com has for their weather display could be used. I.E.: When you mouseover the current weather, it animated down to reveal the 3 day forecast.
May 7, 2007
Please add the option to view the forecast for the next few days.
May 19, 2007
Marc: it is actually very easy to add whatever you want to this and change to metric.
Just specify more in the $forecast_url
$forecast_url = 'http://xoap.weather.com/weather/local/' . $location_id . '?cc=*&dayf=' .$forecast_length .'&prod=xoap&par=' . $partner_id . '&key=' . $license_key . '&ut=C&ud=k&us=k&up=m&ur=m';I am also working on localizing this for Chinese right now, the xml is fairly straight forward for how to add things you want
May 22, 2007
Hey Matt, (or anyone who can help with this one)
I am getting annoying errors, which range from annoying to admin-panel destroying.
Here's my code for the translations, as you may notice, it is not complete yet due to a lack of a full list of what each graphic actually represents (that would be helpful)
http://www.notaclue.ktcs.net/dev/wp-weather.txt
The error I am getting is this:
Warning: Cannot modify header information - headers already sent by (output started at /PATH/public_html/wp-content/plugins/wp-weather/wp-weather.php:1) in /PATH/public_html/wp-includes/pluggable.php on line 329
I am stumped as I am not great with php and have been away from coding for a few years, any help is greatly appreciated.
Thanks
May 22, 2007
welp, i'm an idiot.
if anyone else is getting this problem, edit .htaccess and throw in
PHP_FLAG output_buffering on
May 28, 2007
I'm trying to get the weather widget working, and keep getting this error:
WordPress database error: [Table 'hawaiibnb_com_2.wp_weatherxml' doesn't exist]
Where can I find information on setting up this table in my database?
May 28, 2007
Sharon - your wordpress version might not have the required dbDelta function. If you can log into your phpmyadmin and execute this sql, you should be set.
June 15, 2007
Hi,
Do you have a time schedule for making this work for PHP Version 4.3.11? I have the same error on line 204 as 1988er.
As it isn't working on my server, is it worth the wait - does the service work for places outside the US?
Thanks,
Andy
June 19, 2007
Hi Matt,
Quick question on a problem I am experiencing. (WP 2.2, PHP 5.2.2, and an older hacked template that I have brought up to widget capable code (per the WP guys instructions and code). Here's the error I get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@sundoggy.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
If you have any ideas, I'd appreciate it. It looks great, and I hope to try it out soon.
Thanks,
Paul
June 19, 2007
I understand. Thanks for the reply.
Unfortunately I received a similar reply from hostexcellence.com/ so it looks like I need to look for an alternative. Any ideas?
"I'm sorry, it is impossible to make an upgrade of PHP version on our servers at the moment. I regret.
We do not at this current time have any ETA for PHP5. We do appreciate your interest, and your patience in this situation. We will inform all current customers at such time as we do begin to offer PHP5."
Regards,
Andy
________________________________________
Unfortunately I do not have a solution for PHP
July 25, 2007
Thanks for this cool plugin!
August 1, 2007
I am having a problem with WP-Weather Manager. When I filled the partner id and license key along with zip code and then save the values and got an error stating:
WordPress database error: [Table 'campmark_wp_2.wp_weatherxml' doesn't exit]
TRUNCATE TABLE wp_weather xml
What does that mean? Your help is much appreciated. Thanks.
August 6, 2007
I have set up this plugin on one site, thanks very much for making it php4 compatible.
But I get the same error as Mitchell on another of my sites. I see that he has fixed the problem.
Any advice?
August 6, 2007
Andy, your wordpress version might not have the required dbDelta function. If you can log into your phpmyadmin and execute this sql, you should be set.
August 6, 2007
thanks again Matt. I got it working by adding the following SQL (excluding line 6).
CREATE TABLE wp_weatherxml(
xml_url varchar( 150 ) NOT NULL DEFAULT '',
xml_data text NOT NULL ,
last_updated datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
KEY xml_url( xml_url )
)
August 7, 2007
hi,
is there a way to display international locations. weather.com accepts city, country.
also is there a way to change the units say to metric.
daniel
August 8, 2007
Daniel,
I've updated this plugin to support metric units. Overwrite the old files with the version above and go to the options page for the plugin. Select metric for the units and save.
I do believe you can put any location code in the options page and have it display appropriately.
Cheers.
August 10, 2007
I'm trying to get this plugin working on a WPMU home page. I get the 500 server error when I try to put the tag in.. even as a widget on a widget theme i get the error..
any ideas?
runing MU 1.2.3 on dreamhost with php 5.2.2
August 10, 2007
I'm able to activate the plugin, but when i click the link to configure i get the following error:
Cannot load wp_weather/wp_weather.php.
what did i miss?
August 20, 2007
hi,
I'm using wordpress-mu-1.2.3-2.2.1 and when I tried your widget I get this error:
Fatal error: Call to a member function on a non-object in /homepages/36/d162900626/htdocs/blogs/wp-content/plugins/wp-weather.php on line 313
And line 313 code is this:
$day = $day_attributes['t'];
can you please look into it.
thx,
DesiTech
August 22, 2007
I haven't used WPMU for any testing. Which version of wp-weather are you using as my line numbers aren't matching yours.
August 27, 2007
I'm using Version: 0.2.1
September 13, 2007
Unfortunately I will have to decativate the plugin because I can't get it working without widget support - a shame.
September 20, 2007
when i use wp-weather (downloaded from your site) the following error appears
Local Weather
Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in /home2/tonykawa/public_html/wp-content/plugins/wp-weather/wp-weather.php on line 177
TIA
September 26, 2007
I've added the widget and selected all the options, but it's just not showing up.
http://www.scwd.us
October 14, 2007
I was able to get this working. I could still see WP-Weather after moving my WordPress installation to a different directory, however, it wasn't actually installed. I removed and re-added it through the WordPress panel and it worked.
October 30, 2007
Is there a way to make the plugin grab a variable, so lets say depending on the category of the site, it displays the weather, e.g.
http://www.domainexample.com/category/new-york/
Show the New York weather.
Regards!
November 20, 2007
I was able to download and add the widget. however when I click on configure, the only option i get is Title: Local Weather. What am I missing?
December 7, 2007
hello:
I was able to install this on my first blog. Now I have added this in the second blog on the sidebar. It is showing up fine, however the sidebar for this theme has background for each set(archive, category, etc..) and this background does not get applied to this plug-in.Which file do i have to alter so i can apply class to this plugin too so that it blends with the rest of the other stuff on the sidebar. unfortunately my blog is internal and am not able to post the link here.
The theme link(Green Bug 1.1):
http://themes.wordpress.net/page/7/?cats0=25&sortby=date&order=DESC&andor=OR&submit=Show
Source code: Weather plugin has:
Local Weather
The other sidebar calendar has:
Calendar.....
Thanks for the help.
January 2, 2008
I've been getting the same "Table does not exist" error as Sharon (see comment dated May 28).
When I enter the SQL query into myPHPadmin as below:
CREATE TABLE flahute_com.wp_weatherxml (xml_url varchar(150) NOT NULL DEFAULT '',
xml_data text NOT NULL
last_updated datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
KEY xml_url (xml_url)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
I get the following error:
MySQL said:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'last_updated datetime NOT NULL DEFAULT '0000-00-00 00:00:00',Any ideas? What am I missing?
January 8, 2008
Hey there....I'm trying to get the widget to jive with the CSS of my WordPress theme, but I nothing I do is changing the text color. Is there a trick to this? I have a theme with a black background and I can't get the text in the widget to be anything other than black.
February 1, 2008
[...] Visit [...]
February 5, 2008
I installed and activated the plugin. However, if I add it to the widget sidebar or edit the sidebar php file, an insane amount of errors appear down the page... how can I fix this?
February 5, 2008
Not sure what errors you're getting so can you put up a link?
February 7, 2008
I have the plugin widget running on my site, but can't seem to get the css right so that it looks like the other widgets in my sidebar. Can you guide me in the right direction. Nothing I do to the css seems to make any difference. Thanks!
March 2, 2008
thank you for all your hard work, people should understand you are doing this for free and not expect the world! in any event, i just want to fix this: "The data from weather.com is cached in the database for one half hour to avoid unnecessary calls to the web service." we live in a severe weather zone and 30 minutes can literally make the difference between life and death! thanks for your contribution!
March 4, 2008
Should you wish to modify the default cache age you will need to edit the plugin file. Line 218 should read:
Edit this interval to specify what portion of an hour to keep the data for.
April 3, 2008
Hi first off thanks allot for your hard work. Works great on allot of my Blogs. On my sites I changed the weather pictures maybe someone is interessted? Found them to be more appealing to my site. http://start.swiss420.ch In that sense how about a theme collection on your site of different Weather Pictures to fitt the different Webstyles? Also language translations would be interessting. Always have to go in and change everything around with each new version. Would it be possible to share the work on your site? No Problem if you dont have time. Allready happy with all the work you put in. Just giving some Feedback from little old Switzerland. Note to everyone with Problems. Try Firefox with Firebug it will help you solve many format etc. related Problems.
April 27, 2008
Good idea for a plugin and widget but why not link to The Weather Network for users that live outside the US?
April 27, 2008
Weather.com can accommodate international cities. Just find your appropriate city code.
April 30, 2008
What code would I need to insert to add this to a static page on my blog?
May 5, 2008
Great plug-in! Just a couple of suggestions:
1. You might want to use .gif files instead of .png for the weather icons. Due to an error in IE 6 (and, I think earlier versions), .png files don't display transparencies. I had to convert the files to .gifs (with photoshop) in order for them to display properly.
2. It would be great to have the ability to display two different cities.
Thanks!
May 5, 2008
Is there any way to place the three day forecasts side by side?
May 5, 2008
Alicia - out of the box this functionality is not supported. You can edit the file to remove the paragraph and line break tags.
May 6, 2008
Was working fine for months, then suddenly, overnight, I'm running into the same error that DesiTech refers to above...
Fatal error: Call to a member function on a non-object in .../wp-content/plugins/wp-weather.php on line 313
So I updated to the most recent version of your plugin but I'm still getting the problem, only now it points to line 366 as the culprit. Was this ever resolved? I don't understand why it would happen overnight like that. I've deactivated all the other plugins, but I'm still getting the error. Please help!
May 6, 2008
Stefan - can you confirm if your host is running php 4? The author of the class i use in php 4 instances has mentioned this error in his documentation but i can not reproduce in my own environment.
May 6, 2008
Same thing here as Stefan, all was fine yesterday and today I get the same error. Nothing has changed on the page.
Fatal error: Call to a member function on a non-object
May 6, 2008
weather.com changed their url parameter format this morning. Version 0.2.7 fixes this. Without this version of the plugin the forecast data will be missing from the weather.com xml feed. Please update to this version and report if it fixes your issue.
May 6, 2008
I updated and still get the error:
Fatal error: Call to a member function on a non-object in /wp-content/plugins/wp-weather/wp-weather.php on line 366
May 6, 2008
yes, currently php 4.3.11, host reports no recent changes on the server side, so still baffled as to why it should work fine for months, then suddenly stop working... could be a weather variable that hasn't occurred for the past several months?
May 6, 2008
woops, sorry -- didn't see that you had responded -- but yes, I'm using version 0.2.7, and its still not working.
May 7, 2008
I'm getting the same error as stefan. Worked monday, stopped tuesday. At first on version 0.2.6, then updated to 0.2.7...same line is calling the error "$days = $day_forecast->children();" on line 366.
May 7, 2008
Do you guys have a valid license key and partner id saved in the settings? I know previously they let you access the xml feed without one, but they clamped down on that Monday and require one now. Without these, you won't get the full xml data which will cause the call to ->children() to fail.
May 7, 2008
Thanks for the suggestion Matt, this was my problem.
I had a ID and key, but forgot how I got them, so signed up fresh and all is good now.
Except I have a stray bullet under the city name that I don't remember seeing before.
May 7, 2008
Same here, thanks Matt, its working now. Great plugin, by the way, works with Wordpress Mu allowing multiple city weather forecast from one install (where each sub-blog localized for a different city), out of the box, no tweaking required. Thanks again
May 19, 2008
Is there way of putting the weather into the body of a single page? I like it on the side pane but it takes up too much room so I wanted to create a weather page so I can have a long range forecast as it would have the space of the whole page.
Also, I tired putting in the short php code mentioned at the top of this page but it removed all the data from my side panel and put it in the bottom of the body of the page.
May 21, 2008
hi ,
i have one issue please help me to sort it out
i have installed wpmu in my server for each place in india i have created one blog ,now i want to display the weather report of each blog (i.e weather report of a place corresponding to that particular blog )
how to do this dynamic display of weather report in wpmu ?
Thanks in advance
May 22, 2008
Jay, I haven't set up an install of wpmu, so I'm not sure what to advise you. If you look at Stefan's post a few above your's his site is powered by wpmu and utilizes wp-weather. Perhaps he has a contact form and you can ping him about it?
May 22, 2008
Dave -- to accomplish this in a page use a plugin to execute PHP within posts/pages. i tested this one: http://wordpress.org/extend/plugins/inline-php/
and placed this code on a page:
June 19, 2008
My server recently upgraded to PHP 5.2.5 and disabled fopen functionality. As such, this plugin no longer works for me. Has anyone rewritten the Get XML Query Results section (starts on line 238) using cURL functons? If so, can you please post the code snippet? Thanks.
July 13, 2008
I am getting this error too.
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in .../blog/wp-content/plugins/wp-weather/wp-weather.php on line 237
PHP version = 5.2.6
Webserver = Apache
July 13, 2008
That error is definitely an issue that more people are going to run into - hosts tightening up their php configuration. I need to add in a method of retrieving the xml via curl but have not had the time yet. Stay posted and I'll try and add that soon. If anyone else wants to submit a patch that checks for fopen and on failure uses curl, feel free to send it my way and I will include it with kudos.
July 23, 2008
[...] wp-weather widget uses Weather.com to show forecast information for a city. [...]
July 31, 2008
I recently developed a WP site locally on my machine running v 2.5 of WP. I just made the site live today using v 2.6 and when the plugin is activated I get this error:
Invalid query: Table 'db251978689.wp_weatherxml' doesn't exist.
Table db251978689 is the name of my hosts database. I uploaded the plugin, activated it, added in all the Weather.com information and added the "" to my sidebar and that's the error I get. I'm not sure if there is something I'm not doing right or what.
Thanks for the help.
August 15, 2008
The plugin has been updated to use the snoopy class from wordpress to fetch the weather xml. This should solve issues with hosts not allowing fopen in PHP.
August 19, 2008
[...] wrote a nice plugin that uses weather.com’s XML web service to display local weather called WP-Weather Manager - it’s very cool and easy, and I have it in the News/Weather section of my links page if you [...]
August 19, 2008
Nice plugin Matt! I wrote about it at teh blog telling my friends about the coolness
Thanks!
August 25, 2008
Is there a way to have this add this to a page instead of template?
Like:
[weather_display]
August 25, 2008
Rich - done. It may take a few minutes for the plugins page to update as I just committed the change to svn.
August 26, 2008
Wow Matt thats great, thanks for the update. I did notice that if you use inlinephp method, it displays where you place the code on the page, the new version [weather_display] pushes it to top of page. I have looked yet at the styles yet.
August 26, 2008
hi. Thanks for plugin
perfect.
Regards
August 26, 2008
Is there a way to have the weekday name shown in the short form rather then long form?
August 29, 2008
I've signed up to weather.com's XML service and have entered myu reg info into wp-weather, but the widget is displaying ,
Currently: ˚
Feels Like: ˚
Hi: ˚, Lo: ˚
rather than the actual info.
All of the reg info is in correctly.
Any suggestion?
August 29, 2008
Ignore me!
I wasn't using a valid city code.
Great plugin!
September 13, 2008
I get this too often and it prevents the posts from loading, so unfortunately I am giving up this plug until I see an update roll out. :parse(): expat: not well-formed (invalid token) [4/4/1]
Fatal error: Call to a member function on a non-object in /home/upfishin/public_html/wp-content/plugins/wp-weather/wp-weather.php on line 392
September 22, 2008
$fp = fopen($forecast_url,"r"); //do not check for success
while (!feof ($fp)) //look for end of file, that may not exist
$xml .= fgets($fp, 4096);
fclose ($fp);
October 8, 2008
[...] WordPress Plugin wp-weather von Matt Brotherson holt Wetterdaten von weather.com per XML in das Blog. Zum Betrieb wird eine [...]
October 31, 2008
[...] WP-Weather - I saved the best for last. This plugin harnesses the true power of weather.com to display a beautiful widget with all the weather information you could ever want. And I mean that. Out of all the plug-ins, this is the one I would use on my blog. [...]
November 6, 2008
Is there a way to make this plugin more dynamic in serving the weather... if I have several blog posts about several different locations, can I create a custom field called "Location" - where in the sidebar will check if the custom field is set, if so... display the weather for that location... I think that would be an awesome addition to this plugin.
December 23, 2008
Great widget, Matt! I added in geolocation to the widget so it will display the weather of visitors to my website, not the city or location I choose. If you would like a copy of the code let me know.
December 31, 2008
[...] wp-weather [...]
January 14, 2009
I am using your widget, installed, signed-up all fine. But it doesn't really show the information my widget looks like this:
*
,
Currently: ˚
Feels Like: ˚
Hi: ˚, Lo: ˚
weather feed courtesy of weather.com - thanks!
While I have inserted th city code: ITXX0067 for Rome in Italy.
Please help?
January 16, 2009
BJJ - I noticed this on my family blog last week some time. It appears that there must have been an incomplete XML response from weather.com that was saved into the database. For a quick stop-gap fix either go into phpMyAdmin and truncate the table wptableprefix_weather_xml or give it a wait of thirty minutes when the plugin should request fresh data from weather.com.
January 27, 2009
hey mate, i´m using your widget, it´s working fine.. thanks for giving us this..
i have a question, my site is in spanish and i could translate a few words like HI, LO, FEELS LIKE.. but is there anyway i can replace the date and eg.MOSTLY CLOUDY? or that part comes from weather.com...? Thanks in advanced..
February 11, 2009
Hi,
I have added wp-weather to my homepage but where do i find the 'location id' or the 'city code' for my city (Gothenburg, Sweden)?
Thank you!
BR
Mathias
February 12, 2009
Mathias - I searched for your city on weather.com and this location id should work: SWXX0007
February 25, 2009
This probably ranks as the most stupid question here, but is there a simple way to download this plugin as a complete package? I went to http://svn.wp-plugins.org/wp-weather/trunk/ but all I find is a list of files and folders, and the only apparent way to get them seems to be to download them individually and then recreate the folder structure again before uploading to my site.
February 26, 2009
Here's the link for the official package via wordpress.org : wp-weather.
The svn is a version control repository for plugins.
Cheers!
March 10, 2009
Compatible with 2.7.1?
Thank you.
March 11, 2009
i run it on my family blog on 2.7.1 just fine.
March 26, 2009
Just downloaded the plugin and installed and then registered at weather.com but did not receive an email with the keys from them. Is there anything I need to do to receive the keys?
thanks
March 28, 2009
Great plugin ! Works perfectly.
I was able to make a modifications to it to meet a need on my site - I have very limited coding knowledge - basic HTML, no php.
Is there a way to add additional fields to the wp-weather manager page? I would like to be able to add text which needs to be updated weekly. Rather than go into the code each time to make the change, I was hoping there would be a way to add a field on the manager page for a date and a status.
Any suggestions on how to do this would be greatly appreciated. My blog is beadsrock.com/blog where you can see your weather widget titled "Training Walks" and the first 2 lines which are the ones I would like to be able to update.
Thank you very much for any help you can provide.
K-
April 10, 2009
Hi
I have installed the plugin, but I can't see the admin page anywhere...how can I access it?
Thanks
April 17, 2009
Hi,
Great Widget, works just fine.
How can i center the text in my sidebar?
thanks,
Jos
April 23, 2009
Where may I see it working? Can visitors select their city weather (ie) by zip code or is it set permanently by admin?
April 28, 2009
Matt,
Is there a way to change the width of the output? I thought I could just update the width field on line 507 which reads:
<input style="width: 250px;" id="weather-title" name=
However, even when I changed 250px to something else...nothing happened. Any ideas?
Thanks in advance.
Harish
April 28, 2009
sorry about last post...found my issue. user error.
April 30, 2009
hi, everything was working fine, then all the sudden I get this error:
WARNING isterxmlexpatnonvalid->parse(): expat: no element found [-1/0/1]
Fatal error: Call to a member function on a non-object in /home/content/sitesite/html/site/wp-content/plugins/wp-weather/wp-weather.php on line 392
May 4, 2009
Having trouble trying to add a second city. Any clues for me?
May 22, 2009
Yes, I too am looking for how to include multiple cities. I haven't found one single solution for any type of weather widget. Could anyone help us with this? Thanks in advance!
May 25, 2009
Unfortunately as you've seen - this isn't an option currently. Should i get some free time soon I'll see what i can do!
June 3, 2009
Matt, I installed this plug in and it worked well till last week. Now I notice that the data is not refreshing unless we click on the "update options" button on the plugin page.
Do you know why this might be happening? Should I try changing the refresh rate to .1 instead of .5 and see?
Let me know how I can fix it.
June 7, 2009
This widget crashes on me every once in a while and I can't figure out why, it takes out all of my other widgets that are beneath it on the sidebar and my footbar - big long exception code. I can fix it immediately by going into the admin settings and just refreshing the settings - then it's fine. Any idea why this happens?
June 9, 2009
I love this plug in, its the most elegant solution for adding weather to a site. I want to add it to my template and want it to be Horizontal instead of vertical, any suggestions for updating the css it make that work?
(If you view my site, im hoping to feature it across the very top of the page and fit it to the same width as my template.)
Later ill change the graphics to match my theme.
June 9, 2009
@skee/Trent: Today's update will fix this issue for you.
@Lincoln: You may have to dig into the code and change the html output. There are a few div's/p's in there that you may want to re-arrange.
June 9, 2009
Now, after reading it may not be as simple as a css update to display horizontal, any suggestions will be appreciated. Looks like paragraph and line break tags are what puts this in line, not sure how i could make it sidways...
June 14, 2009
Just wanted to second what Trent said. Around ever 4/5 loads/refresh my site will crash out and it replaces wp-weather with this:
----
Warning: fsockopen() [function.fsockopen]: unable to connect to xoap.weather.com:80 (Connection timed out) in /home/SITENAME/public_html/wp-includes/class-snoopy.php on line 1142
alert('Could not connect to lookup host.')
-----
Any ideas?
June 15, 2009
I can't tell if that error means your host couldn't look up the DNS entry for xoap.weather.com or the actual connection from your host to xoap.weather.com timed out. I'll see if there is any way to work around this should it be encountered, but I don't believe it is possible as the table for the old forecast data is emptied before the new forecast data is retrieved. Perhaps there is a way.
June 22, 2009
I've installed this plugin on WP 2.7 and WP 2.8 and am not able to change the title of the widget - no matter what I put in the widget title area it always displays "The Weather" - any ideas of how I can get this to say something else?
June 23, 2009
Kevin, I have not seen this issue before. I attempted to duplicate on a test install and am unable to. Do you have any additional information for this? Does it happen to any other widgets?
June 23, 2009
I've tried it on 3 WP installs - one totally fresh - installing plugin right after wordpress. This is the only widget it happens to.
June 24, 2009
There is a bug in your code. When you use $query = "INSERT INTO $table_name VALUES ('$xml_url', '$xml', '$datetime')";
$result = $wpdb->query($query) or die('Invalid query: ' . mysql_error());
to insert the weather data into mysql, you should notice that there may be "'" in the $xml(on example is Xi'an, which is the city I am now at), so you should replace all "'" in $xml with "\'".
June 24, 2009
Hey Matt!
Thanks!! The wp-weather is amazing.
Can i make a question!? I hope so!!
I'm using the wp-weather and I translate a few words. Just Hi, Lo, Feels Like... ok.. so, i wanna know if i can replace the date and the weather , translate monday, tuesday... cloudy...
Thank you man!!
Great job!!
July 1, 2009
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?
Leave a comment