Windguru Plugin

As seen on Windguru.

As seen on Windguru.

There are three WindGuru related plugins available here:

  1. Windguru 1.6 Beta Class Version
  2. A Joomla Plugin
  3. A WordPress Plugin


 United Kingdom - Saunton Sands (GFS 50 km 27.11. 12 UTC, NWW3 50 km 27.11. 12 UTC)
logo Th
12h 15h 18h 21h 06h 09h 12h 15h 18h 21h 06h 09h 12h 15h 18h 21h 06h 09h 12h 15h
Wind speed (knots) 10 11 13 15 17 18 18 16 15 13 11 11 10 8 8 6 5 5 5 4
Wind gusts 14 18 21 25 30 30 29 27 27 24 20 19 15 12 10 7 7 7 6 5
Wave (m) 0.8 0.8 0.9 0.9 1.1 1.2 1.3 1.3 1.3 1.3 1.3 1.3 1.2 1.1 1.1 1 0.8 0.7 0.6 0.6
Wave period (s) 11 11 10 9 9 9 9 11 14 15 15 15 14 14 14 13 12 12 12 12
Wave direction W W W WSW W W WSW WSW WSW W W W W W W W W W W W
Temperature (°C) 10 10 10 10 11 11 12 12 11 10 10 10 12 12 10 9 8 9 12 11
0° isotherm (m) 1.9k 1.7k 1.8k 1.9k 2.3k 2.5k 2.6k 2.8k 2.8k 2.8k 2.7k 2.7k 2.7k 2.7k 2.7k 2.8k 3.1k 3.2k 3.5k 3.6k
Cloud cover (%)
high / mid / low
Rain (mm/3h) -                                      
Humidity (%) 85 92 93 91 93 92 88 90 92 92 93 93 85 87 92 90 85 81 73 80
Pressure (hPa) 1 999 998 998 997 998 999 1000 2 4 8 10 11 12 14 16 18 18 19 18
Windguru rating     1 1 2 2 2 2 1 1 1 1                
 [MapQuest] Lat: 51.1087, Lon: -4.221 Timezone: GMT (UTC+0) sun07:57 - 16:11 [Archive] [Tides]
See a multi-forecast demonstration on my beaches page.

Getting the windguru forecast codes.

The plugin system will only work if you have registered with windguru and have created favourite forecasts in your windguru account.

  1. Register with Windguru: If you are not already registered with Windguru go to
  2. Login to your account.
  3. Go to Settings > Forecasts for your Websites.
  4. You are able to add up to 10 spots – either click on Add Another Spot or select one from those you have previously created.
  5. In the forecast preview you will see the forecast followed by some code. You want the two numbers located inside the php code.
  6. Place these numbers inside the plugin call as explained for each plugin.

I owe a huge thanks to Vaclav Hornik for his support and letting me publish these plugins

