GetWeather Thread last updated on 2004-02-11 13:19:10

Posted by member 102398 on 2004-02-07 23:52:49

I can't get it to update the weather... I have it set up so a popup shows the info in the included txt file. I have the URL pointed to the one I need but when I go to Update Weather Info in the popup (!GetWeather) it doesn't give me an error, confirmation or anything and the evars are all the same. What's the deal here? TIA.

Posted by member 1 on 2004-02-09 13:29:49 link

well...the problem with that is that you didn't tell it to update the evars. :) if you check the text file where the settings are saved it was prolly updated. :) Ill try and remember to send you a working config later...if I forget just hit me up on ICQ or IRC or something

Posted by member 102398 on 2004-02-09 17:51:52 link

I just don't understand why it doesn't do anything. At first NAV would ask me if I wanted to let it run so I said yes, later when I had it disabled and MyIE2 open it would attempt to retrieve info from the page but it would say: server was not responding even though if I go to the actual page it was up, so it led me to believe it was something wrong with the code in the script that retrieves the html to be stripped down to the good part but I didn't really understand the syntax in that section of GetWeather.wsf
Set http = createObject("microsoft.xmlHttp")
http.open "GET",WeatherURL,False 'Synchronous mode - wait for URL to respond.
If Err.Number 0 Then
MsgBox WeatherURL & " " & Err.Description
Err.Clear
WScript.Quit
End If
http.send ""

if (http.statustext "OK") then
MsgBox "ERROR: HTTP status was "&http.statustext & vbCRLF & vbCRLF & apology
' MsgBox apology
WScript.Quit
End If

rHTML = http.responsetext


Now it's back to giving me just the arrow with hourglass combo after I click Update Weather Info then immediately back to regular arrow.

Posted by member 1 on 2004-02-09 22:19:19 link

hrmmm...dunno about that...we will have to talk.

Posted by member 98984 on 2004-02-11 07:01:17 link

I was using GetWeather for awhile. Then weather.com changed the source code for the webpage GetWeather grabs the data from to intentionally break it. They have tags with fake data before the real data is displayed. GetWeather by default only grabs and stores the data from the first instance of the tag found.

I edited it and got the temperature working again but I was never able to make the condition image report correctly.

weather.com wants everyone to sign up for their XML service and not "scraping" the webpage. I don't know of any solution that uses the XML data.

Posted by member 1 on 2004-02-11 13:19:10 link

I haven't had problems with GetWeather as of late. I know that jesus_mjjg is working on an updated LookOutside that uses more sites than just weather.com to combat this. No ETA on release though. :(