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

Demonstration

 United Kingdom - Saunton Sands (GFS 50 km 21.10. 18 UTC, NWW3 50 km 21.10. 18 UTC)
logo Tu
21.
Tu
21.
We
22.
We
22.
We
22.
We
22.
We
22.
We
22.
Th
23.
Th
23.
Th
23.
Th
23.
Th
23.
Th
23.
Fr
24.
Fr
24.
Fr
24.
Fr
24.
Fr
24.
Fr
24.
19h 22h 07h 10h 13h 16h 19h 22h 07h 10h 13h 16h 19h 22h 07h 10h 13h 16h 19h 22h
Wind speed (knots) 20 16 12 12 13 14 12 12 12 13 14 14 12 11 9 6 7 8 10 11
Wind gusts 30 25 19 18 17 19 19 19 20 21 22 22 22 20 17 12 11 12 16 17
Wind direction NW NW WNW W W WSW WSW WSW SW SW SW SW SW SW SW WSW WNW WNW WNW W
Wave (m) 3.4 2.9 1.7 1.6 1.5 1.5 1.5 1.6 1.5 1.5 1.5 1.5 1.5 1.4 1.3 1.2 1 1 1 1
Wave period (s) 9 9 7 14 18 15 13 13 12 12 12 11 11 7 10 10 10 11 11 10
Wave direction - - - - - - - - - - - - - - - - - - - -
Temperature (°C) 10 10 11 12 13 13 12 12 13 14 15 15 15 14 14 14 14 13 12 11
0° isotherm (m) 1.3k 1.3k 3.2k 3.3k 3.2k 3.5k 3.6k 3.6k 3.3k 3.3k 3.2k 3.1k 3k 2.9k 2.7k 2.6k 2.7k 2.5k 2.5k 2.3k
Cloud cover (%)
high / mid / low
-
-
-
 
 
-
47
 
19
53
 
5
69
36
14
72
33
38
77
17
45
51
 
60
 
 
68
 
 
72
 
 
84
 
 
79
 
 
77
 
 
77
31
45
78
49
7
97
53
22
96
73
69
68
42
40
70
 
 
 
Rain (mm/3h) -                     0.5 0.3   0.5 1.1 1.6 0.5    
Humidity (%) 70 69 77 75 76 76 84 84 92 91 89 90 98 97 97 95 94 87 84 78
Pressure (hPa) 21 25 27 28 27 25 24 24 20 19 18 17 16 16 13 13 13 12 13 15
Windguru rating 3 2 1 1 1 1 1 1 1 1 1 1 1 1            
 [MapQuest] Lat: 51.1087, Lon: -4.221 Timezone: BST (UTC+1) sun07:56 - 18:05 [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 https://www.windguru.cz/int/novy.php
  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

44 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: http://www.maritimo-surf.com/weather-forcast

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

    Thanks for the help!
    Jure

    • 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 http://www.maritimo-surf.com/wp-content/plugins/web-ethical-windguru-plugin/windguru/wp-content/plugins/web-ethical-windguru-plugin/windguru/wg_images/dir-nnw.gif – 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.

      Regards

      Chris

  3. I’ve followed all the directions and double checked everything yet when I do the php test I get “ERROR. NO DATA…
    YOU SHOULD SEE FORECAST FOR TARIFA SPAIN HERE:
    WINDGURU FORECAST CACHE TEST: FAILED!
    PLEASE CHECK YOUR CONFIGURATION”

    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! :)

    Tyler.

  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?

    Erwin

    • 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?

    Thanks!

  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.

    David

    • 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.

      Cheers

      Chris

  9. Notice: Undefined offset: 0 in /home2/ufolinac/public_html/1.ufolina.com/plugins/content/windguru/windguru.inc.php 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 :
      If
      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
    Ryan

    • 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 http://www.nurtureagency.com

    Look forward to hearing from you.

    Thanks.

    • 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.

      Regards

      Chris

  13. Hi Chris,

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

    It would be much appreciated! :)

    Thanks,
    Hannes

    • 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.

      Chris

  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

    windguru_forecast(418658,’25d89d782d’);

    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.

      Regards

  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.

    cordially

    Mickaël

  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.

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>