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 4018) - 28 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

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

Current List of Known Weather Websites Using "BT's Global Sager Weathercaster Scripts For Cumulus":

Buford T. Justice in USA - Link 1 | Link 2 | Link 3

BCJKiwi in Royal Oak, Auckland, New Zealand - Silver Acorn Weather - Royal Oak, Auckland, N.Z.

Bridger in Fordingbridge, New Forest, UK - Fordingbridge Weather

caseyjones1956 in Somerset, UK - Bridgwater Weather Station

darren in Marton, UK - Marton Weather

dominik810 in Poland - Amatorska Stacja Meteo Radlin - Obszary

GraemeT in Australia - North Bayswater Weather

honestjohn in Rushden (Northants), UK - Rushden (Northants) Weather Station

jdc in Berwick-upon-Tweed, Northumberland, UK - Letham Shank Farm

joewith in Colorado, USA - TigerDenWX

JTS in High Wych, Hertfordshire, UK - High Wych Weather

mildmuck in Stoke Prior, Bromsgrove, UK - Stoke Prior Weather

PaulMy in Komoka, ON Canada - Komoka Weather

pernaczy in Poland - NIESIOŁOWICE (NIESOŁEJCE)

rich27gc in England - Shap Weather Station

sgrmick in England - Conisbrough, South Yorkshire

steve in Sanday, Orkney Isles, UK - Sanday Weather

uncle_bob in Australia - Conder, Canberra, ACT, Australia

water01 in Mendip Hills, Somerset, UK - Gurney Slade Weather at Waterworks Cottage

Werk_AG in Portugal - Meteorologia - Cercal CDV
Last edited by Buford T. Justice on Sat 12 Jul 2014 7:08 pm, edited 36 times in total.
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 JavaScripts For Cumulus

Post by Buford T. Justice »

BT's Global Sager Weathercaster JavaScripts For Cumulus have been updated. You must be running Cumulus 1.9.4 beta build 1079 or newer. To update, simply save bt-sager-cu.js in your Cumulus web folder then upload bt-sager.js to your website.

Fixed the diurnal variation of the barometer by moving the barometer trends of Rising Slowly and Falling Slowly to be seen as Steady/Normal. This should keep the forecast from switching so much. I had thought matching Rising Slowly and Falling Slowly between The Sager Weathercaster and Cumulus was the same but it is not.

Sager uses Rising Rapidly, Rising Slowly, Normal, Falling Slowly, and Falling Rapidly.

Cumulus uses Rising Very Rapidly, Rising Quickly, Rising, Rising Slowly, Steady, Falling Slowly, Falling, Falling Quickly, and Falling Very Rapidly.

The Sager has 5 dial positions for barometer trends. To make all of these match properly between Sager and Cumulus:

1) Rising Rapidly, Rising Very Rapidly, and Rising Quickly.
2) Rising.
3) Rising Slowly, Normal, Falling Slowly, and Steady.
4) Falling.
5) Falling Rapidly, Falling Quickly, and Falling Very Rapidly.

For localization/translations, simply copy/paste what you did in your current bt-sager.js file to the new one with the exception of barometer trend names on Lines 556-564 as those will probably need to be re-translated.

Sorry for the constant updates recently, but I am a Virgo so naturally I have to try to be a perfectionist, lol.
User avatar
Werk_AG
Posts: 198
Joined: Sun 13 Jan 2013 8:04 pm
Weather Station: WeatherDuino 4Pro
Operating System: Windows 7
Location: Cercal CDV - Portugal
Contact:

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by Werk_AG »

Updated, and working!
Image
The freedom to choose the weather instruments you want
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 JavaScripts For Cumulus

Post by Buford T. Justice »

Let me explain diurnal variation of the barometer. The barometer will Rise Slowly between the hours of 4 AM - 10 AM and 4 PM - 10 PM and will Fall Slowly between the hours of 10 AM - 4 PM and 10 PM - 4 AM. The time and rise/fall amount will vary depending on location, altitude, weather conditions, and time of the year.

The problem with this, Cumulus, and the Sager is that Cumulus reports these as Rising Slowly and Falling Slowly which is correct, but Rising Slowly and Falling Slowly are not the same between Cumulus and the Sager.

Rising Slowly in the Sager is the equivalent to Rising in Cumulus. Falling Slowly in the Sager is the equivalent to Falling in Cumulus.

Rising Slowly, Steady, and Falling Slowly in Cumulus are the equivalents to Normal in the Sager.

The Sager doesn't use Rising or Falling but instead uses Rising Rapidly, Rising Slowly, Normal, Falling Slowly, and Falling Rapidly.

If Cumulus says the barometer is Rising Slowly or Steady then the JavaScripts will remain on Normal just as they should. When Cumulus says the barometer is Rising then the JavaScripts will see it as Rising. And when Cumulus says it is Rising Quickly or Rising Very Rapidly then the JavaScripts will see it is as Rising Rapidly.

If Cumulus says the barometer is Falling Slowly then the JavaScripts will remain on Normal just as they should. When Cumulus says the barometer is Falling then the JavaScripts will see it as Falling. And when Cumulus says it is Falling Quickly or Falling Very Rapidly then the JavaScripts will see it is as Falling Rapidly.
Last edited by Buford T. Justice on Sun 09 Jun 2013 2:30 am, edited 2 times in total.
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 JavaScripts For Cumulus

