Author Topic: Add wxworldextremes to my webpage.  (Read 3867 times)

0 Members and 1 Guest are viewing this topic.

Offline steviebaby59

  • Contributor
  • ***
  • Posts: 109
    • Empire Prairie Weather
Add wxworldextremes to my webpage.
« 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

Offline gluepack

  • Contributor
  • ***
  • Posts: 101
    • Jerbils' Weather Site
Re: Add wxworldextremes to my webpage.
« Reply #1 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
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.
« Last Edit: August 24, 2015, 12:26:17 PM by gluepack »

Offline gluepack

  • Contributor
  • ***
  • Posts: 101
    • Jerbils' Weather Site
Re: Add wxworldextremes to my webpage.
« Reply #2 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.

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
Re: Add wxworldextremes to my webpage.
« Reply #3 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.
« Last Edit: June 05, 2020, 02:16:41 PM by ConligWX »
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline pimohdaimaoh

  • Forecaster
  • *****
  • Posts: 300
  • "Be aware to our nature"
    • PIMOHWEATHER
Re: Add wxworldextremes to my webpage.
« Reply #4 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. . .

Offline pimohdaimaoh

  • Forecaster
  • *****
  • Posts: 300
  • "Be aware to our nature"
    • PIMOHWEATHER
Re: Add wxworldextremes to my webpage.
« Reply #5 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-
« Last Edit: May 23, 2021, 12:27:55 PM by pimohdaimaoh »

Offline Dador

  • Senior Member
  • **
  • Posts: 56
    • Jejkowice
Re: Add wxworldextremes to my webpage.
« Reply #6 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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Add wxworldextremes to my webpage.
« Reply #7 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
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline pimohdaimaoh

  • Forecaster
  • *****
  • Posts: 300
  • "Be aware to our nature"
    • PIMOHWEATHER
Re: Add wxworldextremes to my webpage.
« Reply #8 on: September 07, 2021, 10:53:44 PM »

Offline Dador

  • Senior Member
  • **
  • Posts: 56
    • Jejkowice
Re: Add wxworldextremes to my webpage.
« Reply #9 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.

Offline pimohdaimaoh

  • Forecaster
  • *****
  • Posts: 300
  • "Be aware to our nature"
    • PIMOHWEATHER
Re: Add wxworldextremes to my webpage.
« Reply #10 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

Offline Dador

  • Senior Member
  • **
  • Posts: 56
    • Jejkowice
Re: Add wxworldextremes to my webpage.
« Reply #11 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.

 

anything