For the life of me I can't remember....

Which file is used to change my forecast choices here…


In the advforecast2.php file…



$NWSforecasts = array(
 // ZONE|Location|point-forecast-URL  (separated by | characters
 
 'INZ005|Elkhart|http://forecast.weather.gov/MapClick.php?site=mtr&smap=1&textField1=41.6868&textField2=-85.9688&TextType=2',
 'INZ003|LaPorte County Indiana|http://forecast.weather.gov/MapClick.php?lat=41.6154423246811&lon=-86.72607421875&site=iwx&smap=1&marine=1&unit=0&lg=en&TextType=2',
 'INZ004|St Joe County Indiana|http://forecast.weather.gov/MapClick.php?lat=41.69855129353962&lon=-86.27975463867188&site=iwx&smap=1&marine=1&unit=0&lg=en&TextType=2',
 'INZ006|LaGrange County Indiana|http://forecast.weather.gov/MapClick.php?lat=41.64007838467894&lon=-85.418701171875&site=iwx&smap=1&marine=1&unit=0&lg=en&TextType=2',
 'INZ007|Steuben County Indiana|http://forecast.weather.gov/MapClick.php?lat=41.644183479397455&lon=-84.9957275390625&site=iwx&smap=1&marine=1&unit=0&lg=en&TextType=2',
 'INZ008|Noble County Indiana|http://forecast.weather.gov/MapClick.php?lat=41.52297326747377&lon=-85.3472900390625&site=iwx&smap=1&marine=1&unit=0&lg=en&TextType=2',
 'INZ009|DeKalb County Indiana|http://forecast.weather.gov/MapClick.php?lat=41.49623534616764&lon=-85.00259399414062&site=iwx&smap=1&marine=1&unit=0&lg=en&TextType=2',
 'INZ012|Starke County Indiana|http://forecast.weather.gov/MapClick.php?lat=41.209655278807034&lon=-86.80023193359375&site=iwx&smap=1&marine=1&unit=0&lg=en&TextType=2',
 'INZ014|Marshall County Indiana|http://forecast.weather.gov/MapClick.php?lat=41.352072144512924&lon=-86.26382449641824&site=iwx&smap=1&unit=0&lg=en&FcstType=text&TextType=2',
 'INZ016|Kosciusko County Indiana|http://forecast.weather.gov/MapClick.php?lat=41.352072144512924&lon=-86.26382449641824&site=iwx&smap=1&unit=0&lg=en&FcstType=text&TextType=2',
 'MIZ077|Berrien County Michigan|http://forecast.weather.gov/MapClick.php?lat=41.951319946796964&lon=-86.517333984375&site=iwx&smap=1&marine=1&unit=0&lg=en&TextType=2',
 'MIZ078|Cass County Michigan|http://forecast.weather.gov/MapClick.php?lat=41.811243575929346&lon=-86.19735717773438&site=iwx&smap=1&marine=1&unit=0&lg=en&TextType=2',
 'MIZ079|St Joe County Michigan|http://forecast.weather.gov/MapClick.php?lat=41.80203073088394&lon=-85.62881469726562&site=iwx&smap=1&marine=1&unit=0&lg=en&TextType=2',
 'MIZ080|Branch County Michigan|http://forecast.weather.gov/MapClick.php?lat=41.87365126992505&lon=-84.98199462890625&site=iwx&smap=1&marine=1&unit=0&lg=en&TextType=2'
); 



Ummm… change it in advforecast2.php ONLY if you’re not using a V2 or V3 template.

If using the templates, the the proper place is in Settings.php

$SITE['NWSforecasts']   = array( // for the advforecast2.php V3.xx version script
// use "Zone|Location|Point-printableURL",  as entries .. first one will be the default forecast.
  "CAZ513|Saratoga|http://forecast.weather.gov/MapClick.php?CityName=Saratoga&state=CA&site=MTR&textField1=37.2639&textField2=-122.022&e=1&TextType=2",
"CAZ513|Los Gatos|http://forecast.weather.gov/MapClick.php?CityName=Los+Gatos&state=CA&site=MTR&textField1=37.2267&textField2=-121.974&e=0&TextType=2",
"CAZ513|Cupertino|http://forecast.weather.gov/MapClick.php?CityName=Cupertino&state=CA&site=MTR&textField1=37.3231&textField2=-122.031&e=0&TextType=2",
"CAZ513|Sunnyvale|http://forecast.weather.gov/MapClick.php?CityName=Sunnyvale&state=CA&site=MTR&textField1=37.3689&textField2=-122.035&e=0&TextType=2",
"CAZ513|Santa Clara|http://forecast.weather.gov/MapClick.php?CityName=Santa+Clara&state=CA&site=MTR&textField1=37.3542&textField2=-121.954&e=0&TextType=2",
"CAZ513|San Jose|http://forecast.weather.gov/MapClick.php?CityName=San+Jose&state=CA&site=MTR&textField1=37.3394&textField2=-121.894&e=0&TextType=2",
"CAZ508|Mountain View|http://forecast.weather.gov/MapClick.php?CityName=Mountain+View&state=CA&site=MTR&textField1=37.3861&textField2=-122.083&TextType=2",
"CAZ529|Santa Cruz|http://forecast.weather.gov/MapClick.php?CityName=Santa+Cruz&state=CA&site=MTR&textField1=36.9742&textField2=-122.03&e=0&TextType=2",
"CAZ006|San Francisco|http://forecast.weather.gov/MapClick.php?CityName=San+Francisco&state=CA&site=MTR&textField1=37.775&textField2=-122.418&e=0&TextType=2",
);

Thanks to all…usually a kick in the a*^ helps!

Thanks for asking… I remembered that I had not updated the Settings.php docs for the Base-USA template with how to do that… docs now updated :slight_smile:

Best regards,
Ken

BTW… Mark was also correct in where to put the multi-forecast info if the script is used OUTSIDE the template set. Configuring it inside Settings.php for template users is better since it allows you to just replace advforecast2.php when an update is issued and not have to worry about recustomizing the script :slight_smile: