Page 18 of 22

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

Posted: Wed 11 Jun 2014 1:35 am
by Buford T. Justice
It is not impossible. Here is a non-METAR TEST version of my PHP Scripts. You have to have the Current box showing in Cumulus and use these EXACTLY:

Clear
Partly Cloudy
Mostly Cloudy
Overcast
Precipitation

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

Posted: Sat 14 Jun 2014 10:59 pm
by GraemeT
Thanks BT.

I'll let you know of any success.

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

Posted: Sun 06 Jul 2014 1:08 am
by Buford T. Justice
Any luck with the non-METAR version? You can also try the updated Zambretti Weathercard Forecaster linked in my signature below.

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

Posted: Mon 14 Jul 2014 1:36 pm
by GraemeT
I had a play with your scripts last week but ran out of time, so nothing to report yet. Certainly no negatives either, so that's a good sign...

I'll report back in a couple of weeks, with any luck.

Cheers

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

Posted: Fri 01 Aug 2014 4:12 pm
by ashreigney
Thank you for this, just installed it and all is well applied an offset to sort out the wind as it was a bit high in my opinion

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

Posted: Sun 10 Aug 2014 8:13 am
by bobm
Excellent - got it working in 10 minutes and put in a 25 offset.

One terribly minor point - the link at the top of bt-sager.php to http://www.freewebs.com/btjustice/bt-forecasters.html is dead.

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

Posted: Tue 16 Jun 2015 1:32 pm
by uncle_bob
I've recently moved over to the Saratoga templates and now have just updated the website to use BT's Sager PHP scripts again.
They appear to be working too :)

Thanks again for these BT!

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

Posted: Mon 06 Jul 2015 10:11 am
by water01
If you are using Cumulus MX you will need to change bt-sager-cu.php line 22 from

Code: Select all

$updated = "<#timeUTC format="yyyy-mm-dd hh:nn"> UTC"; 
to

Code: Select all

$updated = "<#timeUTC format="yyyy-mm-dd hh:mm"> UTC"; 

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

Posted: Mon 06 Jul 2015 10:16 am
by steve
That should be

Code: Select all

$updated = "<#timeUTC format="yyyy-MM-dd HH:mm"> UTC";

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

Posted: Mon 06 Jul 2015 10:25 am
by water01
Yep corrected the time but forgot about the month!! Brain not in gear!!

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

Posted: Tue 07 Jul 2015 10:43 pm
by Buford T. Justice
I have been holding off on that until MX goes public. As for the website, I need to update it as freewebs killed what I had for some reason.

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

Posted: Tue 16 Feb 2016 10:25 am
by nking
Just a quick note to say thank you to Buford T. Justice for his excellent work :clap: . With very clear instructions I've added it to my site with no problems :D

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

Posted: Fri 11 Mar 2016 8:54 am
by nking
Woke up this morning to fog (cloud at ground level) but wondered why the forecast was showing showers/rain and because of the temperature this was amended to snow. Taking a look at the php script I noticed that in line 154 ("VV" Clouds cannot be seen because of fog or heavy precipitation, so vertical visibility is given instead.) is considered "Precipitation". I amended mine to "Overcast" which, in my opinion, results in a more appropriate forecast. I will rely on my station to report if it is raining ;)

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

Posted: Thu 17 Mar 2016 7:29 pm
by jlp09550
I just implemented this on my weather station website. I'm curious to see how accurate it'll be. ;) So far, so good, though!

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

Posted: Thu 24 Mar 2016 12:06 am
by kasper58
I am running CumulusMX and Apache2 on a Raspberry Pi.
I tried to implement the Sager script, but it fails, all I get is the title '12-24 Hour Forecast:' and no data.
I noticed that the bt-sager-cu.php creates a bt-sager-cu.phptmp in the web dir. Is this because it is owned by pi whereas root runs the script.
I have all 3 bt-sager .php's (bt-sager-cu.php with process selected) in the Extra Files to be copied to /var/web/html.

Any help appreciated.

UPDATE:
Got it sorted, needed to install php-curl

Code: Select all

sudo apt-get install php5-curl
Restart apache2 and bingo.....

Will monitor now and see how well it works for me, I'm approx 70km from METAR station.