Post by uncle_bob »

I've upgraded my site to the latest version and all is well :)
I'm a wee bit surprised that only five stations have taken the jump.
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Image
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 JavaScripts For Cumulus

Post by uncle_bob »

BT. I just gave your software a plug on Weather By You.
http://weatherbyyou.com/forum/index.php?topic=732.0

Maybe you could have a word with Jacques and see if he will add it to future templates.
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
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 JavaScripts For Cumulus

Post by Buford T. Justice »

uncle_bob wrote:BT. I just gave your software a plug on Weather By You.
http://weatherbyyou.com/forum/index.php?topic=732.0

Maybe you could have a word with Jacques and see if he will add it to future templates.
Thanks man! The 5 6 7 people listed are the only ones I know so far. There could be others. I wish they would PM me their URLs if they are using these JavaScripts.
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 JavaScripts For Cumulus

Post by Buford T. Justice »

BT's Global Sager Weathercaster JavaScripts For Cumulus have been updated. You must be running Cumulus 1.9.4 beta build 1079 or newer. To update, simply save bt-sager-cu.js in your Cumulus web folder then upload bt-sager.js to your website.

JavaScripts date and time represented in international standard date and time notation.

Foggy added as a Mostly Overcast current condition.

JavaScripts var bp has been changed from using the <#RCpress> webtag to using the <#altimeterpressure> webtag in order to bypass Davis Vantage Pro/Pro2 calculations of relative barometric pressure which use other factors in addition to altitude which can make the reading too low and result in an erroneous forecast. The <#altimeterpressure> webtag does the exact same thing as the <#press> webtag for non-Davis weather stations. It is represented as:

Code: Select all

var bp = parseFloat("<#altimeterpressure>".replace(",","."));
The (",",".") part replaces the decimal separator comma with a period.

If you have performed localization customizations, you should be able to copy/paste them carefully and then run the search replacement for wind directions.
User avatar
pernaczy
Posts: 133
Joined: Thu 15 Nov 2012 5:42 pm
Weather Station: Fine Offset WH 2080, TFA Spring
Operating System: Windows 7
Location: Niesiolowice, Northern Poland
Contact:

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by pernaczy »

Hi,
From now I'm also using "BT's Global Sager Weathercaster JavaScripts For Cumulus" (http://www.pogoda-niesiolowice.kaszuby.pl/index.php ).
Sorry but it's only in Polish. :?

Best Regards,
Piotr
The day when I have learned something is not the lost one.
Ignorance can be corrected with the help of a book. Stupidity requires a shotgun and a shovel.

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 JavaScripts For Cumulus

Post by Buford T. Justice »

pernaczy wrote:Hi,
From now I'm also using "BT's Global Sager Weathercaster JavaScripts For Cumulus" (http://www.pogoda-niesiolowice.kaszuby.pl/index.php ).
Sorry but it's only in Polish. :?

Best Regards,
Piotr
Cool. Hope you like it. I added you to the list of known users.
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 JavaScripts For Cumulus

Post by Buford T. Justice »

BT's Global Sager Weathercaster JavaScripts For Cumulus have been updated. You must be running Cumulus 1.9.4 beta build 1079 or newer. To update, simply save bt-sager-cu.js in your Cumulus web folder then upload bt-sager.js to your website. If you have performed localization customizations, you should be able to copy/paste them carefully and then run the search replacement for wind directions.

Changes 2013-06-21:

Instead of using barometric pressure trend names, barometric trend values determined over three hours average are used converted to hPa:

Falling Rapidly means the pressure is falling at a rate of -1.20 hPa or faster.
Falling Slowly means the pressure is falling at a rate of -0.40 to -1.19 hPa.
Steady means the pressure is falling or rising no faster than a rate of less than -0.40/0.40 hPa.
Rising Slowly means the pressure is rising at a rate of 0.40 to 1.19 hPa.
Rising Rapidly means the pressure is rising at a rate of 1.20 hPa or faster.

The above should improve forecast performance.

The rain override is now set to 30 minutes instead of 15 minutes in case if the rainfall rate is slow.
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 JavaScripts For Cumulus

Post by uncle_bob »

Updated my site and all seems well. Thanks BT.
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Image
dominik810
Posts: 1
Joined: Fri 15 Jun 2012 1:31 pm
Weather Station: WS 1080
Operating System: Windows XP
Location: Radlin, Woj. śląskie, Poland
Contact:

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by dominik810 »

Hi,
I installed the script on my site. My website: http://pogodaradlin.pl. I'm from Poland and I translated a description of the forecast for the Polish language.
bnwrx
Posts: 464
Joined: Wed 25 Feb 2009 12:01 am
Weather Station: Ambient WS2095 (Fine/Offset)
Operating System: Windows 10 64bit
Location: Woodland Park, Colorado USA
Contact:

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by bnwrx »

Updated your script....Running on my site.

Thanks!!
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 JavaScripts For Cumulus

Post by rich27gc »

Updated the script, it correctly forecasted the weather becoming fair and the wind shift from South west to North west. :clap:
Post Reply