Question

I want to get the temperature from Yahoo weather API, I am using the following code:

http://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where location%3D"48906"&format=json

I just want to retrieve the temperature and not anything else.

Was it helpful?

Solution

I just want to retrieve the temperature and not anything else.

Its a 2-step process, you need to build the request and then crunch the result to get the temperature.

please see: http://tutorialzine.com/2012/05/weather-forecast-geolocation-jquery/

and

http://www.onextrapixel.com/2011/08/22/adding-weather-to-your-site-with-jquery-and-yql/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top