Menu
  • HOME
  • TAGS

Using devbridge autocomplete and wunderground autocomplete API

jquery,json,autocomplete,wunderground

To get this working you need modify source because jquery jsonp default callaback query string key is not "cb", but "callback". So in the autocomplete source add: jsonp: 'cb' that.currentRequest = $.ajax({ url: serviceUrl, data: params, type: options.type, jsonp: 'cb', dataType: options.dataType }).done(function (data) { Then your code should be:...

Using Wunderground API in Swift

swift,wunderground

For retrieving data, you'll want to look into SwiftyJSON which will help you parse the json data that the api returns. Then, once it's parsed and you have a JSON object representation of your info, you can access it as a dictionary to get the required fields. As far as...

Parse JSON forecast data from Wunderground

c#,json,parsing,wunderground

Using this tool I was able to get a good visual on the structure of this response. The answer was quiet simple, to get first day's forecast temperature in Celsius is simply: string tempCelsius = (string)jsonObject.SelectToken("forecast.simpleforecast.forecastday[0].high.celsius"); Using a good tool for visualizing JSON structure was the key....

Weather api hourly

javascript,jquery,ajax,weather-api,wunderground

By the look of the resulting json, the icon_url is in the hourly_forecast array and not in the FCTTIME sub array. Here is a way you can make it working : $.getJSON("http://api.wunderground.com/api/xxxxx/geolookup/hourly/q/IA/"+ $("#text").val() +".json",function(resp){ $.each(resp.hourly_forecast, function(){ logTime(this); time(this.temp); }); }); function logTime( obj){ $('body').append(obj.FCTTIME.weekday_name + ' '+ obj.FCTTIME.civil + '...