Click to See Complete Forum and Search --> : XML RSS Feed from Weather.com


AaronChiles
04-20-2006, 12:24 AM
I am new to this forum and I am having trouble getting a weather feed on my website for a competition...

http://nlc.naroni.com

Right now I am using pxWeather to get a weather feed, but I would really like to use the one from weather.com and possibly have an icon.

Here is the XML from weather.com

http://rss.weather.com/weather/rss/local/28117?cm_ven=LWO&cm_cat=rss&par=LWO_rss

I want to use the Current Conditions Description, which right now is
<description>
<img src="http://image.weather.com/web/common/wxicons/31/20.gif" alt="" />Partly Cloudy, and 55 &deg; F. For more details?
</description>

I have no clue where to start on this, I know I need parse it or something? What is the easiest way to get it so it will say "Current Conditions: <decscription>"?

Thanks,
Aaron

Khalid Ali
04-22-2006, 09:22 PM
I think this is what you will need todo.
1.Register with weather.com
2.They will assign you an id
You can send a http request to their server using a pre-defined structure(they will provide the request structure, which will include your id)
Then the time comes where you will parse a response from them.

..it may sound difficult but its not, take care of the first 2 and then I may be able to help you with the last one..:-)

AaronChiles
04-22-2006, 09:24 PM
I already have a weather.com id
I downloaded the SDK and got totally lost.

Khalid Ali
04-22-2006, 09:26 PM
what is ur id....

Khalid Ali
04-22-2006, 09:26 PM
or for which city u want local conditions

AaronChiles
04-22-2006, 09:28 PM
Here is the link that I made, I think it did it right

http://xoap.weather.com/weather/local/USNC0462?cc&prod=xoap&par=1016759647&key=235d2e36128f431d

Now with that I want to display the /cc/icon then the /cc/tmp and possibly have the /cc/t as the alt tag...

my AIM is AaronChiles if you are willing to help. thanks.

Khalid Ali
04-22-2006, 09:57 PM
try this url
http://68.145.69.213/servlets/WeatherServlet?localWeatherPath=USNC0462?cc=*&prod=xoap&par=1016759647&key=235d2e36128f431d

its pointing to my own server where I already have code that parses the weather.coms feed and displasy weather on my site

Khalid Ali
04-22-2006, 09:58 PM
now if the above works for u then fine, other wise I amy be able to write a some javascript routine that will parse the feed and display weather on ur pages(I am hoping its not ur assignment or something, cus in that case I would not wanna do it for u)

AaronChiles
04-22-2006, 10:08 PM
I am mainly looking for something to get the icon on.

http://nlc.naroni.com is the website I am working on it's for a FBLA-PBL competition, and I have an icon being displayed now, but I would like to use the weather.com