> -----Original Message-----
> From: Russel Madere [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 05, 2005 11:53 AM
> To: CF-Talk
> Subject: RE: US Weather from NWS (was RE: CF-Tag Weather for UK (London)?)
> 
> It is nice and easy:
> 
> <cftry><cfhttp url="http://www.nws.noaa.gov/data/current_obs/KHUM.xml";
> port="80" method="get" timeout="15">
> </cfhttp><cfcatch type="Any"><cfdump var="#CFCATCH#"></cfcatch></cftry>
> 
> <cfset xmlContent = XMLParse(Trim(cfhttp.FileContent))>
> <cfoutput>KHUM<br>
> Current Weather: #xmlContent.current_observation.weather.XmlText#<br>
> Temperature: #xmlContent.current_observation.temp_f.XmlText#&deg; F<br>
> Wind: out of the #xmlContent.current_observation.wind_dir.XmlText# at
> #xmlContent.current_observation.wind_mph.XmlText# mph<br>
> </cfoutput>

Well - if it's that easy there's no need for me to do a tag for it.  ;^)

In my case the site that I was doing weather reports for is now defunct so
it's not a priority at all.  I did always want to do a METAR parser in CF
tho....

Jim Davis





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189406
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to