Welcome to the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - 28 November 2014
Latest Cumulus MX release v3.0.0 build 3047 - 03 February 2019. See the Wiki for download

BT's Global Sager Weathercaster PHP Scripts For Cumulus

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

User avatar
odintheterrible
Posts: 44
Joined: Wed 16 Jan 2013 8:18 am
Weather Station: Aercus WS3083 Wireless
Operating System: Windows 10 64-bit
Location: Torre-Pacheco, Murcia, Spain

Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus

Post by odintheterrible » Sat 09 Feb 2019 7:11 pm

Hi,
Mine's been like that too for a couple of days. I thought it was because our local airport has now closed and revert to sole use by the Spanish Airforce and so now doesn't have an ICAO code. I edited the code in the php file to use the code for our new regional airport, but it didn't make any difference ... so, I too am at a loss to explain what is going on.
For the time being I've reverted to the Cumulus forecast.
I hope it can be sorted. :roll:
"Qui Custodit Ipsos Custodes ? ..."

Duct Tape is like 'The Force' ... it has a 'Light Side' AND a 'Dark Side' and it binds the Universe together !

User avatar
mcrossley
Posts: 5374
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus

Post by mcrossley » Sat 09 Feb 2019 8:20 pm

M1DUL wrote:
Sat 09 Feb 2019 6:54 pm
Hi All,
I have just had a look at my weather website and I noticed that my weather forecast say's Forecast Unavailable, I have had a look at other peoples website and there's is doing the same.
Looks like it is working again.

M1DUL
Posts: 264
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: W-8681 Solar Weather Station
Operating System: Windows 10 Pro 64bit Build 10586
Location: Poole, Dorset UK
Contact:

Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus

Post by M1DUL » Sat 09 Feb 2019 9:04 pm

mcrossley wrote:
Sat 09 Feb 2019 8:20 pm
Looks like it is working again.
That is strange very, It is still not working for me.

User avatar
PaulMy
Posts: 1783
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis Vantage Pro 2+ w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus

Post by PaulMy » Sat 09 Feb 2019 9:16 pm

Mine has not worked for a few days, and still not http://www.komokaweather.com/weather/bt-sager.php

Paul

M1DUL
Posts: 264
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: W-8681 Solar Weather Station
Operating System: Windows 10 Pro 64bit Build 10586
Location: Poole, Dorset UK
Contact:

Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus

Post by M1DUL » Sat 09 Feb 2019 9:32 pm

M1DUL wrote:
Sat 09 Feb 2019 9:04 pm
That is strange very, It is still not working for me.
Mine is now working again too. :)

User avatar
beteljuice
Posts: 2556
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus

Post by beteljuice » Sat 09 Feb 2019 10:01 pm

None of those links are currently giving a forecast to me ...

Is there something changed in the METAR look-ups recently, and would that prevent a forecast ?
Image
......................Imagine, what you will KNOW tomorrow !

M1DUL
Posts: 264
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: W-8681 Solar Weather Station
Operating System: Windows 10 Pro 64bit Build 10586
Location: Poole, Dorset UK
Contact:

Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus

Post by M1DUL » Sat 09 Feb 2019 10:10 pm

beteljuice wrote:
Sat 09 Feb 2019 10:01 pm
None of those links are currently giving a forecast to me ...

Is there something changed in the METAR look-ups recently, and would that prevent a forecast ?
Mine has now stoped again it is all very stragine. it was working now it is not. :(

User avatar
beteljuice
Posts: 2556
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus

Post by beteljuice » Sat 09 Feb 2019 11:23 pm

I've just looked at the code for the first time ....

The bt-sager.php is typically returning something like:

Code: Select all

12-24 Hour Forecast:
document.write ('Forecast Unavailable');Z13: Forecast Unavailable
The 'code' returned before the forecast should be in the format: A123 - so one or two entries missing from METAR decode.

In bt-sager-wc.php there is no fall-back for a METAR fail other than the general message you get.
METAR look-up has now changed subtly
Line #24

Code: Select all

curl_setopt ($metarwx, CURLOPT_URL, "http://tgftp.nws.noaa.gov/data/observations/metar/stations/$ms.TXT");
This should now be: "https://tgftp.????????????????
Last edited by beteljuice on Sun 10 Feb 2019 5:27 am, edited 2 times in total.
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
PaulMy
Posts: 1783
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis Vantage Pro 2+ w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus

Post by PaulMy » Sun 10 Feb 2019 4:50 am

Thank you, the "s" made the difference http://www.komokaweather.com/weather/bt-sager.php

Enjoy,
Paul

User avatar
odintheterrible
Posts: 44
Joined: Wed 16 Jan 2013 8:18 am
Weather Station: Aercus WS3083 Wireless
Operating System: Windows 10 64-bit
Location: Torre-Pacheco, Murcia, Spain

Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus

Post by odintheterrible » Sun 10 Feb 2019 9:35 am

Yes, the secure server change in the web address was the culprit ... change made, and now it's all working again.
Thanks fly out to 'beteljuice' for the input :clap:
"Qui Custodit Ipsos Custodes ? ..."

Duct Tape is like 'The Force' ... it has a 'Light Side' AND a 'Dark Side' and it binds the Universe together !

uncle_bob
Posts: 478
Joined: Wed 17 Aug 2011 2:58 pm
Weather Station: WeatherDuino Pro2
Operating System: 2008
Location: Canberra

Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus

Post by uncle_bob » Mon 18 Feb 2019 9:02 am

Damn it, it didn't fix mine.
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Image

Post Reply