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 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

wxforecast.php doesn't work

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

wxforecast.php doesn't work

Post by aznetcowboy »

I seem to remember that there is some change to the wxforecast.php forecasts script that for a number of reasons I won't go into here that I wasn't able to follow up on updating. Now after all this time, I forget what was required to get it working again. :oops:

There are so many references to wxforecast.php when doing a search, I gave up trying to figure our what I need to do to get it working again. I'm appreciative of any assistance to get this working again.
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: wxforecast.php doesn't work

Post by saratogaWX »

Running check-fetch-times.php?show=versions on your site shows you have a few scripts to update, including advforecast2.php (the forecast script).

Use the update tool to get the scripts you need and update your site.. then all should be well :)

Best regards,
Ken
User avatar
ConligWX
Posts: 1571
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: wxforecast.php doesn't work

Post by ConligWX »

saratogaWX wrote:Running check-fetch-times.php?show=versions on your site shows you have a few scripts to update, including advforecast2.php (the forecast script).

Use the update tool to get the scripts you need and update your site.. then all should be well :)

Best regards,
Ken
haha, how did I miss this? thanks for the tip!
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: wxforecast.php doesn't work

Post by aznetcowboy »

saratogaWX wrote:Running check-fetch-times.php?show=versions on your site shows you have a few scripts to update, including advforecast2.php (the forecast script).

Use the update tool to get the scripts you need and update your site.. then all should be well :)

Best regards,
Ken
I have just completed updating all the files that the Check-fetch-times.php indicated were out of date. It now shows every thing as current. However, my forecasts still do not show up. But, if I click on the line that says "Forecast from NOAA-NWS for . " I get the forecast. I am not sure what I missed in the update, but I don't get the forecasts for Arizona. :bash:

One positive thing, the Alerts seem to be working okay now. :)
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: wxforecast.php doesn't work

Post by saratogaWX »

You haven't uploaded the newer advforecast2.php.

Running check-fetch-times.php?show=versions on your site shows you're running 3.12 of the script. It needs to be V4.02 to work correctly. You just need to upload V4.02 of adforecast2.php to have your forecast work again. The DualImage function seems to work fine, and the rest of the key scripts on your site are at current release levels.
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: wxforecast.php doesn't work

Post by aznetcowboy »

saratogaWX wrote:You haven't uploaded the newer advforecast2.php.

Running check-fetch-times.php?show=versions on your site shows you're running 3.12 of the script. It needs to be V4.02 to work correctly. You just need to upload V4.02 of adforecast2.php to have your forecast work again. The DualImage function seems to work fine, and the rest of the key scripts on your site are at current release levels.
Oh man... I'm not sure what I did here, but I could have sworn the adforecast2.php was version 4.02. I really blew it this time. :groan:

Thanks for your assistance and patience in dealing with this ID10T. :oops:
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: wxforecast.php doesn't work

Post by aznetcowboy »

aznetcowboy wrote:
saratogaWX wrote:You haven't uploaded the newer advforecast2.php.

Running check-fetch-times.php?show=versions on your site shows you're running 3.12 of the script. It needs to be V4.02 to work correctly. You just need to upload V4.02 of adforecast2.php to have your forecast work again. The DualImage function seems to work fine, and the rest of the key scripts on your site are at current release levels.
Oh man... I'm not sure what I did here, but I could have sworn the adforecast2.php was version 4.02. I really blew it this time. :groan:

Thanks for your assistance and patience in dealing with this ID10T. :oops:
I was correct. I had v4.02 uploaded, and after a bit it reverts back to v3.12. Any ideas what is going on here? What should the file permissions be? They are set to 644.
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: wxforecast.php doesn't work

Post by saratogaWX »

The advforecast2.php script never modifies itself..it has to be manually FTPed to your site. If it is being overwritten with a prior version, it could be a server backup/restore snafu, or some server-side caching in effect.
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: wxforecast.php doesn't work (UPDATE)

Post by aznetcowboy »

saratogaWX wrote:The advforecast2.php script never modifies itself..it has to be manually FTPed to your site. If it is being overwritten with a prior version, it could be a server backup/restore snafu, or some server-side caching in effect.
This is crazy! I don't have a version 3.12 anywhere that I can find. I can copy 4.02 to the domain sever and within seconds it is back to version 3.12. If it was something in the code, then I would expect this to be happening to people other than just me and it isn't. I am not even using any FTP utility to upload it just to make sure that isn't the problem.

I am totally baffled about what is going on here. Hopefully someone can come up with an idea. My ISP can't explain it either.


Ignore the above statement. I think it is now resolved. My ISP sent me the following: "I looked at the log, and your machine is uploading the file (STOR) as advforecast2.phptmp and then renaming (RNFR/RNTO) the file every time it connects every 5 minutes:". Is the advforecast2.php supposed to be re-uploaded every five minutes?
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: wxforecast.php doesn't work

Post by saratogaWX »

Umm.. No, it is uploaded once. Sounds like your Cumulus settings are trying to upload it as a cumulus template. Turn that setting in cumulus off, and manually upload v4.02 advforecast2.php once.
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: wxforecast.php doesn't work

Post by aznetcowboy »

My forecast tool (http://www.elgheko.us/wxforecast.php) has again stopped working. My ISP has informed me that he has upgraded the PHP he uses to version Php 7.0.28 and that version 5.6 is no longer available. Could this be the problem?
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: wxforecast.php doesn't work

Post by saratogaWX »

No, the issue is your advforecast2.php (multi) - V4.02 - 07-Nov-2015 -- You need to use V4.03 after the end of February, 2018 when the NWS forced all accesses to *.weather.gov to https. The V4.02 and earlier could not do https (only http).

Download the update from the script page and your forecast should be back.

You may have to do a wxforecast.php?force=1 after installation of the updated script to refresh the cache file.
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: wxforecast.php doesn't work

Post by aznetcowboy »

Thanks Ken! It is now working okay. I really appreciate the help!
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: wxforecast.php doesn't work

Post by aznetcowboy »

I was gone to Wisconsin from Mid-May until June 6. I came home to having the wxforecast giving me the following error:

The detailed point forecast weather data is not currently available.
The zone forecast data for AZZ504 (Tucson Metro Area including Tucson/Green Valley/Marana/Vail) will be displayed
until the point forecast data is again available.


A friend of mine who works at the National Weather Service office in Tucson said when he tried his link it was fine. So I extracted the "http://forecast.weather.gov/MapClick.ph ... TextType=2" from the Settings file code (below) and tried it and it works.

"AZZ504|El Gheko Neighborhood, Tucson, AZ|http://forecast.weather.gov/MapClick.ph ... TextType=2"

Has something changed in the forecasting script? :?
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: wxforecast.php doesn't work

Post by saratogaWX »

Looking at http://www.elgheko.us/check-fetch-times ... w=versions shows you downlevel on multiple scripts, including advforecast2.php V5.09 which fixes that issue :)
Post Reply