Weather Script Problems?

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
Steve Horn
HouseBot Guru
Posts: 757
Joined: Wed Apr 02, 2003 8:10 pm
Location: Pelham AL

Weather Script Problems?

Post 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.
Steve
markd
Advanced Member
Posts: 234
Joined: Fri Jul 21, 2006 4:32 pm

Re: Weather Script Problems?

Post 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.
Steve Horn
HouseBot Guru
Posts: 757
Joined: Wed Apr 02, 2003 8:10 pm
Location: Pelham AL

Re: Weather Script Problems?

Post 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!
Steve
markd
Advanced Member
Posts: 234
Joined: Fri Jul 21, 2006 4:32 pm

Re: Weather Script Problems?

Post 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
Steve Horn
HouseBot Guru
Posts: 757
Joined: Wed Apr 02, 2003 8:10 pm
Location: Pelham AL

Re: Weather Script Problems?

Post 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,
Steve
Post Reply