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

honestjohn
Posts: 27
Joined: Fri Nov 18, 2011 2:00 pm
Weather Station: Davies Vantage Vue
Operating System: Windows 10 Pro 64bit
Location: Northants, UK
Contact:

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

Postby honestjohn » Sun Feb 09, 2014 12:57 pm

Absolutely BT, the West country has been hit the hardest again.

Sager reporting here.....

Showers and cooler; Gale to Strong Gale (39-54 mph) Northeast or East winds becoming Northwest or North winds.


Best regards


John

http://www.rushden-weather.co.uk
Regards, John

www.rushden-weather.co.uk

Image

uncle_bob
Posts: 459
Joined: Wed Aug 17, 2011 2:58 pm
Weather Station: WeatherDuino Pro2
Operating System: 2008
Location: Canberra

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

Postby uncle_bob » Mon Feb 10, 2014 5:34 am

Bom forecast:
Canberra area

Partly cloudy. Winds east to southeasterly and light tending northeasterly 15 to 25 km/h in the late afternoon.

BT's Sager:

Increasing cloudiness or overcast and warmer possibly followed by rain or showers; Probably increasing North or Northwest winds

So it's a little wobbly here :)

User avatar
Buford T. Justice
Posts: 381
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 » Mon Feb 10, 2014 7:56 am

uncle_bob wrote:Bom forecast:
Canberra area

Partly cloudy. Winds east to southeasterly and light tending northeasterly 15 to 25 km/h in the late afternoon.

BT's Sager:

Increasing cloudiness or overcast and warmer possibly followed by rain or showers; Probably increasing North or Northwest winds

So it's a little wobbly here :)

Looks like it is right on to me...

Average wind direction from 6 hours ago (w6) compared to the current average wind direction (wd) along with the wind speed unit used (wu) to determine if the wind is Backing, Steady, Veering, or Calm:
w6 = 67° NE
wd = 62° NE
wu = km/h
The wind is Steady.

15 mph winds are no biggie :)

uncle_bob
Posts: 459
Joined: Wed Aug 17, 2011 2:58 pm
Weather Station: WeatherDuino Pro2
Operating System: 2008
Location: Canberra

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

Postby uncle_bob » Mon Feb 10, 2014 8:25 am

Hi BT.
Now the pressure's on the way up it's looking a little more in sync.
I'm looking forward to actually getting a change in the weather to see how it reads.
Lately it's just been hot, hot or hot :)

User avatar
Buford T. Justice
Posts: 381
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 » Mon Feb 10, 2014 4:10 pm

uncle_bob wrote:Hi BT.
Now the pressure's on the way up it's looking a little more in sync.
I'm looking forward to actually getting a change in the weather to see how it reads.
Lately it's just been hot, hot or hot :)

I'd be happy to trade with you. We have 4.0" of snow on the ground (down from 7.0") and -20 C (~-5 F) temps. Interested?
Last edited by Buford T. Justice on Tue Feb 11, 2014 9:47 am, edited 2 times in total.

uncle_bob
Posts: 459
Joined: Wed Aug 17, 2011 2:58 pm
Weather Station: WeatherDuino Pro2
Operating System: 2008
Location: Canberra

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

Postby uncle_bob » Tue Feb 11, 2014 6:14 am

Haha, I'd last 1/2 hour before I wanted to come home as I hate the cold.

User avatar
Buford T. Justice
Posts: 381
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 Feb 12, 2014 8:09 am

You guys in the UK who are getting wind forecasts that are too high, browse to the Cumulus\web folder and open bt-sager-cu.php. On Line 17 for the barometric pressure offset, try 25. Save the file. Wait for Cumulus to perform a web update.

EVERYONE, please make sure you have upgraded to the latest version which is 2014-02-05. You can download it by clicking on the link below:

download/file.php?id=9945

You can verify what version of my forecaster you are using by clicking on the forecast on your webpage and looking at the top of the webpage that loads.

water01
Posts: 1401
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

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

Postby water01 » Wed Mar 19, 2014 3:55 pm

Installed on my site, click on sig.

User avatar
captzero
Posts: 363
Joined: Wed Mar 03, 2010 10:20 am
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows 10
Location: Brisbane, Australia
Contact:

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

Postby captzero » Wed Apr 09, 2014 8:59 am

I was able to incorporate a modified version of the forecaster into a scrolling marquee on my Aussie Native Stingless Bee website. Displays forecast and current conditions at the hive. Seems to be working a treat.
http://captzero.camstreams.com/
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.

honestjohn
Posts: 27
Joined: Fri Nov 18, 2011 2:00 pm
Weather Station: Davies Vantage Vue
Operating System: Windows 10 Pro 64bit
Location: Northants, UK
Contact:

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

Postby honestjohn » Sun Apr 13, 2014 4:31 pm

Looking great Dan, very impressive.

Regards
John
Regards, John

www.rushden-weather.co.uk

Image

User avatar
GraemeT
Posts: 308
Joined: Wed Oct 21, 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7
Location: Bayswater, Australia
Contact:

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

Postby GraemeT » Tue Apr 29, 2014 1:07 am

Hi BT,
Here's a question without notice for you:

Can your .php code be easily altered to remove the need for METAR?

The reason is, I have a second weather station running in a remote location without any internet available - hence no METAR.

I'm currently using your .js scripts and although they work ok, I'd like to compare with the .php scripts.

Thanks in advance.
Cheers,
Graeme.

Image

uncle_bob
Posts: 459
Joined: Wed Aug 17, 2011 2:58 pm
Weather Station: WeatherDuino Pro2
Operating System: 2008
Location: Canberra

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

Postby uncle_bob » Wed Apr 30, 2014 3:53 am

GraemeT wrote:Hi BT,
Here's a question without notice for you:

Can your .php code be easily altered to remove the need for METAR?



I can answer that for BT.
And the answer is no. The new scripts need the METAR for the current conditions. If it can't read a METAR then it will error.

The old script can though, but will just use the current condition as clear (IIRC).

User avatar
GraemeT
Posts: 308
Joined: Wed Oct 21, 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7
Location: Bayswater, Australia
Contact:

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

Postby GraemeT » Wed Apr 30, 2014 10:19 pm

That's pretty much what I've found.
Cheers,
Graeme.

Image

User avatar
Buford T. Justice
Posts: 381
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 » Sat May 10, 2014 1:37 am

When I made the first versions of this, I made it to where the user had to type in the current sky condition into the optional CURRENT box within Cumulus. It seemed a lot of people hated it and I had a great suggestion to add METAR to it which automates the process.

User avatar
GraemeT
Posts: 308
Joined: Wed Oct 21, 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7
Location: Bayswater, Australia
Contact:

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

Postby GraemeT » Fri May 30, 2014 1:58 pm

I can see why you collect metar data and that works perfectly well when I'm at home, within 40 km of a metar site. I use an automated php script to pull in and process metar data periodically and write it to currentconditions.txt for Cumulus to porcess.

My problem BT, is that my second station doesn't have any chance of an internet connection. For that matter, we don't have a telephone, either.
Secondly, if there was an internet connection, my nearest metar site is Melbourne International Airport, nearly 300 km away, so any "current" weather observations are practically useless for forecasting.

I've had acceptable results using your javascript forecaster but would really prefer to be working with php, with which I am more familiar, and that is why I made my inquiry.
However, if you say it can't be modified for operation without metar, then I'll have to be content with what I've got.
Cheers,
Graeme.

Image


Return to “Web site - General”

Who is online

Users browsing this forum: De Hout and 5 guests