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

mildmuck
Posts: 11
Joined: Tue 03 Sep 2013 8:40 pm
Weather Station: WMR88
Operating System: Win 7
Location: Bromsgrove

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

Post by mildmuck »

I've noticed the wind speeds are a little high , I've just applied the offset you advised. See how it goes....

Thanks for the time and effort on making this a great little forecaster.
So many interesting and talented folk on this forum.

:)
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 »

mildmuck wrote:I've noticed the wind speeds are a little high , I've just applied the offset you advised. See how it goes....

Thanks for the time and effort on making this a great little forecaster.
So many interesting and talented folk on this forum.

:)
I am not sure if you completely updated the scripts or not. This says 2014-01-11 instead of 2014-01-14:

http://www.stokepriorweather.co.uk/bt-sager.php
mildmuck
Posts: 11
Joined: Tue 03 Sep 2013 8:40 pm
Weather Station: WMR88
Operating System: Win 7
Location: Bromsgrove

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

Post by mildmuck »

Buford T. Justice wrote:
mildmuck wrote:I've noticed the wind speeds are a little high , I've just applied the offset you advised. See how it goes....

Thanks for the time and effort on making this a great little forecaster.
So many interesting and talented folk on this forum.

:)
I am not sure if you completely updated the scripts or not. This says 2014-01-11 instead of 2014-01-14:

http://www.stokepriorweather.co.uk/bt-sager.php
I've updated the scripts to 01-14, I honestly didn't feel the need to update as it was working quite well ;)

My apologies , anyway I've decided to use an offset of 10 in bt-sager-cu file.
rich27gc
Posts: 75
Joined: Thu 08 Jul 2010 3:15 pm
Weather Station: WeatherDuino Pro2
Operating System: Raspbian
Location: Shap, Cumbria
Contact:

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

Post by rich27gc »

I've been using the php version since the 21st but I haven't seen any difference compared to the java one.
I think this may have something to do with the METAR station I'm using, the information I've highlighted have never changed apart from when my station has rain and m2 says precipitation. Yesterday I had snow but the forecast had said "Fair, Moderate to fresh (13-24 ) winds".
You do not have the required permissions to view the files attached to this post.
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 »

rich27gc wrote:I've been using the php version since the 21st but I haven't seen any difference compared to the java one.
I think this may have something to do with the METAR station I'm using, the information I've highlighted have never changed apart from when my station has rain and m2 says precipitation. Yesterday I had snow but the forecast had said "Fair, Moderate to fresh (13-24 ) winds".
The forecasts between the JavaScript and PHP versions are essentially all the same. PHP is simply faster as it does it calculations on the server whereas JavaScript does the calculations on the client making it slower.

Most METAR stations have a precipitation sensor. In the USA, it is shown near the end of the METAR report as "AO2" if the METAR has this sensor else it is shown as "AO1".

I see your METAR now says...

ms = EGNC
m1 = OVC
m2 = RA (Rain)
rm = 83
pw = Precipitation

And the Forecast says...

Showers; Moderate to fresh (13-24 mph) South or Southwest winds becoming Southwest or West winds.

So either it has the precipitation sensor or someone is there and adding what is happening to the METAR report.

In other words, Snow is not going to be reported unless it is in the METAR.
rich27gc
Posts: 75
Joined: Thu 08 Jul 2010 3:15 pm
Weather Station: WeatherDuino Pro2
Operating System: Raspbian
Location: Shap, Cumbria
Contact:

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

Post by rich27gc »

I knew the METAR would report rain as soon as I posted :lol:

As I said in my PM to you, I'm a little concerned about the difference in altitude between the METAR and my location being almost 750 ft, that must make a difference.

Please someone correct me if I'm wrong.
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 don't think the altitude will make much difference at all. The most important factor is distance. If it is overcast there then it should be overcast at your location. Now granted they may be having a shower and you are not, but you very well may or may not be getting it depending on where the rain is going.

You might want to look at this list and see if there is a METAR station closer to you:

http://www.aviationweather.gov/static/adds/metars/stations.txt

The United Kingdom starts about in the middle of the above link. When you see a METAR code that may be close, make sure it works by going to:

http://weather.noaa.gov/pub/data/observations/metar/stations/EGNC.TXT (Replace EGNC with the METAR station ID you want to try as some of the listings don't work).
rich27gc
Posts: 75
Joined: Thu 08 Jul 2010 3:15 pm
Weather Station: WeatherDuino Pro2
Operating System: Raspbian
Location: Shap, Cumbria
Contact:

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

Post by rich27gc »

Ok thanks will take a look
Bridger
Posts: 60
Joined: Fri 01 Jun 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 11 Home
Location: New Forest. UK
Contact:

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

Post by Bridger »

BT,
I have got my forecast up and running. I am keeping an eye on the wind values which seem a little high. I have applied an offset of 15 to try to get them more accurate.

Thanks for the scripts and the excellent instructions.
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 »

Bridger wrote:BT,
I have got my forecast up and running. I am keeping an eye on the wind values which seem a little high. I have applied an offset of 15 to try to get them more accurate.

Thanks for the scripts and the excellent instructions.
Cool. What is your website address? You might want to not go that high. Usually start at 5 then move up to 10 and so on.

EDIT:

I found it...

http://www.fordingbridgeweather.co.uk/
Last edited by Buford T. Justice on Fri 31 Jan 2014 2:46 pm, edited 1 time in total.
Bridger
Posts: 60
Joined: Fri 01 Jun 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 11 Home
Location: New Forest. UK
Contact:

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

Post by Bridger »

I increased it in increments of 5 until it seemed accurate but I am still monitoring it.
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 »

The latest version of BT's Global Sager Weathercaster PHP Scripts For Cumulus dated 2014-01-30 have been released. Several improvements have been made.

For those of you who had METAR stations which had a Precipitation Code in the station ID, that has now been fixed so when you update you will not need to delete any Precipitation Codes.

Instead of using and having code for in-between wind directions NNE, ENE, ESE, SSE, SSW, WSW, WNW, and NNW which The Sager Weathercaster doesn't exactly use (they get combined into other directions), I did what The Sager Weathercaster does and just made all wind directions in 45° sections so all wind bearings are accounted for and the directions used are:

N = 338-360 and 1-22
NE = 23-67
E = 68-112
SE = 113-157
S = 158-202
SW = 203-247
W = 248-292
NW = 293-337
Calm = 0

Several other small improvements have been made to all of the PHP files.

To upgrade, simply over-write the files in the Cumulus\web folder with what is in the attached .zip file in the first post of this thread. Add your METAR station in "bt-sager-cu.php". Do your translations if needed in "bt-sager-wc.php". Upload all three files to your web server. Wait for Cumulus to perform a web update.
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

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

Post by PaulMy »

I have updated and all seems fine.

Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

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 »

PaulMy wrote:I have updated and all seems fine.

Paul
Cool. I see your forecast is saying Snow and the METAR is reporting snow as well.
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

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

Post by PaulMy »

I have been keeping a log of Davis, BT Sager, and Environment Canada forecasts and the BT-Sager does a very good job. While there is usually some time differences between the current Davis/BT-Sager to EC forecasts, the BT-Sager is quite responsive to upcoming conditions but on a much shorter time period. The Davis forecast is certainly lacking in comparison!

Thanks BT,
Paul
You do not have the required permissions to view the files attached to this post.
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
Post Reply