WXforum.net
May 21, 2013, 09:43:34 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6617  •  Posts: 178523  •  Topics: 18115
Please welcome TheMOX, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: 1 [2] 3   Go Down
  Print  
Author Topic: NWS website change.. advforecast2.php update in process...  (Read 1730 times)
0 Members and 1 Guest are viewing this topic.
DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2716


SCCA EM #156


WWW
« Reply #25 on: July 02, 2012, 08:43:41 PM »

I know Ken will get it right... he always does.

Don't know where we'd all be without you Ken!
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

ALITTLEweird1
Mark
Forecaster
*****
Offline Offline

Posts: 402



WWW
« Reply #26 on: July 02, 2012, 08:50:46 PM »

Thanks Ken for all of your hard work.... Works like a charm now.

http://www.snoqualmieweather.com/wxforecast.php
Logged

"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + 1-wire Lightning + 1-Wire UV + Logitech Quickcam Pro 9000
ctccbc
Senior Contributor
****
Offline Offline

Posts: 151

Acurite 01035, Weather Display


WWW
« Reply #27 on: July 02, 2012, 08:52:09 PM »

Mark,
Did he post the updated script somewhere?

Chris
Logged

ALITTLEweird1
Mark
Forecaster
*****
Offline Offline

Posts: 402



WWW
« Reply #28 on: July 02, 2012, 08:52:57 PM »

Its on his site v3.03
Logged

"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + 1-wire Lightning + 1-Wire UV + Logitech Quickcam Pro 9000
ALITTLEweird1
Mark
Forecaster
*****
Offline Offline

Posts: 402



WWW
« Reply #29 on: July 02, 2012, 08:53:51 PM »

http://saratoga-weather.org/advforecast2.php?sce=view
Logged

"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + 1-wire Lightning + 1-Wire UV + Logitech Quickcam Pro 9000
DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2716


SCCA EM #156


WWW
« Reply #30 on: July 02, 2012, 08:55:15 PM »

What are the changes though? My scripts are kinda custom and I don't want to replace the entire file, just the sections that need updating.
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

ccweather
Member
*
Offline Offline

Posts: 48



WWW
« Reply #31 on: July 02, 2012, 08:56:34 PM »

THANKS KEN!!!
Works like a champ!!!
Logged

Mark... (ccweather)
http://www.charlottecountyweather.com
WU: KFLPORTC25
ALITTLEweird1
Mark
Forecaster
*****
Offline Offline

Posts: 402



WWW
« Reply #32 on: July 02, 2012, 08:56:42 PM »

I just replaced my long and lat link in the settings area, and zone and it worked for me.
Logged

"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + 1-wire Lightning + 1-Wire UV + Logitech Quickcam Pro 9000
DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2716


SCCA EM #156


WWW
« Reply #33 on: July 02, 2012, 09:01:09 PM »

I don't see any difference between what I have and the new script.
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

sacreyweather
John Sacrey - VP2 Pro
Forecaster
*****
Offline Offline

Posts: 404


Saline Weather


WWW
« Reply #34 on: July 02, 2012, 09:02:40 PM »

Thank you Ken!!!  Works like a champ!!!

John
Logged

CWOP: D2073, GR2AE, GR3, WD, PWS/weatherforyou.com, WxWeb,
CoCoRaHS: AR-SL-16, Weatherbug Station No. 25826
Saline Weather
Saline Weather on Twitter
n3ouc
Contributor
***
Offline Offline

Posts: 105



WWW
« Reply #35 on: July 02, 2012, 09:02:49 PM »

I dunno what he did but the new script is now working 100% here!    Applause

Mike
Logged

Mike Stanton
Air Products Campus Weather
hayskswx
Forecaster
*****
Offline Offline

Posts: 1595



WWW
« Reply #36 on: July 02, 2012, 09:03:24 PM »

I just replaced my long and lat link in the settings area, and zone and it worked for me.

Lat and Long where at?
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2716


SCCA EM #156


WWW
« Reply #37 on: July 02, 2012, 09:04:02 PM »

Well... I'll have to wait to talk with Ken. I can't just wholesale replace my code or I'll spend hours of reformatting.
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

gwwilk
Southeast Lincoln Weather
Forecaster
*****
Offline Offline

Posts: 509



WWW
« Reply #38 on: July 02, 2012, 09:04:48 PM »

I just copied my settings from the old advforecast2.php script into the new one, and voila, it' good again.

Thanks, Ken!  We would be lost without you.
Logged

