Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

water01
Posts: 3293
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by water01 »

As a matter of interest your server has got PHP installed? This script is a PHP script running on the server end and you are getting an 500 Internal Server error which points to PHP not being available.
David
Image
TheBridge
Posts: 118
Joined: Mon 16 Mar 2020 3:23 am
Weather Station: Davis
Operating System: Windows 10
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by TheBridge »

Thanks David,
This is interesting certainly. The host provider** previously said “ We are currently running PHP version 8.1.14 and cURL should be enabled by default. ” when I inquired them based on BT’s prerequisites on his instructions. Do we need a specific PHP version? I shall go back and pursue them further!
Best,
Bridge

** the host provider is a professional hosting and IT services company
water01
Posts: 3293
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by water01 »

Then it should work fine.

Just noticed there are two topics in this forum about the Forecast. Iam using the source and instructions from this Topic viewtopic.php?p=81348#p81348
David
Image
TheBridge
Posts: 118
Joined: Mon 16 Mar 2020 3:23 am
Weather Station: Davis
Operating System: Windows 10
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by TheBridge »

Yikes…
The forecast still does not show up on my home page.
In the past 3-days I have tried the many, many suggestions in this thread from those who have had the same issue.
It did remove ‘file not found’ issues that Water01 (David) found earlier when he checked my site using (I believe) browser’s /inspect/console utility.
I did numerous configurations of .htaccess including Mark’s PHP>JS in index.htm and .htaccess rewrite idea (which I liked).

At this point I may be staring too close and overlooking something very obvious. If you look at the site and see such a thing please point them out and I’ll try suggestions you may have.

Climate.tommueller.com

Thx,
Bridge
User avatar
PaulMy
Posts: 3875
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

Post by PaulMy »

Hi,
Your forecast script is displaying so on the right track https://climate.tommueller.com/bt-sager.php
In one of my sites http://www.komokaweather.com/ I have the following code in my index.php to display the forecast

Code: Select all

			<!-- BT Sager Forecaster v.2014-01-31 -->
			<p><b>Sager 12-24 Hour Forecast:</b>
				<a href = "bt-sager.php" style = "text-decoration:none;" target = "_blank"><script src = "bt-sager-wc.php" type="text/javascript"></script></a></p>
			 <!-- End of BT-Sager Forecaster -->
And another http://www.komokaweather.com/komokaweather-ca/index.php

Code: Select all

			
		<!-- SagerCW -->
		<br />
				<p style = "line-height : 1.3"><b>Sager forecast:</b>&nbsp;<font color = "#CCFF99"><?php include_once('sagerCW.php'); ?></font></p>
		<!-- end of SagerCW -->
Hope this is helpful.

Enjoy,
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
Image
TheBridge
Posts: 118
Joined: Mon 16 Mar 2020 3:23 am
Weather Station: Davis
Operating System: Windows 10
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by TheBridge »

Paul,
I tried 101 suggestions and combinations of suggestions. Yours was the 101…and it worked! THANK YOU.

Forecast is wrong but that I will wrestle with that next! Actual NWS forecast (using ‘KLAX’ coincidentally in bt-sager-cu file as that is where I am) is far different from our area:

Actual local forecast for next 48-hours..NO rain!
This Afternoon
Sunny, with a high near 66. Breezy, with a northwest wind 15 to 20 mph, with gusts as high as 25 mph.
Tonight
Clear, with a low around 39. Wind chill values as low as 30. Breezy, with a northeast wind 10 to 20 mph, with gusts as high as 25 mph.
Tuesday
Sunny, with a high near 67. Wind chill values as low as 30 early. North wind 10 to 15 mph, with gusts as high as 20 mph.

Thank you, thank you!
Bridge
User avatar
PaulMy
Posts: 3875
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

Post by PaulMy »

You're welcome, and glad you're over that hurdle.

Enjoy,
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
Image
TheBridge
Posts: 118
Joined: Mon 16 Mar 2020 3:23 am
Weather Station: Davis
Operating System: Windows 10
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by TheBridge »

Paul,
Thanks again for making the forecast text appear.

Hmmm…Same forecast for a good while now so not sure if it is actually updating. It says ‘fair’ although I would have thought it to say ‘sunny’ given the clear blue skies we have going currently.

- ICAO is correct “KOXR”. Oxnard California
- The bt-sager-cu.PHP is updating on PC (as evidenced by time stamp on -cu.PHPTMP file) and same time stamp on -cu.PHP on server.

Climate.tommueller.com

Bridge
TheBridge
Posts: 118
Joined: Mon 16 Mar 2020 3:23 am
Weather Station: Davis
Operating System: Windows 10
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by TheBridge »

Hi beteljuice,
I placed your curltest.php on my server site. Thank you for creating this test.
https://climate.tommueller.com/curltest.php
Better tools for better results!

Bridge
User avatar
PaulMy
Posts: 3875
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

Post by PaulMy »

Hi,
The beteljuice has not visited here for over a year and it is generally understood that he has passed on. A big loss to the community here at Cumulus Forum, but his scripts carry on. B.T.J. would be your best bet for assistance.

Enjoy,
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
Image
TheBridge
Posts: 118
Joined: Mon 16 Mar 2020 3:23 am
Weather Station: Davis
Operating System: Windows 10
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by TheBridge »

Thanks Paul for this update.
I have appreciated several comments and inputs over the years. Contributions such as his and others is why this forum is a nice warm place by the fire!
Best regards,
Bridge
TheBridge
Posts: 118
Joined: Mon 16 Mar 2020 3:23 am
Weather Station: Davis
Operating System: Windows 10
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by TheBridge »

With all BT-SAGER in place and running fine for a while, it seems to consistently overstate the force/speed of the forecasted winds. Often saying things like ‘Strong Breeze to Near Gale (25-38 mph)’ when there has been light of no real wind to speak of.
Any see same in your SAGER forecasts?
TheBridge
Posts: 118
Joined: Mon 16 Mar 2020 3:23 am
Weather Station: Davis
Operating System: Windows 10
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by TheBridge »

I should also add to my post above that the local METAR and airport (KOXR Oxnard, California) also does not forecast high winds such as the SAGER forecasts.
TheBridge
Posts: 118
Joined: Mon 16 Mar 2020 3:23 am
Weather Station: Davis
Operating System: Windows 10
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by TheBridge »

Can the Sager forecast txt be feed into (in place of) the scrolling forecast text window at the top of the gauges webpage?
User avatar
mcrossley
Posts: 12898
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: BT's Sager PHP Script V2 - For Cumulus

Post by mcrossley »

TheBridge wrote: Wed 08 Feb 2023 12:39 am Can the Sager forecast txt be feed into (in place of) the scrolling forecast text window at the top of the gauges webpage?
Off the top of my head, save the output of the script to a file called "currentconditions.txt" in the root CMX folder.

You can then pull the contents of that file using the <#currtcond> web tag inthe realtimegaugesT.txt file instead of the forecast tag.
Post Reply