24 Hour Extremes World Weather Script

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

T,

I’m sure it can be done but this script uses a cache (suggested update time of 30-45 min.) which takes a lot of load off of the ogimet servers. To place a form would mean that the script would have to actively pull data for every previous date that is called in real-time. Additionally, this would mean a significant change in the script.

Michael

Ah, makes sense - wouldn’t want to blow up any servers! :wink:

T

All,

New version released for the Full Weather Extremes Script providing a drop down for use with multiple areas.
See example here: http://www.relayweather.com/wxworldextremes.php
Download in the first post.

Version History
(02-Dec-10) Version 0.5 – Added multi-area functionality (Thanks to Ray @ Tzouhalem-Maple Bay Weather www.tzweather.org !!)

Special thanks go to Ray at http://www.tzweather.org for his code contributions.

Cheers,
Michael

Hi Michael,

Love the script btw.

There is 18 synops on Ogimet for Ireland but only showing top 10 extremes using the previous full version of your script. How can I increase this so I can see all synops and not just top 10.

Have a temporary page set up atm.

http://www.irelandsweather.com/worldextremes.php

Many thanks,
Karl.

Thanks Michael!

Snowbie…upgrade to the latest version (version 0.5) and you can easily choose more stations by changing this to the amount you need.

// Number of stations to display
$stations           = 15;

If you don’t wish to update, as I see you are using version 0.4 you can change the following:

$siteSource = "http://www.ogimet.com/cgi-bin/gsynext?lang=en&state=$country&rank=10&ano=$year&mes=$month&day=$day&hora=$hour&Send=send";

to

$siteSource = "http://www.ogimet.com/cgi-bin/gsynext?lang=en&state=$country&rank=18&ano=$year&mes=$month&day=$day&hora=$hour&Send=send";

Notice the 18 added to the site source url.

Hi Michael,
great script.
I’ve insert it on my site here: http://www.meteocarmignano.it/wxitextremevalue.php

Many thanks,

Alessandro

Well crap! You keep making more and more work for me Michael!!! :smiley: Once again, great job! It always takes a little more work for me since I don’t use the templates but here ya go! http://www.daculaweather.com/world_extremes.php

Michael, I have a question. The menu bar version works great if you’re using the templates, but I use mine horizontally (you can see the old version on my opening page, top right corner). If the new version could display only city, state instead of the long description of the location, I could use it in place of the old script, but because of the new longer output format, it’s just too long to fit where I currently have it. Is that remotely possible?

Thanks in advance and great work!

Thank you for the great script, Michael!
I’ve insert to my site here: http://www.jvrijswijk.nl/wxworldextremes.php

I have a little question. I’ve set the unit type for all locations to Metric.
And Europe is set as default location. That works very well but I see the amounts of the default location only as Imperial.
When I choose a different location and go then back to Europe they are in Metric indeed.

Regards, JanvR

There is around line 73, change $useunits to"M"

// Default location when this script is firts started
if (!isset($GET[‘extremes’]) ) {
$country = $defaultlocation;
$selected = $country;
$useunits = ‘I’;
$siteCache = 'extremesCache
’.strtolower($country).‘.php’;
$stations = $stations; // only displayed when script is firts started

Should fix that JanvR

I thank you so much for your very quick reply.

It’s working very well now.

Regards, JanvR