45 thoughts on “Windguru Plugin

  1. It’s a very nice and useful plugin, good work ! I develop my new website on Joomla 1.6 and I would like to know if this plugin is compatible with ? Thank you.

    • The windguru plugin was developed on Joomla 1.5 and I haven’t yet looked at it on 1.6. I’m not currently planning further development of this plugin at this time, as I’m busy with other projects, so your best bet is probably to try it and cross your fingers!*
      (* I take no responsibility for it not working though…)

  2. Hi!

    Your plugin is great. I’m using it in WP.
    But there is one issue with with the out put on the page.

    See for your self what happens with the design and there are no pictures of the Windguru plugin:

    I can do any path for the images (wg_images/) and nothing happens.

    Thanks for the help!

    • Hi,

      Glad you like the plugin and sorry you are having problems. I had this problem too when I first installed the plugin into WordPress 3 using the default template but now I’m using our current template I don’t have a problem. If you look at your image path with firebug it shows the images are being looked for at – note the plugin is listed twice. If you compare this to my demo which looks like this /wp-content/plugins/web-ethical-windguru-plugin/windguru/wg_images/dir-ssw.gif. Not sure what is causing it, if I get a chance to look I will let you know but I’m busy with paid work at the moment. I’d like to do a new version soon to address this issue and multiple forecasts in a page but just need to find the time.



  3. I’ve followed all the directions and double checked everything yet when I do the php test I get “ERROR. NO DATA…

    I have added the tables to the mysql db, all of the config file is correct as it’s the same info as my wp-config file, the plugin is installed, I have the windguru plugin in the correct folder…

    The only thing(s) I can think of are 1) I haven’t found a solid answer on port number for the db, just stuck with the default. I read of someone needing to use 3316 with 1and1 as a host but I tried that and it threw more errors at me so I’m guessing that’s not it.

    Do these plugins require remote access to the database for any reason? I’ve read that with shared hosting, 1and1 doesn’t allow ports to be open externally.

    Any other ideas?

    • Sounds to me like you are trying to connect to a database that isn’t on the same server as the code that is running. Most shared hosting won’t allow that because of security and server overloading. If thats not it then its something to do with the setting up of the windguru plugin rather than my wrapper that allows it to be inserted into a wordpress page. Have you selected the correct cache e.g. mysql?

      Get back to me if you need more help.

  4. Thanks for the reply. I contacted my host and confirmed that the default port 3306 should work. As for the database location… it’s all set up through my hosts’ control panel so if it’s on a different server there’s nothing I can do about it. Again, it’s the same database I’ve set up WordPress in, so I don’t see why that would be an issue.

    I have set up the config file with mysql for caching. I wonder if trying a different method would yeild the same results. I took care to grab your version of the windguru plugin rather than the original. I’ve re-uploaded it as well, just to be sure.

    There really isn’t much to configure – it’s all pretty straight forward. I have an account, I have charts in my favourites, I entered the user ID in the windguru config along with setting the caching to mysql and entered the same data I did for the wordpress install.

    I really don’t get why it’s not working or where to start troubleshooting.

    I appreciate you taking the time to answer.

  5. Curious. I switched caching method to file just to test. I still get data connection issues. I don’t think the issue is your plugin or the way caching is configured… If you’re still willing to help troubleshoot, perhaps we could carry this on via email? Feel free to email me at the address I’ve listed in the field above or I can email you if you let me know where.

    I tried contacting the dev of the windguru plugin but he hasn’t responded and it’s been a few days. I just want to launch the new site! :)


  6. I’ve setup the plugin in Joomla. The test works, but on the site it says “ERROR: NO DATA…”. I think it’s “SOME_CODE” that’s wrong. I setup three locations in my favorites, but I can’t find the random number. Am I overlooking something?


    • In your favourites you should be able to see a code that relates to that favourite. Replace SOME_CODE with that number.

      • I’m getting the same error in wordpress. Am I right in thinking that the “some code” is the 10 character alphanumeric bit in the php code given on windguru?

        • Hi,

          Yes, you are right it is. Basically you need to extract the two numbers from the windguru code and insert them into my shortcode. I’ll do some screenshots soon to explain this better as its a common sticking point.

          Sorry for slow response – holidays!!

    • You have 6px padding affecting every image on required.css line 6. You need to stop this affecting images inside the forecast using something like .wgfcst img { padding:0; }

      Good Luck

  7. Hi there!
    Nice Plugin!! one of the best!

    I have an error that drop me when I install the plugin. I´m usuing the wordpress plugin and I get this msg:

    PHP Error Message

    Notice: has_cap was called with an argument that is obsolete since version 2.0! The use of user level is obsolete plugins and themes. Use the profiles and skills in place. in / home/a6797486/public_html/wp-includes/functions.php on line 3466

    Some idea about this?


  8. Hi Chris,

    What’s the chance of getting the Joomla plugin updated to work with Joomla 1.6 / 1.7?

    I run a sailing website in Miami, and this plugin would be extremely useful to us.


    • That’s a great idea and as soon as I find the time I’ll get on to it. Sadly WordPress is demanding more of my time at the moment but I’ll find a moment.



  9. Notice: Undefined offset: 0 in /home2/ufolinac/public_html/ on line 227

    when im trying to test it i get that error.. what am i doing wronge ? can someone help me install it over skype/msn maybe ?

    • i’ve just noticed i didn’t do :
      you use ‘mysql’ for the cache, use ‘mysql_tables.sql’ to create the necessary
      tables in your database

      what doest that mean excatly ? i have to create a new table named mysql_tables.sql or ? sorry, i’m kind of new to all this..

  10. hi

    is it possible to put more then one forecast in 1 article ?
    because i tried to put this in an article:

    {windguru 208244:18f14fb2a4}
    {windguru 189:de30046c41}
    {windguru 59503:a44b5c983f}

    and it shows only the first one..

    thanks for help

  11. Hi

    I would like to add windguru to my website but it seem this joomla plugin does not work in joomla 2.5 is there away around this.

    Many Thanx

    • Not as yet – I need to find time to update the plugin having focused on WordPress for sometime now. Sorry.

  12. Hi Chris

    Wondered if you had a phone number I can call you on. Couple of things firstly about the WordPress plugin for Windguru – we’d like to skin it with a different look and feel for our site Vaclav at Windguru and he doesn’t mind us doing this providing we use the WindGuru logo. Happy to pay you to help us with this.

    Also I have some other web projects that I need PHP skills for that you maybe interested in? My other business is

    Look forward to hearing from you.


    • Hi Richard,

      Sorry for the delay in responding. I’m not currently available for any web work as I have a full time job that is taking all my time.

      As for re-skinning the WordPress Windguru plugin – if Vaclav is happy for you to do it then go for it – sorry I can’t help.



  13. Hi Chris,

    are you still planning to do a version for Joomla 2.5?

    It would be much appreciated! :)


    • Hi Hannes,

      I’m torn. I haven’t done any joomla development since 1.6 was launch as I had a couple of nasty problems with Joomla sites and moved over to WordPress which hasn’t given me any of the issues and is much easy to update. I also find it more flexible.

      But to answer your question. I just tried to install Joomla 2.5 onto my laptop so I could take a look at it for you to see how much work it would be but it failed on step 6. However, Joomla 3 has installed OK so I might try and find some time to update it for 3.

      Does this help? I’ll let you know if I get anywhere.


  14. Hi I’m using wordpress 3.5 to build a club website. I want to display on a page a spot weather forecast. Windgurue gives me the following code


    I then convert to

    [wewgpi station="100" id="25d89d782d"]

    and get “Forbidden, You do not have permission to access this document”

    any ideas?

    • Interesting… I’m on holiday at the moment so cannot check things easily. Have you checked against the instructions on my website? I will have a look later this weekend and get back to you.

  15. Hello,
    I have a little problem, I can’t import the sql file in my database…
    “#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘TYPE=MyISAM’ at line 7 ”
    I use mysql 5.5.28a-MariaDB.
    Thanks for your help

    • This is actually a windguru issue and not one related to my plugin but to solve it? Remove the TYPE=… from the end of your mysql import script so you can create the tables. It’s just your DB is not that type.


  16. Hello!

    I’m french. For one homework’s school, create a site in Joomla. I integrate your plug-in but what is the number that must be put in place of 12345, I can not find it in my favorite spots.

    I tried with the first number which can be classified but it does not work.

    I get the message “ERROR. NO DATA …”

    I thank you for your answer.



  17. hi

    works fine with joomla 3
    you need to edit the xml file replacing install for extension zipit and install as normal
    and mod the windguru.php removing the ds in the path

  18. Hi CDB,

    I would like to use your plugin instead the code given by windguru I’m using now, which loads an old version of jQuery.

    Everything works perfect when when I put “[wewgpi station="1911" id="8632c1b957"]” in a page or a post, but doesn’t work when I try to put it as a widget. Any suggestion?

    Thanks in advance

    • CCS for ?

      There should be some CSS in the Windguru Plugin Folder (not my wrapper) but you are better to override it with your own.

      I found it difficult to change/control.

  19. Would like to use your wordpress plugin wanted to know if u are also able to set the parameters as you can with the straight php code, i.e. length of time displayed and how many columns.

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>