Page 19 of 22

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

Posted: Thu 28 Apr 2016 7:51 am
by ConligWX
Just put this script onto my website. looking good!

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

Posted: Thu 09 Jun 2016 6:15 am
by griffo42
Hi All

I have followed BT's post of 5th May 2013 and this is what I get on my Saratoga site. I seem to have missed something. Could anyone please help?

best wishes

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

Posted: Thu 09 Jun 2016 7:11 am
by griffo42
Hi all

After some further tweaking, the attached is what I now have on my Saratoga site.

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

Posted: Thu 09 Jun 2016 8:08 am
by water01
I believe that the Saratoga web pages are all PHP, if you look at the last line of bt-sager-wc.php it says

Code: Select all

This allows displaying the forecast on a HTML webpage.  Add // to the front of this line if using a PHP webpage. 
PHP uses the output directly so the document.write is not needed, hence the duplication.

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

Posted: Thu 09 Jun 2016 11:30 am
by griffo42
David

Thanks for that. I had already made the change you pointed out to that file but simply had not uploaded to the webserver. All fixed.

best wishes

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

Posted: Thu 09 Jun 2016 2:20 pm
by ConligWX
griffo42 wrote:David

Thanks for that. I had already made the change you pointed out to that file but simply had not uploaded to the webserver. All fixed.

best wishes
fixed but you main page is full of validation errors.

Anyway, I just added this script to to my Saratoga template, but had to change a couple of things as they failed validation.

changed:

Code: Select all

<p align = "center" style = "line-height : 1.3"><b><font face = "Tahoma" size = "2">12-24 Hour Forecast:</font></b><br>
to

Code: Select all

<p align = "center" style = "line-height : 1.3"><b><font face = "Tahoma" size = "2">12-24 Hour Forecast:</font></b><br />
and

Code: Select all

<meta http-equiv="refresh" content="299">
to

Code: Select all

<meta http-equiv="refresh" content="299" />
I still get a validation error with this however:

Code: Select all

<p align = "center" style = "line-height : 1.3"><b><font face = "Tahoma" size = "2">12-24 Hour Forecast:</font></b><br />
it shows the following:
Line 854, Column 57: document type does not allow element "p" here; missing one of "th", "td" start-tag
…= "center" style = "line-height : 1.3"><b><font face = "Tahoma" size = "2">12-…

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Any help would be great. I'm a bit stuck on what's needed to be added to fix this.

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

Posted: Wed 03 Aug 2016 5:48 pm
by M1DUL
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.

Please can you tell us what needs to be made to correct this problem?

Many Thanks
Regards Michael

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

Posted: Wed 03 Aug 2016 7:50 pm
by PaulMy
Mine is doing the same www.komokaweather.com

Mmm a couple of oddball things occurring again?!?

Paul

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

Posted: Wed 03 Aug 2016 8:06 pm
by Bridger
My forecast is the same and I have just noticed my METAR reports are not updating which is probably a related issue.
http://www.fordingbridgeweather.co.uk/metar-reports.php

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

Posted: Wed 03 Aug 2016 8:49 pm
by Mapantz
I used to use it, and quite frequently it wouldn't work. Bournemouth's metar is terrible for having periods of no updates. I gave up in the end.. :/

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

Posted: Thu 04 Aug 2016 2:03 am
by Werk_AG
I'm running this script since long time without a glitch, but today I also started to get the Forecast Unavailable message.
www.meteocercal.info

As METAR I'm using LPPT which updates very frequently.

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

Posted: Thu 04 Aug 2016 6:47 am
by pernaczy
Werk_AG wrote:I'm running this script since long time without a glitch, but today I also started to get the Forecast Unavailable message.
I have the same. In addition, I'm using "Metar display" script: http://saratoga-weather.org/scripts-metar.php#metar working perfectly and now (I don't now since when it shows that, I just noticed it) it displays like on the attached picture.

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

Posted: Thu 04 Aug 2016 6:56 am
by Buford T. Justice
NOAA changed the link to the .TXT METAR reports. The .PHP files have been updated for this change. Redownload from the first post.

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

Posted: Thu 04 Aug 2016 11:48 am
by Werk_AG
Buford T. Justice wrote:NOAA changed the link to the .TXT METAR reports. The .PHP files have been updated for this change. Redownload from the first post.
Thank you. It's working again. ;)

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

Posted: Thu 04 Aug 2016 11:53 am
by Werk_AG
pernaczy wrote: I have the same. In addition, I'm using "Metar display" script: http://saratoga-weather.org/scripts-metar.php#metar working perfectly and now (I don't now since when it shows that, I just noticed it) it displays like on the attached picture.
Update to latest get-metar-conditions-inc.php
Check this thread: https://cumulus.hosiene.co.uk/viewtopic.php?f=25&t=15488