Welcome to the new home of the Cumulus Support forum.

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

Post Reply
User avatar
Buford T. Justice
Posts: 385
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2902A
Operating System: Windows 10 Pro 64-bit
Location: USA

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

Post by Buford T. Justice » Thu Jun 06, 2013 11:30 pm

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 Jul 12, 2014 7:08 pm, edited 36 times in total.

User avatar
Buford T. Justice
Posts: 385
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2902A
Operating System: Windows 10 Pro 64-bit
Location: USA

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by Buford T. Justice » Fri Jun 07, 2013 12:15 pm

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: 182
Joined: Sun Jan 13, 2013 8:04 pm
Weather Station: WeatherDuino Pro2
Operating System: Windows 7
Location: Cercal CDV - Portugal

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by Werk_AG » Fri Jun 07, 2013 9:52 pm

Updated, and working!
Image

User avatar
Buford T. Justice
Posts: 385
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2902A
Operating System: Windows 10 Pro 64-bit
Location: USA

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by Buford T. Justice » Sat Jun 08, 2013 4:33 am

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 Jun 09, 2013 2:30 am, edited 2 times in total.

uncle_bob
Posts: 474
Joined: Wed Aug 17, 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 » Sat Jun 08, 2013 11:20 pm

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: 474
Joined: Wed Aug 17, 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 » Sat Jun 08, 2013 11:33 pm

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: 385
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2902A
Operating System: Windows 10 Pro 64-bit
Location: USA

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by Buford T. Justice » Sun Jun 09, 2013 12:21 am

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: 385
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2902A
Operating System: Windows 10 Pro 64-bit
Location: USA

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by Buford T. Justice » Thu Jun 13, 2013 6:30 am

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: 113
Joined: Thu Nov 15, 2012 5:42 pm
Weather Station: Fine Offset WH 2080, TFA Spring
Operating System: XP SP3
Location: Niesiolowice, Northern Poland
Contact:

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by pernaczy » Fri Jun 14, 2013 5:32 pm

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 anything is not the lost one.

Image

User avatar
Buford T. Justice
Posts: 385
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2902A
Operating System: Windows 10 Pro 64-bit
Location: USA

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by Buford T. Justice » Fri Jun 14, 2013 6:51 pm

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: 385
Joined: Fri Aug 17, 2012 9:21 pm
Weather Station: Ambient Weather WS-2902A
Operating System: Windows 10 Pro 64-bit
Location: USA

Re: BT's Global Sager Weathercaster JavaScripts For Cumulus

Post by Buford T. Justice » Fri Jun 21, 2013 6:15 pm

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: 474
Joined: Wed Aug 17, 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 » Fri Jun 21, 2013 11:46 pm

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 Jun 15, 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 » Sun Jun 23, 2013 12:26 pm

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: 457
Joined: Wed Feb 25, 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 » Sun Jun 23, 2013 1:28 pm

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

Thanks!!

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

Post by rich27gc » Sun Jun 23, 2013 1:58 pm

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

Post Reply