Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post 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

Moderators: daj, TNETWeather

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

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

Postby mildmuck » Sat Jan 18, 2014 9:56 pm

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: 382
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2095
Operating System: https://ubuntu-mate.org/
Location: USA

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

Postby Buford T. Justice » Sun Jan 19, 2014 2:19 am

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 Sep 03, 2013 8:40 pm
Weather Station: WMR88
Operating System: Win 7
Location: Bromsgrove

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

Postby mildmuck » Sun Jan 19, 2014 10:33 am

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: 69
Joined: Thu Jul 08, 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

Postby rich27gc » Fri Jan 24, 2014 8:40 am

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: 382
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2095
Operating System: https://ubuntu-mate.org/
Location: USA

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

Postby Buford T. Justice » Fri Jan 24, 2014 8:42 pm

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: 69
Joined: Thu Jul 08, 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

Postby rich27gc » Fri Jan 24, 2014 8:56 pm

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: 382
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2095
Operating System: https://ubuntu-mate.org/
Location: USA

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

Postby Buford T. Justice » Fri Jan 24, 2014 9:18 pm

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: 69
Joined: Thu Jul 08, 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

Postby rich27gc » Fri Jan 24, 2014 9:23 pm

Ok thanks will take a look

Bridger
Posts: 35
Joined: Fri Jun 01, 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows XP Pro
Location: New Forest. UK
Contact:

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

Postby Bridger » Wed Jan 29, 2014 8:24 pm

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: 382
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2095
Operating System: https://ubuntu-mate.org/
Location: USA

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

Postby Buford T. Justice » Wed Jan 29, 2014 10:22 pm

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 Jan 31, 2014 2:46 pm, edited 1 time in total.

Bridger
Posts: 35
Joined: Fri Jun 01, 2012 4:58 pm
Weather Station: Davis Vantage Vue
Operating System: Windows XP Pro
Location: New Forest. UK
Contact:

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

Postby Bridger » Thu Jan 30, 2014 8:10 am

I increased it in increments of 5 until it seemed accurate but I am still monitoring it.

User avatar
Buford T. Justice
Posts: 382
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2095
Operating System: https://ubuntu-mate.org/
Location: USA

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

Postby Buford T. Justice » Thu Jan 30, 2014 11:54 pm

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: 1696
Joined: Sun Sep 28, 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

Postby PaulMy » Fri Jan 31, 2014 1:24 am

I have updated and all seems fine.

Paul

User avatar
Buford T. Justice
Posts: 382
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2095
Operating System: https://ubuntu-mate.org/
Location: USA

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

Postby Buford T. Justice » Fri Jan 31, 2014 5:57 am

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: 1696
Joined: Sun Sep 28, 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

Postby PaulMy » Fri Jan 31, 2014 4:40 pm

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.


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 1 guest