Page 5 of 8

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

Posted: Fri 20 Jan 2023 5:14 pm
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.

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

Posted: Fri 20 Jan 2023 5:31 pm
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

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

Posted: Sat 21 Jan 2023 12:19 am
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

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

Posted: Mon 23 Jan 2023 6:23 pm
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

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

Posted: Mon 23 Jan 2023 7:47 pm
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

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

Posted: Mon 23 Jan 2023 8:46 pm
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

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

Posted: Mon 23 Jan 2023 8:56 pm
by PaulMy
You're welcome, and glad you're over that hurdle.

Enjoy,
Paul

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

Posted: Tue 24 Jan 2023 10:20 pm
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

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

Posted: Tue 24 Jan 2023 11:33 pm
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

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

Posted: Wed 25 Jan 2023 12:03 am
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

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

Posted: Wed 25 Jan 2023 12:13 am
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

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

Posted: Sun 05 Feb 2023 2:51 pm
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?

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

Posted: Sun 05 Feb 2023 3:12 pm
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.

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

Posted: Wed 08 Feb 2023 12:39 am
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?

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

Posted: Thu 09 Feb 2023 5:43 pm
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.