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/