Weather Theme

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

Weather Theme

Post by Steve Horn »

Anyone else using the HB Weather.com theme? Since 3/16, my weather plug-in has ceased to update the various weather properties. I confirmed that my ID and key are still valid. Also, the satellite and radar JPEG files are updated. But things like temp and forecast data are not. I traced the VB script to where those properties are updated if LOADED'=TRUE. And 'LOADED' only will be true is the XMLURL is accepted by the server. In my case, LOADED is always FALSE, so the properties are not updated. I submitted a case to Meedio Support but they have not had anyone report a similar problem. Anyone else having this problem.
Steve
kbosscawen
Member
Posts: 71
Joined: Thu Jul 03, 2003 8:53 am
Location: Raleigh, NC
Contact:

Post by kbosscawen »

Others are having the same problem - See here. I'll submit a case to Meedio support, too, to let them know someone else is having the same problems and that this thread exists.
kbosscawen
Member
Posts: 71
Joined: Thu Jul 03, 2003 8:53 am
Location: Raleigh, NC
Contact:

Post by kbosscawen »

BTW, since the problem seems to be accessing weather.com over http under HoustBot only (MSXML works fine using http outside of HB, and weather.vbs works fine if the XML file is local), I did implement a very crude work-around for this problem:



First, create a script akin to this:

Code: Select all

DestFolder = "c:\Program Files\HouseBot\Config\Themes\Common\Weather\"
WeatherComPar = -YourPar-
WeatherComKey = -YourKey-
WeatherComZip = -YourZip-
Const adTypeBinary = 1 
Const adSaveCreateOverWrite = 2 

Set xml = CreateObject("Microsoft.XMLHTTP") 
set oStream = createobject("Adodb.Stream") 
oStream.type = adTypeBinary

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

xml.Open "GET", XMLURL, False 
xml.Send 

oStream.open 
oStream.write xml.responseBody 
oStream.savetofile "c:\weather.xml", adSaveCreateOverWrite 
oStream.close 
...and schedule it to run via Win XP task scheduler however often you wish. This will access weather.com from outside of HB and create c:\weather.xml (or whatever file you want).

Then, modify the default weather.vbs script to reference the xml file that was just downloaded:

Code: Select all

:
Loaded = MSXML.Load("C:\weather.xml") 

If (Loaded) Then 
   SetPropertyValues 
: 


It's not elegant, but it works until Meedio can fix it.
Steve Horn
HouseBot Guru
Posts: 750
Joined: Wed Apr 02, 2003 8:10 pm
Location: Pelham AL

Post by Steve Horn »

Thanks, I had already submitted a case to Meedio support last week. We've been going round and round on this. Here is their latest reply, which I havent tried yet:


I may have found an answer. What OS are you running? In any case, please edit your weather.vbs script, find the line that says:

MSXML.resolveExternals = False

and directly after that line add this line:

MSXML.setProperty "ServerHTTPRequest", true

Please let me know if that fixes your problem.

Regards,
Meedio Support




What I can't figure out is WHAT CHANGED? Nothing in my HB setup or OS. It just stopped, with the last download on 3/16.
Steve
kbosscawen
Member
Posts: 71
Joined: Thu Jul 03, 2003 8:53 am
Location: Raleigh, NC
Contact:

Post by kbosscawen »

I've been wrestling with the "what changed" issue, too, and am wondering if the timing of the breakage coorelates at all to the "evaluation period" expiring (even though they're licensed copies). Since I've been trying to fix it, I've lost track of when mine broke. Did you, perhaps, install your last version around 3/1? The eval period would have expired on 3/16 if you did....



Inquiring minds....



EDIT: I tried the fix they suggested to you, and it seemed to work. Doesn't answer the "what changed" question, though.
Last edited by kbosscawen on Wed Mar 23, 2005 7:51 pm, edited 1 time in total.
Steve Horn
HouseBot Guru
Posts: 750
Joined: Wed Apr 02, 2003 8:10 pm
Location: Pelham AL

Post by Steve Horn »

I'd have to research when I did register; that's a good question. Regardless, that patch I just sent you that Meedio Support suggested fixed the problem... at least here. I have no clue what it did, or why the thing stopped working (although I continued to get updated radar and Sat images).
Steve
acheslow
Senior Member
Posts: 168
Joined: Wed Aug 20, 2003 3:23 pm
Location: Bothell, WA
Contact:

Post by acheslow »

We believe the change is related to a Microsoft update. Please let us know if the fix quoted in Steve's post does not work for you.
ceejm1
Member
Posts: 32
Joined: Sat Sep 18, 2004 9:58 pm

Post by ceejm1 »

Thats sorted the problem I've had from around the same date, but now the temperatures are delivered in farenheit rather than celsius as before.



Any ideas as to why, and how to change it back?



Cheers



James
Post Reply