Author Topic: wxforecast.php question  (Read 1304 times)

0 Members and 1 Guest are viewing this topic.

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
wxforecast.php question
« on: March 03, 2013, 07:28:00 PM »
How do you get a select your location search box in wxforecast.php? Here is mine.

http://hayskansasweather.com/wxforecast.php




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Offline Dr Obbins

  • Forecaster
  • *****
  • Posts: 1152
Re: wxforecast.php question
« Reply #1 on: March 03, 2013, 07:38:53 PM »
In the "Settings.php" around line 176, look for this.

Code: [Select]
$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.

"kyz074|Barren County, Kentucky|http://forecast.weather.gov/MapClick.php?CityName=Glasgow&state=KY&site=LMK&textField1=36.9991&textField2=-85.9215&e=0&TextType=2",
"kyz077|Adair County, Kentucky|http://forecast.weather.gov/MapClick.php?CityName=Columbia&state=KY&site=LMK&textField1=37.098&textField2=-85.3081&e=0&TextType=2",
);
Just add your county codes and forecast URL. I have 17 different counties, but shortened it to save space here.
« Last Edit: March 03, 2013, 07:41:09 PM by Dr Obbins »

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: wxforecast.php question
« Reply #2 on: March 03, 2013, 07:54:49 PM »
I will give this a try. Thanks.




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wxforecast.php question
« Reply #3 on: March 03, 2013, 08:42:52 PM »
Don't forget to change the

/*

just above the line
$SITE['NWSforecasts']   = array( // for the advforecast2.php V3.xx version script

to

//*

so the code will no longer be in a comment (and thus be executed)

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

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: wxforecast.php question
« Reply #4 on: March 03, 2013, 09:41:16 PM »




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: wxforecast.php question
« Reply #5 on: April 14, 2014, 08:20:37 PM »
Trying to get this working on the Colorado Springs site but having an issue. The site is http://cospringsweather.com/


EDIT... I figured it out. 8-)
« Last Edit: April 14, 2014, 08:29:40 PM by cospringswx »




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera