WordPress plugin WP Google Weather Widget released

by Hendrik Will. 130 Comments

Frontend style

This WordPress plugin displays a weather widget using the unofficial Google weather API. It also supports short codes to include it in posts/pages.

  • Version: 0.5
  • Last Updated: 2010-8-12
  • Compatible up to: 3.0.1

Features

  • show today’s weather
  • show weather forecast for next 3 days
  • specifiy output language
  • choose between Celsius or Fahrenheit
  • comes with predefined CSS style
  • valid XHTML output

Example

You can see a working example down right in my sidebar.

Requirements

You need at least WordPress version 2.8 or higher and a theme which allows widgets.

Download

For more information have a look at the plugin page or directly go to plugin page at wordpress.org.

130 Responses to WordPress plugin WP Google Weather Widget released

  1. Dietmar says:

    Bug-Report:

    Description: Include not found in wp-google-weather.php line 11

    /*
    * require_once(‘wp-includes/formatting.php’);
    */

    Solution:

    require_once(ABSPATH . WPINC . ‘/formatting.php’);

  2. Mike says:

    Hi Hendrik,

    Everything looks great, except whatever measure I choose for the temperature, it always shows Fahrenheit for the 3-day forecast (today’s temperature is as desired). I’m using Arclite theme, don’t think I’m doing anything wrong…!
    Thanks,
    Mike

    Update: I fixed the bug. Please, grab version 0.2 at http://wordpress.org/extend/plugins/wp-google-weather/ or use the auto upgrade.

  3. kilroy says:

    How can I add this widget directly into blog post? I need to create a list of weather for multiple areas all in one post.

    Thank you for taking the time to create.

    • Hendrik Will says:

      Right now it just works as a widget. I might add this feature to one of the next versions.

  4. Danny says:

    Hi There,

    when installing this widget/plugin (thanks by the way!) it seems to be working, however the layout is nothing like your screen shot? Is it something on my side?

    Please advise.

    Danny

  5. Colin says:

    Hi great plugin. It works well on my site BUT is there a list of the cities that can be used anywhere? The reason I ask this is that the forecast in the plug-in is very different to that on the Spanish Met Office website.

    • Hendrik Will says:

      I don’t think there is any list of available cities. 5 day forecast is not possibil with google weather api so far.

  6. Ron Agatep says:

    Hi. I installed your weather widget. Drag the widget to the right side. Did not cahnge anaything like title and city. But it does not work. Only showing is the title. What am I doing wrong. Please help. Thanks.

    • Hendrik Will says:

      Right now it only supports CURL to fetch the xml data. Probably CURL is not installed on your webserver?

  7. Joe says:

    I am having the same problem as “Danny” was with this widget: There is no layout formatting when displayed on my page.
    You advised to: “Please, check if my additional css gets loaded in your header.” What does that mean? How can I fix this?

    Thanks for you help in advance! :)

    -Joe

    • Hendrik Will says:

      Thank for the error report. I just updated the plugin and added a extra div wrapper to fix the layout problems with some templates.
      You can get a new version a the WordPress plugin page or just use the auto updater of WordPress.

  8. James says:

    Hi There – great idea for a widget :-)

    Unfortunately I’m getting a rather strange error which happened with 0.2 and is still happening with 0.3. I’ve tried this with my custom theme and WP default theme and the same thing happens.

    There’s a PHP error which means the widget doesn’t display, and it screws with the layout of the page.

    Here’s the error I get:

    Fatal error: Call to undefined function: simplexml_load_string() in /site/wp-content/plugins/wp-google-weather/wp-google-weather.php on line 164

    Any help in fixing this would be greatly appreciated!

    Keep up the good work!

    • Hendrik Will says:

      This error means that you don’t have installed the simplexml php extension.

      Create a phpinfo file and have a look for the string ‘simplexml’. If it won’t appear somewhere on page page you should contact your webhost and ask for simplexml php extension.

  9. will says:

    hi..is it possible to have maybe the country weather ie i need weather map of all of United kingdom..is this possible?

  10. Ron Agatep says:

    Hi Hendrik,

    I cannot get your widget to work on my website. I followed the instruction and I get only the title when I activate and enable the widget to sidebar 1. I have WP v2.8.3. Any ideas?

    Thank you in advance for your assitance.

    • Hendrik Will says:

      @ron please be sure to use php5 and the simplexml php module

      @thomas thanks, it’s already planned since v0.1 but I didn’t have time to implement it yet ;-) I’m using wp super cache a lot for general wp caching.

  11. idntt says:

    Plugin works fine on WP v 2.8.3. Thanks for sharing. Only problem I have is that weather widget is aligned to the left on the sidebar, I will like to have it centered. Any tips?

  12. Monchu says:

    Hi Hendrick,
    First of all, congratulation for this nice and useful widget.
    I would have 2 suggestions :
    - The french description of the weather conditions takes sometimes 2 lines (for instance : “Couverture nuageuse partielle”) and the second line mixes with the temperature below : would it be possible to adjust the height first blue field to the number of lines ?
    - We are a sailors group, and we are very much interested in wind speed and direction (as shoxn in Google Mete) ?
    THanks again and regards,
    Emmanuel (F-Lyon)

    • Aymeric says:

      Hi Emmanuel,

      You can change the height of by editing wp-google-weather.css:

      Line 22 change to “height: 80px”
      Line 32 change to “height: 44px”

      And you can also reduce the font size at line 31

      Hope this helps
      Aymeric

  13. Frank says:

    Hi,

    Hello aus Kanada!

    Danke for the great widget!

    One minor request.. can you add support for click on the widget and go to the full weather report?

    Thanks

    Frank

  14. Kerry Webster says:

    Is there a way to make this work without using as a widget. I would like to place the code directly in a theme without having to require the user to activate the widget.

    Thanks. Awesome plugin.

  15. Mike says:

    By far the best visual looking wordpress weather plugin.

    Suggestion: Make it so the output auto re-sizes based on the sidebar width, ie 150, 300 and so on.

  16. alan telford says:

    Hi Hendrick,

    great widget, two comments however
    1) The image for today’s weather (next to today’s temperature) seems to giving an invalid image reference (just http://www.google.com)
    2) it would be nicer if it was centered in the column

    thanks again

    Alan
    (wp 2.8.4 ) using the latest version of your widget (0.3)

  17. lisa says:

    this looks to be a great plugin, but i’m having problems activating it. when i do, i get this error:

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Class ‘WP_Widget’ not found in D:\Inetpub\wwwroot\resweb\wp-content\plugins\wp-google-weather\wp-google-weather.php on line 41

    any help is much appreciated.

  18. Hendrik Will says:

    @idntt, Webbie: edit your css

    @Monchu, Frank:thanks, I will add this to my to-do list

    @Kerry Webster, Studio5150: this is planned for an upcoming release

    @lisa: you need at least WP v2.8

  19. Cameron says:

    Hi, I have tried to use the plugin on a couple of sites.
    I seems to have 2 issues.

    1st. The weather description for today is not displaying and the weather image for today is not showing.

    2nd , on another 2 sites, todays weather image displays below todays temp rather than beside it.

    The 2nd problem is minor, but we need to get the 1st issue resolved.

    WordPress version is 2.8.4
    other wise great.

  20. Lou says:

    Hi Hendrik :)

    Big thanks for the plugin!

    Question:
    The top blue bar doesn’t display the white text
    and beside todays’ temperature, there’s an icon missing.

    Otherwise all else displays and works fine.

    Would you be able to suggest what I need to adjust, please?

    Thank you…Lou

  21. Wayne says:

    I’m getting this error:

    Fatal error: Call to undefined function: simplexml_load_string() in /home/ilderton/public_html/fireblog/wp-content/plugins/wp-google-weather/wp-google-weather.php on line 164

    Any thoughts??

  22. MicK says:

    Hi, I am to having the icon and top current condition go missing. They are there when first install the last something like 15-20 minutes before vanishing, any ideas?

  23. Vicky says:

    This widget is lovely. Is there a function I can call so that I can use it in a template instead of a widget?

  24. Ray says:

    Hi Hendrik,

    Just installed your WordPress Weather Plugin and it works great.

    Many thanks for your great work!

    Regards,

    Ray

  25. Henri says:

    Hello, I just found your weather thing and it looks great.
    But , and I am not a programmaer, can I only put the centigrade option instead of both?
    And how can I do that.
    Thank you in advance

  26. Carolinestar says:

    Hi there, love this plugin. Works very well. I have one question: How do I get the Icon to appear for Today’s Weather beside the Temperature. All other 3 icons appear no problem for the forecast. Does anyone know how to fix this?
    Many thanks
    Carolinestar

  27. Franz Frühwirth says:

    @Ron Agatep
    If your Provider doesn’t support curl lib (fatal error using function curl_init …) you can use this Code.

    $output = file_get_contents($xmlUrl);

    instead of:

    // create a new cURL resource
    $ch = curl_init();
    // set URL and other appropriate options
    curl_setopt($ch, CURLOPT_URL, $xmlUrl);
    curl_getinfo($ch);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    // grab URL and pass it to the browser
    $output = curl_exec($ch);

    // close cURL resource, and free up system resources
    curl_close($ch);

    not so sophisticated but it works ;)
    @Hendrik gratz 4 your this fine PlugIn. It works very fine with WP 2.8.6 (with the little change)

  28. Brian says:

    Fatal error: Call to undefined function: simplexml_load_string() in /home/budgetbounce/budgetbouncehouse.com/wp-content/plugins/wp-google-weather/wp-google-weather.php on line 164

    Any solutions/ideas??

  29. Maria says:

    I’d like something like this that I can add to specific pages on my blog with a different city on each page. I know I can use Exec-PHP to get the code to work on the page; I just need the customizable code to insert. Please add this in a future version. Your format is exactly what I’m looking for: clean and compact.

  30. Alex says:

    hi – thanks for the plugin, it looks great

    What would i need to alter in the CSS to move the whole display to centre aligned? i’ve played around with the settings but cannot get the entire plugin to change from left aligned to centre aligned

  31. Evie Stewart says:

    LOVE this plugin, it’s beautiful, so so perfect for my blog, but I was told to deactivate it from my sidebar cause it was slowing the load.

    SO I’d LOVE to put it on my BEST OF L.A. page content (so it only loads when that page is seen, not on the home/index sidebar) —

    I know Kerry and some others have asked for what I need — but until you get a chance to make that new version, can you give us a workaround? Code to pop into the content? Anything? I can do it (and have techie pals) so I won’t bug you for a bunch of support… pretty-please?

    Thanks, if it were up you’d see how perfectly it goes with my site — yay (IF I can use it in a page…)

    @EvieStewart

  32. Ray says:

    Hi Hendrik,

    I have the same problem as a number of other users of your great plugin.

    Sometimes the ‘current’ condition wording and image display but most of the time they do not.

    The forecast for the other 3 days works perfectly.

    Would you please advise how this can be fixed as it makes the plugin virtually unusable for me?

    Many thanks in advance.

    Regards,

    Ray

  33. Ovidiu says:

    Wonderful plugin! I was looking for something like this, based on that simple API from Google, for months now.

    Thank you very much!

  34. Marty says:

    I’d also really like to see template tags. I rarely use widgets, as I develop my own custom themes from scratch. Best looking weather plug though.

  35. Andy T says:

    Hendrick

    Great plugin!! Nice and clean.

    It would be nice if a guest could put in their own location and get the weather for their area.

    The reason I would like this is that I’m doing a site on lawn care and for this a lot of the advice revolves around the weather.

    Any thoughts?

    Regards, Andy T

  36. tia says:

    Without thinking, I upgraded to latest wp 2.9.2 the plugin is no longer working in 2,9.2 Any plans to update? Love the plugin and would love to see it working on latest wp.
    Many Thanks

  37. Seb says:

    Hello Hendrick,

    Thanks for making this great plugin available.

    I’ve found that when I add the short code for it to a page or post, the weather box always appears at the top of the content area – no matter where I place it in the body.

    It’s not a css issue. The html is always generated directly after the post’s title. Any clues?

    Thanks

    • jarem says:

      Maybe in this case (shortcode) is problem in buildWidget function (using echo instead return)

  38. David says:

    Hi, great plugin – thank you. We’d like to change the layout so that the next 3 days weather (which is currently under ‘today’s weather’) displays beside. Total width of 300 px. If you could help or have any advice would be much appreciated.

    Our site is not yet published but if you need to look I can send you a login/password. Please email me.

    Thanks for any help!

    Kind regards,

    David

  39. Mike says:

    Could you make this a 5 day forcast widget…that would be perfect. And may be a way to choose static, 3-day, or 5-day??? Thanks.

  40. Andrew says:

    Hi there,

    Im kind of disapointed the Sudbury Ontario Canada is not part of the possible options for the weather gadget. Any ideas on how to add it?

  41. Nico says:

    Hi, great plugin, thanks!

    I’ve found that, to make the shortcode to work, I have had to capture the widget class output and return it in the shortcode function, as follows:


    function hw_wp_gw_shortcode($atts, $content = null) {
    extract(shortcode_atts(array(
    "city" => 'Braunschweig, Germany',
    "temperature" => 'c',
    "language" => 'en',
    "forecast" => 'true'
    ), $atts)
    );
    $hw_wpgw = new hw_wpgw();

    ob_start();
    $hw_wpgw->buildWidget($city, $temperature, $language, $forecast);
    $output = ob_get_contents();
    ob_end_clean();

    return $output;
    }

  42. Adley says:

    Hi, great plugin but I also get the weather box always appearing at the top of the content area, even if it is the last element in the post.

    Thanks.

  43. Ronny says:

    Hi, I love this plugin. I works fine while searching common Cities, but i will travel to “Beersheba, Israel” and the plugin doesn’t show the current day correct. The forecast havn’t this problem… Did you maybe have an idea?

    Thx and kind regards
    Ronny

  44. Jamie says:

    Hi,

    This widget worked great for me until I upgraded WordPress to 2.9.2. I look forward to using it again when you make it compatible with the new WordPress update. Thanks!

  45. Marcus says:

    It’s indeed a great plugin, shame it does not support portuguese language, neither pt nor br codes seem to work, how could I possibly get this amazing tool to work in Portuguese? I’m more than able to help translate the plugin to run on portuguese language. Any help on how I can get access to the archives that have the core words which must be translated? Thanks in advance!

  46. Rocky says:

    Hi Hendrik, Thank you very much for your great contributions on this useful plugin. I hope you will make an update for this small tool in short future.
    And I bet it will be even popular than now.
    Features I wish to have:
    ×Color shows Half transparent. not the solid color now, will be more confort, like those colors used in iphone ect.
    *the dimension will be adjustable to fit for different side bar width(Give a scope to adjust or give a min. and max to follow.)(My side bar width is 250px and there’s big blank left, I don’t know how to adjust in the codes.)

    That’s what I really want to have now for this weather tool.

    Still grateful for your good work.

    Wish you more successful and made out more plugin tools.

    Big hug!
    Rocky W

  47. sharyn says:

    thank you Hedrik! just successfully added my first wp plugin. i LOVE wp.google.weather. however, it disrupts the look of my home page unless i place it as the very last (lowest) sidebar item. i would like it to be my second sidebar item (after my seach box but before my ‘categories’) you know, to add some color near the top of my homepage. but, when i place it there, my remaining sidebar items (pages, links, archives) get shoved way, way down to the bottom of the page. it is as though the weather box is using many, many inches of white space below it. otherwise, it works perfectly. is there a simple fix? i’m a total newbie to wp. i use wp 2.92 and downloaded your plugin v 0.4.

  48. Avner Kaplan says:

    Hi
    your plugin is great and working well as long as it en but when i change the Lang to he (Hebrew) i see gibberish.
    for some reason the char set is not utf-8 but getting some other char set
    can you help me with it?
    best regards
    Avner

  49. stan says:

    awesome plugin thank you thank you! i needed one without any sort of link and this worked flawlessly on wordpress 2.9.2

    thanks again! (you should have a donate button)

  50. Christian says:

    The plugin works really great untill today, i looked at my blog and its all over this error from the widget:

    Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 9: parser error : AttValue: ” or ‘ expected in /homepages/11/d156005184/htdocs/blog/wp-content/plugins/wp-google-weather/wp-google-weather.php on line 154

    Any idea how to solve this?

  51. Randall Hardy says:

    Hi,

    Very useful plug in, much appreciated.

    I keep getting asked why the dates are ‘wrong’ on the 3 day forecast :{

    Is there any way I could add the text “Min/Max Temps” below the graphics?

    Thanks.

  52. Simon says:

    Hendrik, a very quick bug fix if you can… I am missing the icon for todays weather on this widget, I have logged onto the wp fourms to no avail, all the forecast icons are there, just not todays – any ideas?

    http://www.st-bo.co.uk/?page_id=52

    Bottom of the sidebar

    Many thanks

    Simon

  53. Rillmeister says:

    Hi, great plugin!

    But what does the numbers on the 3-day forecast stands for?

    25/15 I know that the first stands for celsius degrees, but the other one(15)?

    Regards,

  54. Craig says:

    Hi Hendrik,

    Wondering if you or anyone else could help me.

    I love your weather widget… i’m just trying to add a little code to make it centre on my sidebar instead of justifying left.

    Do you have any ideas on how i can do this?

  55. Igby says:

    hello hendrik,

    i’m sure i would love your plug-in, if there weren’t the fatal error :(

    Fatal error: Call to undefined function: simplexml_load_string() in /www/…/wp-content/plugins/wp-google-weather/wp-google-weather.php on line 154

    can you help me?

    liebe grüße aus süddeutschland :) )

  56. flo says:

    hi, great plugin. i would love to use my own icons. is that possible? if yes, how? :) thanks for your help

  57. Steven says:

    Hi there,

    Is there php short code to insert this wp-google-weather plugin into my wordpress template (so not a widget or post or page. In my case I want to insert it into the header new to the logo.

    I look forward to your reply

  58. beth says:

    I am getting error on my front page:
    Fatal error: Call to undefined function: simplexml_load_string() in /disk1/usr16/nuke/www/3percentofaton/wp-content/plugins/wp-google-weather/wp-google-weather.php on line 154

    Can you help”
    Thanks
    Beth

  59. Mani says:

    Hello Hendrik,

    This wp plugin is just great, how ever, just like a few others that have comented, is there a way I can have the plugin appear to be on the right side of my side bar instead of the defauly left?

    I am using it for a site which is RTL, and it just looks out of line when its the only thing thats on the left side.

    Please let me know.

    Thanks a lot

    Keep up the good work

    Mani

  60. Eivind says:

    Hi there.
    I’m using your weather plugin. It did work for a long time, but now it shows an enormously big temperature (like 43 c, when it’s only 26) on my website.
    Click on my website (in Norwegian, though) and have a look. Kinda crazy, but I like your plugin and don’t wanna remove it, you see.
    Take care, man!

    • Hendrik Will says:

      Eivind, thanks for your feedback. For me it still works with different wordpress versions. Should be a problem with the feed data Still got the same problem?

  61. ronni says:

    I get the following error message on the page i’m using wordpress 3.0.1

    Fatal error: Call to undefined function: simplexml_load_string() in /WWWROOT/61566/htdocs/wp-content/plugins/wp-google-weather/wp-google-weather.php on line 154

  62. Caroig says:

    Hi, thanks for your plugin. The current code supposes the XML from Google is encoded as ISO 8859-1. However, this is not always so, you get the appropriate ISO 8859-X depending on the ‘hl’ parameter actually. The easiest way to fix this is to add ‘&oe=utf8′ to the request URL and then remove the utf_encode() function. The new lines should be as follows:

    LINE 148: $xmlUrl = ‘http://www.google.com/ig/api?weather='.$city.'&oe=utf-8&hl='.$lang;

    LINE 154: $xmlData = simplexml_load_string($output);

  63. Maja says:

    thank you for a beautiful widget :)
    it’s working fine, i changed the css to fit my site colors, and now i would like to change the icons too. is that possible? i’m not a programmer, just a designer :)

    Thanks!

  64. Hendrik Will says:

    Thanks a lot for all your suggestions and bug reporting. I will update this plugin later today.

  65. Chris Lamke says:

    Your plug-in works well. Thanks for building it.

    I’m using it as part of an information dashboard in an experimental PIM site I’m building.

  66. Bastian says:

    Hej

    Very cool Widget, thanks! I would love to use my own icons – where can i supply the url to the icons?

    Greetings, Bastian

  67. WayneH says:

    Is there a way to make the widget wider so it will match the widths of my other widgets?

    If I can’t strech the widget, perhaps I could put it in a box that has the same color as the color used in the headers, so it would appear larger?

  68. Chris Stewart says:

    I’ve installed your weather widget version .5 and it was working great but now it does not show current weather icon or top blue bar text for my city which is Victoria, Canada. As noted it was fine a few days ago but now does not show. Advice? Thanks!

    Chris

    • Jeremy Pack says:

      Hey Chris I’m having the same problem. Have you had any luck fixing it?

      It is strange because if I leave it with the default input then everything displays correctly. However, when I try and display some where in France (Morzine) it cuts out the current image and blue bar text but gets all the other data correct.

      Ideas would be great.

  69. kboom says:

    Nice plugin,
    Is there any possibility to use this plugin in any part of the theme as a code… like in header.php
    Regards,

  70. Julie says:

    Thank you, beautiful plugin!

    My third day breaks onto the next line (appearing below the first two). My sidebar is definitely wide enough, any idea on how I can fix this, I’d love to use it.

  71. Matthew says:

    The only complaint that I have about this plugin is that it would be nice if the displayed weather could act as a link to the full report on the Google site. Other than that it works great!

  72. Nadya says:

    Hi, nice widget, thanks.
    I am trying to make it work for Apia (Samoa) and it does not. Very sad.

  73. theMezz says:

    I am usng the Coraline theme with one sidebar – - when I drag the WP Weather Widget to the sidebarm, it does work – but everything else in the sidebar becomes invisable. Any ideas?
    Thanks

  74. Joni says:

    Love your plugin. It used to work fine, but now it doesn’t load the variable info I entered into the widget, just the blank template. I upgraded to latest version, but it still doesn’t work on any browser. Any ideas why?

  75. Hentry says:

    I Love your plug in. I tried of resizing the widget to fit 320 X 260 pixel sidebar. I can re-size all, while doing that I am facing the problem in re-sizing the picture for today and 3 days weather( like rain picture, sunny picture). I some how tried increasing the width, by doing that all image size increases (today and 3 days) How can i make it separate css style for today and 3 days picture , so that it doesn’t affect each other.

  76. Bjarne Christensen says:

    Hi Hendrik! Cool plugin… BUt I have some difficulties getting it to work. It works perfectly in my local environment, but when I go online your plugin doesn’t work It seems like it doesn’t get any data.

    Therefor I wrote the hosting company, which informed me that they close certain outgoing IPs and connections. Could you please specify which IP or connection your plugin needs to work?

    Thanks man!

  77. name says:

    hi i have a problem with Serbian Latin. I put in language code sr but it shows the weather in Serbian Cyrillic.what language code do i have to put to show me the weather in Serbian Latin??

  78. henk says:

    I don’t see today’s ‘condition’ (empty blue bar) and today’s picture right-next to the number is an empty image.

    Has something changed with:

  79. Mike says:

    Hello Hendrik, first thanks for this great plugin.
    I’ve edited it and added a combobox to choose between cities and it works perfectly but it refreshes the whole site. Is it possible to make it with ajax or some library as jquery, to refresh only the widget?
    I tried but no success at all, all that I got were error of undefined class and functions. :/
    If it could be done that would be perfect.

  80. Daniel says:

    Hi,

    An absolutely brilliant widget! Thankyou

    I am having the same problem as a few others here.. The icon sometimes shows but most of the time is missing.

    How can I stop this from occurring?

    Thanks

  81. Cécile says:

    Hello,

    Thanks for this widget !

    I would like to use my own icons, and I understand what to do from one of your answers here above.
    But what I don’t know is the full list of pictures I should place in weather file, with the proper names, so well have to wait for the weather to change so as to try and get them all, and I won’t get a snwoy one for some times (thanks to god !)..

    Well, if you can give the full list of icons needed, taht would be just great !

    Thanks and happy easter !

  82. tanc says:

    Hey mate,

    i’m looking at the instructions and to a lay person (or idiot such as myself)they’re hard to follow.

    I download the zip file and extracted but then how do I:

    upload the files to /wp-content/plugins/wp-google-weather/

    thanks.

  83. bonidono says:

    Greetings! Thanks for your work on the weather plugin. I also have the same problem as others regarding the missing current weather image. If I use the shortcode in a post everything is good. How can this be corrected? Thanks!

  84. Patrick says:

    Hi,

    I had to make some changes to your code, it seems that Google may have changed there xml to include the full URL of the weather images. You can see this if you look at your own weather on this site, the Google images are missing.

    In the php file wp-google-weather.php:

    you need to strip out the http://www.google.com in 4 places, for example:

    becomes

    The images will now appear.

    Hope this helps.

    Patrick.

  85. Scott says:

    I love your plugin!

    I found this fix when my weather icons stopped showing and the fix works fine, but could tell me where I could change teh background behind the images? I need the background behind the weather to be black…

    1. Login to admin
    2. Plugins > Editor > WP Google Weather > wp-google-weather.php
    3. Change all (4) instance of this…

    <img src="http://www.google.com'.$conditions

    to THIS…

    <img src="'.$conditions

    Basically, you're just removing the hard coded call to Google.com from the IMG source URL's. Apparently that is no longer needed.

    Any help would be appreciated.

  86. Scott says:

    For whatever reason the widget isn’t loading the icons for sunny, cloudy etc. I did a little checking and it’s looking for the icons at http://www.google.comhttp://g0.gstatic.com/images/icons/onebox/weather_scatteredthunderstorms-40.gif
    when it should be actually going to that same site without the google part in front. So I don’t know when or how this changed but it’s been like this for a week or 2 now and it’d be great if it could be fixed.

    Thanks

  87. Pro Zone says:

    Is it possible to show automated weather data with geotargeting (visitor nearest weather station)?

  88. Selo says:

    Nice plugin ! Can you point out how can i increase the size of the widget because for me is to small :) some requests : can you add wind speed and humidity display like this http://selo.ro/weather.png and make an menu to set the size of the widget . Thank you !

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>