24 Hour Extremes World Weather Script

Thanks, I have it up and running on my site. Works perfect.

Best regards
Jan-Ove.

Thanks Michael,
Working fine here as well. Very nice script

/Labbs

Michael,

Take a look at the thread I started earlier when things started going west for me:

http://discourse.weather-watch.com/t/48607

Never thought such a small script could kill so much! :lol:

I’ll take a look at the new scripts, working great otherwise! :wink:

George

All,

This morning these were a couple of errors with the ogimet server overload. This was corrected. Additionally, the UTC timezone function was not needed for the menubar version and this was removed (this was causing problems with the time for those who use the whos-online script). Hopefully this will do it for the updates…

Full Version History
(26-Nov-10) Version 0.4 – Improved ogimet server overloading handling function.
Menubar Version History
(26-Nov-10) Version 0.2 – Improved ogimet server overloading handling function. Removed UTC timezone set (not needed)

New script can be downloaded in the first post. Thanks for all the patience.

Michael

For those in the UK, I’ve found a nice metar station locator tool.

http://www.ukweatherworld.co.uk/Pages/Metar-Map.aspx

Michael

Another nice script, just one question, to get the menu bar gadget to appear below my menu where do I paste the

<?php include("worldextremesGadget.php"); ?>
tag?
Phil

Phil,

I’ve got mine in my menubar.php like this:





<p class="sideBarTitle">USA Extremes</p>
<?php include("worldextremesGadget.php"); ?>


Thank you, that did it.

Michael,

Small problem with the new script. Fine and dandy that you have shortened the location names, but this is a bit much!! #-o

Would love to know where it happened, a little more accurately, not so general! :wink: #-o :lol:

George


Menubar.JPG

All,

Updated the menubar version:
(28-Nov-10) Version 0.4 – Improved shortened location and station removal setup
Download at first post.

Regards,
Michael

George,

I’ve updated the script so its back to the original long name by default and those who wish to shorten can do this by commenting out a line of code.

I had the code ignore everything before the comma, which left you with next to nothing! :lol:
http://www.ogimet.com/cgi-bin/gsynext?lang=en&state=Cana&rank=10&ano=2010&mes=11&day=28&hora=18&Send=send

Now it includes everything. If you wish to include everything leave the following two lines commented:


  //  $exLoc2[1] = preg_replace('|, .*|', '', $exLoc2[1]);    // get rid of everything in location after comma
  //  $exLoc2[1] = preg_replace('|.*, |', '', $exLoc2[1]);    // get rid of everything in location before comma

If you wish to remove everything before or after the “comma”, uncomment the proper line of the code by removing the “//”

Michael

Thanks! :wink:

George

Hi

Thanks for a great script. One question.

Is it possible to add the ability to remove unwanted stations from the output of the full Version?

Thanks

Rgds
Gert

Gert,

This was not built into the full version, sorry. Perhaps sometime in the future.

Michael

Michael thanks very much for your work!
i just got a problem with
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/infomau/public_html/weer-mauritius/worldextremes.php on line 81
http://weer-mauritius.info-mauritius.com/mauritius-extreme.php

any idea?
best regards
stefan

Stefan,

Have you set your cache file to CHMOD 666?

Michael

Yes mth!

and it works now :lol:
did not change anything :oops:
thanks for this script!
regards
stefan

Stefan,

I’m glad you worked it all out!

Cheers!
Michael

Great script, Michael! Not to be greedy but… :oops: What are the chances of adding a form that allows visitors to select a previous date and view the records? I see Ogimet does this on their site (http://www.ogimet.com/ranking.phtml.en).

Thanks!

T