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 Sager PHP Script V2 - For Cumulus
Moderator: daj
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: BT's Sager PHP Script V2 - For Cumulus
OK ....
Let's check you haven't got a problem with cURL
Upload this to where your index page is located and give it call and see what happens.
It should do two calls for METAR. 1st 'hard-coded' YSCB, the 2nd using value from bt-sager-cu.php
Something like: http://beteljuice.co.uk/sager/curltest.php (BTW using cu file you posted - no problem)
and the forecast from that file: http://beteljuice.co.uk/sager/sager_test.php
Let's check you haven't got a problem with cURL
Upload this to where your index page is located and give it call and see what happens.
It should do two calls for METAR. 1st 'hard-coded' YSCB, the 2nd using value from bt-sager-cu.php
Something like: http://beteljuice.co.uk/sager/curltest.php (BTW using cu file you posted - no problem)
and the forecast from that file: http://beteljuice.co.uk/sager/sager_test.php
You do not have the required permissions to view the files attached to this post.
Last edited by beteljuice on Mon 18 Mar 2019 10:29 pm, edited 1 time in total.
......................Imagine, what you will KNOW tomorrow !
- kocher
- Posts: 233
- Joined: Sat 19 Apr 2014 7:57 pm
- Weather Station: Davis Vantage Pro2+
- Operating System: Windows 10
- Location: San Sebastian - Spain
- Contact:
Re: BT's Sager PHP Script V2 - For Cumulus
Greetings to all
I thank BetelJuice for publishing their ingenious creations.
I have installed the BT-Sager script, but I can not get it to work.
Here is the link to the file:
http://kocher.es/Sager-Forecast/sager_test.php
Saludos desde San Sebastian
I thank BetelJuice for publishing their ingenious creations.
I have installed the BT-Sager script, but I can not get it to work.
Here is the link to the file:
http://kocher.es/Sager-Forecast/sager_test.php
Saludos desde San Sebastian
- PaulMy
- Posts: 3830
- 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 Sager PHP Script V2 - For Cumulus
Yes, have included both and not made any change recently. The Davis VP2 is now back to display. However, after a bit of investigation I have found I am using the original BT-sager version on komokaweather and Brian's (BCJKiwi) sagerCW version on my Saratoga and am not using the beteljuice V2 version so will post in another thread if needed.@paul
I can't see any evidence they were included in the first place. Have you moved things around recently ?
Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: BT's Sager PHP Script V2 - For Cumulus
@kocher
Hi ....
Interesting, at first glance you seem to have the same problem as uncle_bob ...
Edit: Investigations continue, although I don't think there is anything the beteljuice has changed that would cause this.
Undefined, but then prints the value ??
Edit: Ahh, there should two values o/p !
OK. It's looking like same thing uncle_bob has, but what is it ?
Could you please try the curltest file I posted above ...
Hi ....
Interesting, at first glance you seem to have the same problem as uncle_bob ...
Edit: Investigations continue, although I don't think there is anything the beteljuice has changed that would cause this.
Code: Select all
Notice: Undefined variable: w6 in H:\webspace\hostings\kocher.es\hosting\www\Sager-Forecast\sager_test.php on line 41
w6 = 115°
Notice: Undefined variable: wd in H:\webspace\hostings\kocher.es\hosting\www\Sager-Forecast\sager_test.php on line 42
wd = 0°
Edit: Ahh, there should two values o/p !
OK. It's looking like same thing uncle_bob has, but what is it ?
Could you please try the curltest file I posted above ...
......................Imagine, what you will KNOW tomorrow !
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: BT's Sager PHP Script V2 - For Cumulus
Thank you Kocher - now I am totally confused
... could you and / or uncle_bob please try this replacement file ?
Edit: redundant file removed
... could you and / or uncle_bob please try this replacement file ?
Edit: redundant file removed
Last edited by beteljuice on Tue 19 Mar 2019 4:23 am, edited 2 times in total.
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 505
- Joined: Wed 17 Aug 2011 2:58 pm
- Weather Station: WeatherDuino Pro2
- Operating System: 2008
- Location: Canberra
Re: BT's Sager PHP Script V2 - For Cumulus
Hi BettleJuice,
I installed the new wc file. Still the same issue.
Then I installed the curltest, took a few seconds to come back with this so it looks like it's working...
Sorry to be such a PITA with this, but thanks for the all the help!
I installed the new wc file. Still the same issue.
Then I installed the curltest, took a few seconds to come back with this so it looks like it's working...
Code: Select all
cURL TEST
cURL is installed on this server
Running tests ...
Hard coded YSCB:
HTTP/1.1 200 OK
Date: Tue, 19 Mar 2019 02:19:52 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Last-Modified: Tue, 19 Mar 2019 02:07:17 GMT
ETag: "487aa86-6e-58468f6e938aa"
Accept-Ranges: bytes
Content-Length: 110
Vary: Accept-Encoding
Content-Type: text/plain; charset=UTF-8
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
2019/03/19 02:00 YSCB 190200Z AUTO 11010KT 9999 // SCT035 BKN044 24/14 Q1015 INTER 0400/0500 5000 SHRA BKN020
From bt-sager-cu: YSCB:
HTTP/1.1 200 OK
Date: Tue, 19 Mar 2019 02:19:53 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Last-Modified: Tue, 19 Mar 2019 02:07:17 GMT
ETag: "487aa86-6e-58468f6e938aa"
Accept-Ranges: bytes
Content-Length: 110
Vary: Accept-Encoding
Content-Type: text/plain; charset=UTF-8
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
2019/03/19 02:00 YSCB 190200Z AUTO 11010KT 9999 // SCT035 BKN044 24/14 Q1015 INTER 0400/0500 5000 SHRA BKN020
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Conder, Canberra Weather
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: BT's Sager PHP Script V2 - For Cumulus
@uncle_bob
That's not the new wc file that's running ...
It's the d*mn program that's being a PITA - don't worry ..
That's not the new wc file that's running ...
It's the d*mn program that's being a PITA - don't worry ..
......................Imagine, what you will KNOW tomorrow !
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: BT's Sager PHP Script V2 - For Cumulus
Hmm ... I have a lurking suspicion ...
Try this:
Edit: redundant file removed
Try this:
Edit: redundant file removed
Last edited by beteljuice on Tue 19 Mar 2019 4:38 pm, edited 2 times in total.
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 505
- Joined: Wed 17 Aug 2011 2:58 pm
- Weather Station: WeatherDuino Pro2
- Operating System: 2008
- Location: Canberra
Re: BT's Sager PHP Script V2 - For Cumulus
Yet Another WC file loaded up. Still broken :/
Code view:
Code view:
Code: Select all
<!-- bt-sager-wc loaded -->
<!-- server running PHP ver 5.5.19 -->
<!-- cURL is installed OK -->
<!-- Loading bt-sager-cu > success -->
<!-- Looking for language info -->
<!-- Trying to load bt-sager-en.php -->
<!-- Language file loaded .... -->
<!-- getting METAR for YSCB -->
<!-- METAR FAIL or corrupted [] -->
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Conder, Canberra Weather
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: BT's Sager PHP Script V2 - For Cumulus
This is truly ridiculous - try this one (but this one shouldn't work !)
Edit: redundant file removed
Edit: redundant file removed
Last edited by beteljuice on Tue 19 Mar 2019 4:38 pm, edited 1 time in total.
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 505
- Joined: Wed 17 Aug 2011 2:58 pm
- Weather Station: WeatherDuino Pro2
- Operating System: 2008
- Location: Canberra
Re: BT's Sager PHP Script V2 - For Cumulus
Here's the sauce view
I don't believe it's any thing you've done (or BT for that matter) but something messed up on my system.
BTW, I am commenting out the bottom line of the file, as per the instructions.
Code: Select all
<!-- bt-sager-wc loaded -->
<!-- server running PHP ver 5.5.19 -->
<!-- cURL is installed OK -->
<!-- Loading bt-sager-cu > success -->
<!-- Looking for language info -->
<!-- Trying to load bt-sager-en.php -->
<!-- Language file loaded .... -->
<!-- getting METAR for YSCB -->
<!-- METAR FAIL or corrupted [] -->
<br />
<b>Notice</b>: Undefined variable: pw in <b>D:\xampp\htdocs\cond\bt-sager-wc.php</b> on line <b>769</b><br />
<br />
<b>Notice</b>: Undefined variable: pw in <b>D:\xampp\htdocs\cond\bt-sager-wc.php</b> on line <b>771</b><br />
<br />
<b>Notice</b>: Undefined variable: pw in <b>D:\xampp\htdocs\cond\bt-sager-wc.php</b> on line <b>773</b><br />
<br />
<b>Notice</b>: Undefined variable: pw in <b>D:\xampp\htdocs\cond\bt-sager-wc.php</b> on line <b>775</b><br />
<br />
<b>Notice</b>: Undefined variable: pw in <b>D:\xampp\htdocs\cond\bt-sager-wc.php</b> on line <b>777</b><br />
<br />
<b>Notice</b>: Undefined variable: d4 in <b>D:\xampp\htdocs\cond\bt-sager-wc.php</b> on line <b>782</b><br />
BTW, I am commenting out the bottom line of the file, as per the instructions.
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Conder, Canberra Weather
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: BT's Sager PHP Script V2 - For Cumulus
OK, you've already downloaded it
Here's yet another if that doesn't work, fingers crossed ....
Here's yet another if that doesn't work, fingers crossed ....
You do not have the required permissions to view the files attached to this post.
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 505
- Joined: Wed 17 Aug 2011 2:58 pm
- Weather Station: WeatherDuino Pro2
- Operating System: 2008
- Location: Canberra
Re: BT's Sager PHP Script V2 - For Cumulus
Hey, it's working!!
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Conder, Canberra Weather
-
- Posts: 505
- Joined: Wed 17 Aug 2011 2:58 pm
- Weather Station: WeatherDuino Pro2
- Operating System: 2008
- Location: Canberra
Re: BT's Sager PHP Script V2 - For Cumulus
Sager forecast:
Rain and turning cooler then improvement likely in 24 hours; Storm to Violent Storm (89-117 km/h) South or Southeast winds becoming South or Southwest winds.
BoM forecast:
Shower or two.
Chance of any rain: 60%
Partly cloudy. Medium (60%) chance of showers, becoming less likely later tonight. The chance of a thunderstorm. Light winds.
Sager might be a little extreme, we'll see
Rain and turning cooler then improvement likely in 24 hours; Storm to Violent Storm (89-117 km/h) South or Southeast winds becoming South or Southwest winds.
BoM forecast:
Shower or two.
Chance of any rain: 60%
Partly cloudy. Medium (60%) chance of showers, becoming less likely later tonight. The chance of a thunderstorm. Light winds.
Sager might be a little extreme, we'll see
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Conder, Canberra Weather