Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

BT's Global Sager Weathercaster PHP Scripts For CumulusMX

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

Moderator: daj

User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

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

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

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

Post by GraemeT »

Thanks BT.

I'll let you know of any success.
Cheers,
Graeme.
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

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

Post 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.
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

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

Post 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
Cheers,
Graeme.
ashreigney
Posts: 29
Joined: Sun 20 Jul 2014 5:53 pm
Weather Station: N96GY
Operating System: Wndows 8
Location: ashreigney
Contact:

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

Post 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
bobm
Posts: 19
Joined: Sat 13 Aug 2011 7:35 am
Weather Station: Watson W8686
Operating System: Windows 10
Location: Swindon

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

Post 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.
uncle_bob
Posts: 505
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 »

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!
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Image
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

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

Post 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"; 
David
Image
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

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

Post by steve »

That should be

Code: Select all

$updated = "<#timeUTC format="yyyy-MM-dd HH:mm"> UTC";
Steve
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

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

Post by water01 »

Yep corrected the time but forgot about the month!! Brain not in gear!!
David
Image
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

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

Post 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.
User avatar
nking
Posts: 808
Joined: Thu 17 Dec 2009 2:03 pm
Weather Station: W-8681
Operating System: Windows 10
Location: Hurstpierpoint, West Sussex, UK
Contact:

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

Post 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
User avatar
nking
Posts: 808
Joined: Thu 17 Dec 2009 2:03 pm
Weather Station: W-8681
Operating System: Windows 10
Location: Hurstpierpoint, West Sussex, UK
Contact:

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

Post 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 ;)
User avatar
jlp09550
Posts: 53
Joined: Sun 27 Dec 2009 3:35 am
Weather Station: ProWeatherStation
Operating System: Windows 10
Location: Mouton Cove, Abbeville, Louisiana, USA
Contact:

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

Post 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!
User avatar
kasper58
Posts: 25
Joined: Tue 12 Jul 2011 5:17 am
Weather Station: Fine Offset (SS), TempestWX
Operating System: Windows 10 on Desktop
Location: New Zealand
Contact:

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

Post 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.
Post Reply