House of Fusion
Home of the ColdFusion Community

Search cf-newbie

October 07, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Newbie (CF-Newbie)

yahoo weather service

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Joel Polsky
07/17/2008 02:50 PM

Does anyone know if the yahoo weather provides international weather, (Canada, Europe, Caribbean etc) http://developer.yahoo.com/weather/   And surprisingly they have a cf page too! http://developer.yahoo.com/coldfusion/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Raymond Camden
07/19/2008 05:11 PM

Yes, it can. If you go to the Weather site and search for London, England, you get a page that has the location ID in the url, which you can then use with their API. FYI, don't forget I have an entire CFC library for Yahoo services (cfyahoo.riaforge.org). This makes using Yahoo's services even easier. On Thu, Jul 17, 2008 at 1:46 PM, Joel Polsky <jsp2001@hotmail.com> wrote: > Does anyone know if the yahoo weather provides international weather, (Canada, Europe, Caribbean etc) http://developer.yahoo.com/weather/ > > And surprisingly they have a cf page too! http://developer.yahoo.com/coldfusion/ Not surprising - I bugged them until they let me write one. ;) -r

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Joel Polsky
07/21/2008 01:55 PM

Hi Raymond, Thanks for the reply -- I looked at your stuff, nice - but I'm already down my own and different path and have coded based on the samples at Yahoo - (guess that's your doing too?)  The Yahoo API is restrictive in its use and seems only to provide a 2 day forecast - I want 5 days.  (I have an API key set up with weather.com's service for this.) My problem now is more coding.  I'm able to query any zipcode or international destination and get an xml feed response - but when I try to display more than on node element I get xml errors. I need to be able to get the value of the xml node not the node it's self.  For example I get this:   <?xml version="1.0" encoding="UTF-8" ?>   <dnam>Brimfield, MA (01010)</dnam> I want: "Brimfield, MA (01010)" in a string so I can strip off the '(01010)' portion. Current code for the above result is:   <cfhttp url="#urlRequested#" result="response">   <cfset xmlResult = xmlParse(response.fileContent)> Anyone have ideas.. What's missing? Thanks! ----- Excess quoted text cut - see Original Post for more ----- -r

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Joel Polsky
07/21/2008 01:56 PM

Hi Raymond, Thanks for the reply -- I looked at your stuff, nice - but I'm already down my own and different path and have coded based on the samples at Yahoo - (guess that's your doing too?)  The Yahoo API is restrictive in its use and seems only to provide a 2 day forecast - I want 5 days.  (I have an API key set up with weather.com's service for this.) My problem now is more coding.  I'm able to query any zipcode or international destination and get an xml feed response - but when I try to display more than on node element I get xml errors. I need to be able to get the value of the xml node not the node it's self.  For example I get this:   <?xml version="1.0" encoding="UTF-8" ?>   <dnam>Brimfield, MA (01010)</dnam> I want: "Brimfield, MA (01010)" in a string so I can strip off the '(01010)' portion. Current code for the above result is:   <cfhttp url="#urlRequested#" result="response">   <cfset xmlResult = xmlParse(response.fileContent)> Anyone have ideas.. What's missing? Thanks! ----- Excess quoted text cut - see Original Post for more ----- -r

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Raymond Camden
08/05/2008 12:50 PM

Sorry - I missed your email. If xmlResult is the parsed node, then to get the value you want, its just xmlResult.xmlText ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists