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

api.weather.gov format changed again??

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
N0BGS
Posts: 205
Joined: Sat 10 Nov 2012 2:26 am
Weather Station: Davis Vantage Pro 2
Operating System: Win10vm,VMWare ESXi 7.0
Location: Hermon, Maine USA
Contact:

api.weather.gov format changed again??

Post by N0BGS »

Hi All:

Anyone one else having trouble getting the NWS point forecasts?

https://www.kpw3.com/wxforecast.php

Seems to have been broken for several days now.

--Kurt
Blitzortung Station 1809
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: api.weather.gov format changed again??

Post by saratogaWX »

The api hasn’t changed, just the data loading to the api server has become more unreliable.

Download https://Saratoga-weather.org/advforecas ... p?sce=view as advforecast2.php and replace your V5 script with the old (but still working) V4.02 version.
User avatar
N0BGS
Posts: 205
Joined: Sat 10 Nov 2012 2:26 am
Weather Station: Davis Vantage Pro 2
Operating System: Win10vm,VMWare ESXi 7.0
Location: Hermon, Maine USA
Contact:

Re: api.weather.gov format changed again??

Post by N0BGS »

Thanks, Ken but apparently it's unhappy with line 699 in ver 4.02 PHP7 thing perhaps?

"Warning: strpos(): Offset not contained in string in /var/www/html/advforecast2.php on line 699"

Line 699:

Code: Select all

$start = strpos($html, '<td colspan="2" valign="top" align="left">',$startgrab+1); // need second one
--K
Blitzortung Station 1809
User avatar
N0BGS
Posts: 205
Joined: Sat 10 Nov 2012 2:26 am
Weather Station: Davis Vantage Pro 2
Operating System: Win10vm,VMWare ESXi 7.0
Location: Hermon, Maine USA
Contact:

Re: api.weather.gov format changed again??

Post by N0BGS »

OK, my mistake. :roll:

The script is making HTTP calls from my SSL-enabled site. I changed the appropriate lines in the script from http to https and all seems to be well.

Thanks again.

--Kurt
Blitzortung Station 1809
Post Reply