Author Topic: WRH NOAA website change .. change URL in advforecast2.php  (Read 1646 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
WRH NOAA website change .. change URL in advforecast2.php
« on: September 30, 2008, 05:20:29 PM »
It appears that the WRH region (www.wrh.noaa.gov) is putting in a 302 redirect for the old point-printable forecast URLS, so the advforecast2.php script is using the Zone forecast instead.

If you're using the WD/AJAX/PHP template (USA), change your Settings.php from
Code: [Select]
$SITE['fcsturlNWS'] = 'http://www.wrh.noaa.gov/forecast/MapClick.php?site=mtr&smap=1&textField1=36.98033&textField2=-122.01274&TextType=2'; to be
Code: [Select]
$SITE['fcsturlNWS'] = 'http://forecast.weather.gov/MapClick.php?site=mtr&smap=1&textField1=36.98033&textField2=-122.01274&TextType=2'; and that should fix the issue.

If you are using the advforecast2.php script with your own site design, then change the $fileName variable in the script in a similar manner (replace 'www.wrh.noaa.gov/forecast' with 'forecast.weather.gov' ) and this fix should work for all the Western Region NOAA website users.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

 

anything