WXforum.net

Web Weather => Weather Web Site Help => Topic started by: steviebaby59 on August 21, 2015, 01:12:27 PM

Title: Add wxworldextremes to my webpage.
Post by: steviebaby59 on August 21, 2015, 01:12:27 PM
I would like to add Weather Extremes widget to my menu bar. So far, I have ran into a wall. I have downloaded the php scripts, but it's not incorporating my website into the page. http://www.empireprairieweather.com/worldextremes.php .

Also, I would like to know how to add the widget to my side bar. I have been doing all the research I can, but I'm not finding solutions.  ](*,)

Steve

www.empireprairieweather.com
Title: Re: Add wxworldextremes to my webpage.
Post by: gluepack on August 24, 2015, 12:22:54 PM
I've added the main script into my website
viz. http://www.jerbils.info/saratoga/wxextremes.php (http://www.jerbils.info/saratoga/wxextremes.php)
and I have made some mods, including variable length lists (e.g. Bulgaria, where I live, only ever has 7 entries) and the full list of countries (if anyone is interested in the two arrays, let me know. I also have a zip of a full set of dummy cache files).
The only problem I have had (apart from a reference to 20 entries specifically, as opposed to using the set variable) is that 'World' and 'Northern Hemisphere' invariably time out (after 12-15 seconds), presumably due to the volume of data accessed. I have noticed other sites have the same problem but accessing the source site directly works but it takes 20-30 seconds so I assume that it is my hosting ISP that has fixed something.
I have done nothing with the gadget.
Title: Re: Add wxworldextremes to my webpage.
Post by: gluepack on August 27, 2015, 10:49:04 AM
I've made some mods to the original and attached it here...

// VerJ.1 27-Aug-15 -- Increased arrays to include all countries and regions
// Added headings for country/region list
// Made output lines variable based on number of data items, if less than number of stations requested
// Added ability to choose alternative display time to UTC as additional line or replacement

Anyone is welcome to use it and, if you spot any problems, let me know.
Title: Re: Add wxworldextremes to my webpage.
Post by: ConligWX on June 05, 2020, 08:24:04 AM
I have updated my version of worldextremes.php today in line with ogimet country listings.

Code: [Select]
// Ver0.7 05-Jun-20 -- Updated country listings so that they are in sync with ogimet.
//        Added https support with ogimet.com
//                removed url to Relayweather.com as this domain is not active any longer as a support site for script

wxextremes.php (saratoga template also included)

please note not all country selections work, due to lack of reporting stations.
Title: Re: Add wxworldextremes to my webpage.
Post by: pimohdaimaoh on June 06, 2020, 12:17:07 AM
I have updated my version of worldextremes.php today in line with ogimet country listings.

Code: [Select]
// Ver0.7 05-Jun-20 -- Updated country listings so that they are in sync with ogimet.
//        Added https support with ogimet.com
//                removed url to Relayweather.com as this domain is not active any longer as a support site for script

wxextremes.php (saratoga template also included)

please note not all country selections work, due to lack of reporting stations.


Hi, Thank you so Much for updates mate. . .
Title: Re: Add wxworldextremes to my webpage.
Post by: pimohdaimaoh on May 23, 2021, 12:25:00 PM
I have updated my version of worldextremes.php today in line with ogimet country listings.

Code: [Select]
// Ver0.7 05-Jun-20 -- Updated country listings so that they are in sync with ogimet.
//        Added https support with ogimet.com
//                removed url to Relayweather.com as this domain is not active any longer as a support site for script

wxextremes.php (saratoga template also included)

please note not all country selections work, due to lack of reporting stations.

Hello,

Need help regarding  weaatherextremes.php doesnt working anymore but before it does work well, I used to follow instruction specially its permissions but why still cant parse it? if I test it on my local server it works fine, but when I uploaded to web server it isnt work even CHMOD is already triple 6 it only shows blank

http://www.pimohweather.com/pimohworldextreme.php

Hope someone could help me resolve this. Thank You


regards

-Mike-
Title: Re: Add wxworldextremes to my webpage.
Post by: Dador on September 06, 2021, 04:39:47 AM
Hi,
some time ago the worldextremes.php script stopped working for me (and not only). Perhaps it has to do with the changes that took place on ogimet.com (added air humidity column). I saw that the script doesn't work for many sites, but it works for those who use the Saratoga template. Maybe some of you have already solved the problem :?: Author Michael Holden is unlikely to help, because the link to the Relay Weather website leads to a website that has nothing to do with the weather anymore.

My script - https://pogodarybnik.pl/worldextremes.php
Title: Re: Add wxworldextremes to my webpage.
Post by: saratogaWX on September 07, 2021, 02:25:35 PM
I have a replacement script for Relayweather's worldextremes

https://saratoga-weather.org/scripts-NWSmisc.php#NWSEXTR
Title: Re: Add wxworldextremes to my webpage.
Post by: pimohdaimaoh on September 07, 2021, 10:53:44 PM
I have a replacement script for Relayweather's worldextremes

https://saratoga-weather.org/scripts-NWSmisc.php#NWSEXTR


Thank You Ken
Title: Re: Add wxworldextremes to my webpage.
Post by: Dador on September 08, 2021, 03:40:33 AM
I have a replacement script for Relayweather's worldextremes

https://saratoga-weather.org/scripts-NWSmisc.php#NWSEXTR

Thanks saratogaWX i will take a look at it.


Thank You Ken

Pimohdaimaoh, we have the same worldextremes.php script, but it works for you and it doesn't for me. Before, you had problems with CHMOD, how did you fix them? Maybe I will go your way.
Title: Re: Add wxworldextremes to my webpage.
Post by: pimohdaimaoh on September 09, 2021, 02:52:30 AM
I have a replacement script for Relayweather's worldextremes

https://saratoga-weather.org/scripts-NWSmisc.php#NWSEXTR

Thanks saratogaWX i will take a look at it.


Thank You Ken

Pimohdaimaoh, we have the same worldextremes.php script, but it works for you and it doesn't for me. Before, you had problems with CHMOD, how did you fix them? Maybe I will go your way.

Hi,

I just changes the CHMOD at 775 instead of 664 since it doeasnt work in 664
Title: Re: Add wxworldextremes to my webpage.
Post by: Dador on September 09, 2021, 05:39:44 AM
SOLVED \:D/

My server administrator said it was their fault. Works in the new setting.

Old code, not working

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

And new code, working =D>

Code: [Select]
/////////////////////////////////////////////////////////////////////////////
// Site to Parse
$siteSource = "http://51.89.234.241/cgi-bin/gsynext?lang=en&state=$country&rank=30&ano=$year&mes=$month&day=$day&hora=$hour&Send=send";
/////////////////////////////////////////////////////////////////////////////

Thanks to everyone for your help.