|
DXMLweatherUpdated Dec 15, 2003 by Bryan Cooke |
Comment #44 Wednesday, October 29, 2003 11:13 AM
Comment #45 Wednesday, October 29, 2003 10:01 PM
I notice this is different to that used to get location code:-
Location Code:
http://www.weather.com/outlook/
travel/local/THXX0002
Script:
http://xoap.weather.com/weather/local/"
Is there a reason for this or can you suggest a cure?
Thanks
Comment #46 Wednesday, October 29, 2003 10:05 PM
If I use a browser to connect to the site in your script I get the following message
"Forbidden
You don't have permission to access /weather/ on this server".
Comment #47 Wednesday, October 29, 2003 10:06 PM
Comment #48 Wednesday, October 29, 2003 11:18 PM
Thanks
Comment #49 Thursday, October 30, 2003 8:54 AM
Comment #51 Thursday, October 30, 2003 4:05 PM
FYI: I have a dial-up connection. And I downloaded the object on Oct. 30.
The error I get is:
Object required: 'weatherDoc.documentElement.selectSingleNode(...)'
Line: 121
Code:
(not available)
Comment #52 Thursday, October 30, 2003 4:06 PM
121: Object.PersistStorage("ut") = weatherDoc.documentElement.selectSingleNode("/weather/head/ut").Text
Comment #53 Thursday, October 30, 2003 11:49 PM
Interestingly enough, when first loading it works ok and after the next failure if I re- insert the city code 9 times out of ten it will work.
It does not appear to knick in by itself!!
Comment #54 Saturday, November 1, 2003 5:07 PM
It always says:
"Problem communicating with remote server.."
When I try to change the ZIP code it says:
Object required: 'validDoc.documentElement'
Line: 235
Code:
(not available)
No problems with internet connctivity on any other apps, including other DX objects.
Any ideas???
Comment #55 Sunday, November 2, 2003 5:23 PM
Comment #56 Sunday, November 2, 2003 5:29 PM
Comment #57 Monday, November 3, 2003 2:28 AM
Thanks
Comment #58 Monday, November 3, 2003 7:41 AM
Comment #59 Thursday, November 6, 2003 6:57 PM
FOR ALL NON-US USERS:
for Frankfurt in Germany I use the ZIP-Code GMXX0003.
In common the code is based on three combinations:
[Coutry-Code (2 letters)][XX][City-Code (4 numbers)]
Examples for Country-Codes:
GM = Germany; NL = Netherlands; BE = Belgium; CA = Canada; UK = United Kingdom; FR = France; SP = Spain etc.
For the City-Code you have to find out yourself by trying. I think only the major cities are available.
Have a try.
Comment #60 Thursday, November 6, 2003 10:18 PM
When the temperature was "N/A", the conversion to �C run into an error in the GetTemp-Function which resultet in a script error.
I've modified the GetTemp-Function a bit, so the problem has gone.
For all those who use �C you can replace the GetTemp-Function in the script with this one:
Function GetTemp(intemp, disp)
Dim conv
Dim tempTemp
If Object.PersistStorage("temp_mes") = "C" Then
If intemp = "N/A" Then
conv = "N/A"
Else
conv = round((5 / 9) * (intemp - 32))
End If
If disp = True Then
tempTemp = conv & "�C"
Else
tempTemp = conv
End If
Else
If disp = True Then
tempTemp = intemp & "�F"
Else
tempTemp = intemp
End If
End If
GetTemp = tempTemp
Set conv = Nothing
Set tempTemp = Nothing
End Function
Have Fun
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading files.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!
Comment #41 Tuesday, October 28, 2003 1:30 AM