Page 1 of 1

Weather Script Problems?

Posted: Sun May 11, 2008 9:26 am
by Steve Horn
Any else running the weather script, that polls for conditions and forecast data from Weather.com? Mine stopped working last week, and now only occasionally updates (receives) a revised radar image, but no forecast data. The VBS error message reports this line:
SetPropertyValue "Weather.W_cc_lsup", MSXML.SelectSingleNode("/weather/cc/lsup").text

But if I comment that line out the script just fails on the next line. Of course, nothing here has changed, script or PC wise. So I was suspecting a problem with the link to weather.com. Before I started digging into the code I wanted to see if anyone else has experienced the same.

Re: Weather Script Problems?

Posted: Wed May 14, 2008 8:16 am
by markd
Yes, they changed the request format a little bit. I can post it tonight, or you can pull down the SDK and check the PDF document for a sample.

Re: Weather Script Problems?

Posted: Wed May 14, 2008 8:33 am
by Steve Horn
I'll try to look at the SDK docs tonight. But if you can, post whatever is relevant here anyway for future reference in case others run into a similar problem.
Thanks!

Re: Weather Script Problems?

Posted: Wed May 14, 2008 6:45 pm
by markd
This is what I changed my call to. . .

XMLURL = "http://xoap.weather.com/weather/local/" + WeatherComZip + "?cc=*&dayf=2&link=xoap&prod=xoap&par=" + WeatherComPar + "&key=" + WeatherComKey

Re: Weather Script Problems?

Posted: Wed May 14, 2008 6:58 pm
by Steve Horn
yes, this is what I found after I 'reregistered'

original string:
XMLURL = "http://xoap.weather.com/weather/local/" + WeatherComZip + "?cc=*&prod=xoap&par=" + WeatherComPar + "&key=" + WeatherComKey + "&dayf=5"

5/14/08 new string:

XMLURL = "http://xoap.weather.com/weather/local/" + weathercomzip + "?cc=*&dayf=5&link=xoap&prod=xoap&par=" + WeatherComPar + "&key=" + WeatherComKey + "&dayf=5"

Making that changed seemed to correct the problem. Gotta wonder why the change. oh well....

BTW, I have the original (version 1.0) of the "Developing Applications with the Weather XML Feed" doc. I never was able to find a revised version.

Thanks,