WXforum.net
Web Weather => Weather Web Site Help => Topic started 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
-
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.
-
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.
-
I have updated my version of worldextremes.php today in line with ogimet country listings.
// 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.
-
I have updated my version of worldextremes.php today in line with ogimet country listings.
// 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. . .
-
I have updated my version of worldextremes.php today in line with ogimet country listings.
// 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-
-
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
-
I have a replacement script for Relayweather's worldextremes
https://saratoga-weather.org/scripts-NWSmisc.php#NWSEXTR
-
I have a replacement script for Relayweather's worldextremes
https://saratoga-weather.org/scripts-NWSmisc.php#NWSEXTR
Thank You Ken
-
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.
-
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
-
SOLVED \:D/
My server administrator said it was their fault. Works in the new setting.
Old code, not working
/////////////////////////////////////////////////////////////////////////////
// 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>
/////////////////////////////////////////////////////////////////////////////
// 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.