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 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Moderator: daj
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus
Wouldn't str_replace() work instead of mb_ereg_replace()?
Steve
- 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
There was a reason to use mb_ereg_replace instead, but I cannot remember what it was.
-
- Posts: 24
- Joined: Mon 23 Jan 2012 9:14 am
- Weather Station: Davis Vantage Vue, Ecowitt WS90
- Operating System: Windows 10
- Location: High Wych, Herts
- Contact:
Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus
Made the changes but it still does not show any text. Will have another try later.Buford T. Justice wrote:@steve
Can I put in a feature request for <#RCpresstrendval>
@JTS
Open bt-sager-cu.php in your Cumulus web folder and...
CHANGE:TO:Code: Select all
$bp = mb_ereg_replace (",",".","<#press>"); $bt = mb_ereg_replace (",",".","<#presstrendval>");
Save the file then wait for Cumulus to perform a web update.Code: Select all
$bp = str_replace (",",".","<#press>"); $bt = str_replace (",",".","<#presstrendval>");
Neil
-
- Posts: 24
- Joined: Mon 23 Jan 2012 9:14 am
- Weather Station: Davis Vantage Vue, Ecowitt WS90
- Operating System: Windows 10
- Location: High Wych, Herts
- Contact:
Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus
Well after an hour of looking at this again, I still cant work it out. I have loaded the amends that were suggested but still dont have any text.
Thanks for taking the time to help, I'll try and find time to look again next weekend.
Neil
Thanks for taking the time to help, I'll try and find time to look again next weekend.
Neil
- Buford T. Justice
- Posts: 423
- Joined: Fri 17 Aug 2012 9:21 pm
- Weather Station: Ecowitt GW1002
- Operating System: Windows 11 Pro
- Location: USA
- 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
I have a test version of bt-sager-cu.php which may fix the issue I will PM to you.
-
- Posts: 3
- Joined: Sun 12 Jan 2014 1:57 pm
- Weather Station: Fine Offset WG 1081
- Operating System: Windows 7
- Location: Huddersfield
Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus
Hi,
very new to all thid not sure what I am doing wrong but I get a series of warnings about being unable to get file for the metar data text file;
Interestingly our local airport Leeds Bradford doesn't appear in the NOAA pages
Kind regards
very new to all thid not sure what I am doing wrong but I get a series of warnings about being unable to get file for the metar data text file;
Interestingly our local airport Leeds Bradford doesn't appear in the NOAA pages
Kind regards
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus
Leeds Bradford is EGNM: http://weather.noaa.gov/pub/data/observ ... s/EGNM.TXTStuart5646 wrote:Interestingly our local airport Leeds Bradford doesn't appear in the NOAA pages
Steve
- 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
What's your weather website address? Also make sure you are using the right one as steve pointed out.Stuart5646 wrote:Hi,
very new to all thid not sure what I am doing wrong but I get a series of warnings about being unable to get file for the metar data text file;
Interestingly our local airport Leeds Bradford doesn't appear in the NOAA pages
Kind regards
- 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
A new version will be released tomorrow. For you guys who have file_get_contents blocked by your web server hosts, I am converting over to cURL. You will have to make sure your web server host supports both PHP and cURL.
-
- Posts: 3
- Joined: Sun 12 Jan 2014 1:57 pm
- Weather Station: Fine Offset WG 1081
- Operating System: Windows 7
- Location: Huddersfield
Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus
Thanks Steve,steve wrote:Leeds Bradford is EGNM: http://weather.noaa.gov/pub/data/observ ... s/EGNM.TXTStuart5646 wrote:Interestingly our local airport Leeds Bradford doesn't appear in the NOAA pages
When I put EGNM in on the script is said no file, so I went to the directory on the http://weather.noaa.gov/pub/data/observ ... r/stations and couldn't find it there so tried EGNJ as next best but got the "get file error" as below
You do not have the required permissions to view the files attached to this post.
- joewith
- Posts: 29
- Joined: Fri 18 May 2012 4:33 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 10 Pro
- Location: Aurora, Colorado, USA
- Contact:
Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus
Hi BT,
Well, have been running the new Weathercaster and wanted to let you know it appears to be running quite well and is fairly accurate. I even received my first forecast for snow this morning.
Forecast:
Snow or showers followed by improvement early in period (within 6 hours); No important change. Some tendency for slight increase in winds during day, diminishing in evening. Shifting (or variable) winds.
And guess what it is currently snowing!
Well, have been running the new Weathercaster and wanted to let you know it appears to be running quite well and is fairly accurate. I even received my first forecast for snow this morning.
Forecast:
Snow or showers followed by improvement early in period (within 6 hours); No important change. Some tendency for slight increase in winds during day, diminishing in evening. Shifting (or variable) winds.
And guess what it is currently snowing!
- PaulMy
- Posts: 3848
- 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
Congratulations Joe. I haven't had the "snow" forecast yet since BT updated the script, but that could change over the next days.
Paul
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
- studebaker
- Posts: 91
- Joined: Mon 14 Feb 2011 6:27 pm
- Weather Station: National Geographic 265NC
- Operating System: Windows 10
- Location: Kemptville, On, Canada
- Contact:
Re: BT's Global Sager Weathercaster PHP Scripts For Cumulus
BT - thanks for the great update. Environment Canada is forecasting snow for this area later tomorrow (Jan 15). I'm anxious to see it show up on the BT forecast.
- 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
Thanks guys!
BT's Global Sager Weathercaster PHP Scripts For Cumulus have been updated. A few needed changes and improvements have been made. If you were running a version prior to version 2014-01-11, you will need to go through the directions entirely. For those of you running 2014-01-11, here is how to easily upgrade to the 2014-01-14 version:
Download the attachment in the first post. Extract the files to the Cumulus web folder. Open bt-sager-cu.php. Change the XXXX on Line 14 to the METAR station ID you want to use. Save the file. If you are using PHP webpages, open bt-sager-wc.php and scroll all the way down to the bottom if it. Add // and a space in front of Line 6144. Save the file. Upload all three files once to your web server. Wait for Cumulus to perform a web update in order to see the forecast.
Changes...
2014-01-14
A few people were having issues with their web server hosts blocking PHP's file_get_contents which was needed by the PHP Scripts to get METAR data. I have changed this to cURL which seems to be turned on usually (at least more so than file_get_contents). If your web server host doesn't have cURL, you can ask for it to be turned on for your account or I can give you the code to change cURL back over to file_get_contents if the previous version of these PHP Scripts worked for you.
I decided to take BCJKiwi's advice and have defaults set for $m2 and $m3. The PHP Scripts should now not report any errors in XAMPP after the METAR station ID is entered in and Cumulus updates bt-sager-cu.php.
I fixed an issue with changing commas to decimal points.
A few other tweaks to the PHP Scripts have been made.
BT's Global Sager Weathercaster PHP Scripts For Cumulus have been updated. A few needed changes and improvements have been made. If you were running a version prior to version 2014-01-11, you will need to go through the directions entirely. For those of you running 2014-01-11, here is how to easily upgrade to the 2014-01-14 version:
Download the attachment in the first post. Extract the files to the Cumulus web folder. Open bt-sager-cu.php. Change the XXXX on Line 14 to the METAR station ID you want to use. Save the file. If you are using PHP webpages, open bt-sager-wc.php and scroll all the way down to the bottom if it. Add // and a space in front of Line 6144. Save the file. Upload all three files once to your web server. Wait for Cumulus to perform a web update in order to see the forecast.
Changes...
2014-01-14
A few people were having issues with their web server hosts blocking PHP's file_get_contents which was needed by the PHP Scripts to get METAR data. I have changed this to cURL which seems to be turned on usually (at least more so than file_get_contents). If your web server host doesn't have cURL, you can ask for it to be turned on for your account or I can give you the code to change cURL back over to file_get_contents if the previous version of these PHP Scripts worked for you.
I decided to take BCJKiwi's advice and have defaults set for $m2 and $m3. The PHP Scripts should now not report any errors in XAMPP after the METAR station ID is entered in and Cumulus updates bt-sager-cu.php.
I fixed an issue with changing commas to decimal points.
A few other tweaks to the PHP Scripts have been made.
Last edited by Buford T. Justice on Sun 19 Jan 2014 2:22 am, edited 1 time in total.