cloudy cloudy

Author Topic: 24 Hour Extremes World Weather Script  (Read 28532 times)

0 Members and 1 Guest are viewing this topic.

Offline magical46

  • Phils Weather
  • Posts: 598
  • Farnham, Surrey
    • Phils Weather
Re: 24 Hour Extremes World Weather Script
« Reply #30 on: November 26, 2010, 11:48:32 PM »
Another nice script, just one question, to get the menu bar gadget to appear below my menu where do I paste the 
Quote
<?php include("worldextremesGadget.php"); ?>
tag?
Phil

mth

  • Guest
Re: 24 Hour Extremes World Weather Script
« Reply #31 on: November 27, 2010, 12:40:41 AM »
Another nice script, just one question, to get the menu bar gadget to appear below my menu where do I paste the   tag?
Phil

Phil,

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

Code: [Select]
<br/>
<br/>
<p class="sideBarTitle">USA Extremes</p>
<?php include("worldextremesGadget.php"); ?>
<br />

Offline magical46

  • Phils Weather
  • Posts: 598
  • Farnham, Surrey
    • Phils Weather
Re: 24 Hour Extremes World Weather Script
« Reply #32 on: November 27, 2010, 12:52:55 AM »
Thank you, that did it.

Offline linuxfreak

  • Posts: 291
  • Hey there.....
  • Hamilton, Ontario, Canada
    • Hamilton Central Mountain Weather
Re: 24 Hour Extremes World Weather Script
« Reply #33 on: November 28, 2010, 06:11:28 PM »
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

 
Davis VP2/FARS, Intel Atom N330 dual-core, 2Gig ram, Windows XP Home SP3 

mth

  • Guest
Re: 24 Hour Extremes World Weather Script
« Reply #34 on: November 28, 2010, 07:42:38 PM »
All,

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

Regards,
Michael

mth

  • Guest
Re: 24 Hour Extremes World Weather Script
« Reply #35 on: November 28, 2010, 07:56:43 PM »
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

 

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:
Code: [Select]
  //  $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

Offline linuxfreak

  • Posts: 291
  • Hey there.....
  • Hamilton, Ontario, Canada
    • Hamilton Central Mountain Weather
Re: 24 Hour Extremes World Weather Script
« Reply #36 on: November 28, 2010, 11:31:20 PM »
Thanks!  :wink:

George
Davis VP2/FARS, Intel Atom N330 dual-core, 2Gig ram, Windows XP Home SP3 

Offline Gert

  • Posts: 93
    • Toppen Weather - Denmark
Re: 24 Hour Extremes World Weather Script
« Reply #37 on: November 29, 2010, 09:28:15 AM »
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

mth

  • Guest
Re: 24 Hour Extremes World Weather Script
« Reply #38 on: November 29, 2010, 01:20:48 PM »
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

Offline vossen

  • Posts: 233
  • Mauritius
    • Indian Ocean Weather
Re: 24 Hour Extremes World Weather Script
« Reply #39 on: November 29, 2010, 04:25:23 PM »
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

mth

  • Guest
Re: 24 Hour Extremes World Weather Script
« Reply #40 on: November 29, 2010, 07:29:28 PM »
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

Offline vossen

  • Posts: 233
  • Mauritius
    • Indian Ocean Weather
Re: 24 Hour Extremes World Weather Script
« Reply #41 on: November 30, 2010, 01:08:36 AM »
Yes mth!

Offline vossen

  • Posts: 233
  • Mauritius
    • Indian Ocean Weather
Re: 24 Hour Extremes World Weather Script
« Reply #42 on: November 30, 2010, 03:29:43 AM »
and it works now  :lol:
did not change anything  :oops:
thanks for this script!
regards
stefan

mth

  • Guest
Re: 24 Hour Extremes World Weather Script
« Reply #43 on: November 30, 2010, 04:17:00 AM »
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

Offline ThorntonWeather

  • Tony
  • Commercial
  • Posts: 507
  • Thornton, CO USA
    • ThorntonWeather.com
Re: 24 Hour Extremes World Weather Script
« Reply #44 on: December 02, 2010, 03:02:40 AM »
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