n3ouc
Contributor
***
Offline Offline

Posts: 105



WWW
« Reply #39 on: July 02, 2012, 09:05:17 PM »

You only have to set long & lat if you are running it stand alone. If you are using the ajax scripts from Ken, the settings.php takes care of that.

Mike
Logged

Mike Stanton
Air Products Campus Weather
gwwilk
Southeast Lincoln Weather
Forecaster
*****
Offline Offline

Posts: 509



WWW
« Reply #40 on: July 02, 2012, 09:06:48 PM »

Well... I'll have to wait to talk with Ken. I can't just wholesale replace my code or I'll spend hours of reformatting.

Do you have 'DiffMerge'?  This excellent file comparator will show you exactly where the changes are.  If you know your changes, how they work, and how they might be affected by the new code, you should be able to get your scripts up and running again.  I've found this program to be indispensable when dealing with changes in scripts.
« Last Edit: July 02, 2012, 09:09:40 PM by gwwilk » Logged

DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2716


SCCA EM #156


WWW
« Reply #41 on: July 02, 2012, 09:10:30 PM »

Can't really do that. The script is embedded in my pages, not called separately.
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

ctccbc
Senior Contributor
****
Offline Offline

Posts: 151

Acurite 01035, Weather Display


WWW
« Reply #42 on: July 02, 2012, 09:13:12 PM »

Works great here now! Anyone got a fix for the marine forecast script?

Thanks,
Chris
moreheadcityweather.com
Logged

gwwilk
Southeast Lincoln Weather
Forecaster
*****
Offline Offline

Posts: 509



WWW
« Reply #43 on: July 02, 2012, 09:13:20 PM »

Can't really do that. The script is embedded in my pages, not called separately.

Sounds like a chore ahead.  You could still compare them with this program, which would identify the common areas while highlighting the differences, and pinpoint the changes.  I wouldn't say it's out of the question.
Logged

DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2716


SCCA EM #156


WWW
« Reply #44 on: July 02, 2012, 09:14:24 PM »

But all the code on the page that's not a part of the script would be shown.

I waited this long... I guess I can wait a little longer.
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

gwwilk
Southeast Lincoln Weather
Forecaster
*****
Offline Offline

Posts: 509



WWW
« Reply #45 on: July 02, 2012, 09:17:17 PM »

But all the code on the page that's not a part of the script would be shown.

I waited this long... I guess I can wait a little longer.

You would have large splotches of red indicating unmatched code, but I've never automatically merged with the program, always manually while comparing and analyzing the changes.  The white areas would be those in common, and that's where your interest would lie.  It couldn't hurt to give it a whirl, and it could save you lots of time.
« Last Edit: July 02, 2012, 09:20:53 PM by gwwilk » Logged

Moose Whisperer
Senior Contributor
****
Offline Offline

Posts: 210



WWW
« Reply #46 on: July 02, 2012, 09:18:49 PM »

You only have to set long & lat if you are running it stand alone. If you are using the ajax scripts from Ken, the settings.php takes care of that.

Mike

Yep, the global variables in Settings.php override the local ones in the script. Just copy the new version over the old file and presto...everything works!

THANKS KEN!  Applause
Logged

hayskswx
Forecaster
*****
Offline Offline

Posts: 1595



WWW
« Reply #47 on: July 02, 2012, 09:19:32 PM »

Mine is displaying Kens forecast. Do I have to change the settings.php file as well? I changed to my warning  zone and the long and lat?
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2716


SCCA EM #156


WWW
« Reply #48 on: July 02, 2012, 09:22:04 PM »

i see this code several times in the new one that I don't have


$startgrab = strpos($html, '<td colspan="2" valign="top" align="left">');
$start = strpos($html, '<td colspan="2" valign="top" align="left">',$startgrab+1); // need second one
$finish = strpos($html, '<hr><br>',$start);
$length = $finish-$start;
$forecast = substr($html, $start, $length);
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

gwwilk
Southeast Lincoln Weather
Forecaster
*****
Offline Offline

Posts: 509



WWW
« Reply #49 on: July 02, 2012, 09:23:08 PM »

Mine is displaying Kens forecast. Do I have to change the settings.php file as well? I changed to my warning  zone and the long and lat?

There are about 6 lines of settings that need to be copied over from your old advforecast2.php.  Just look at a backup copy, grab those lines, and paste them into the new script.
Logged

Pages: 1 [2] 3   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.096 seconds with 19 queries.
anything