Hi guys,
so I'm fairly new coding in general and I'm look for some help to get me going with getting weather data from http://api.wunderground.com/api/Your_Key/features/settings/q/query.format.
Now I've filled in the part after .../api/... to reflect what i want to retrieve. Ang just typing it i to a browser i get what I'm looking for.
Now the part I need help is sending of the url, and then parsing the .json into variables that i can then use for my nefarious deeds.
uses xquery, xquery_json, synapseinternetaccess;
query('json("http://api.wunderground.com/api/Your_Key/features/settings/q/query.format").forecast.txt_forecast.forecastday(1).fcttext').toString
var
forecasts: IXQValue;
begin
forecasts := xqvalue('http://api.wunderground.com/api/Your_Key/features/settings/q/query.format').retrieve().map('(.).forecast.txt_forecast.forecastday()');
forecasts.get(1).getProperty('fcttext').toString;
forecasts.get(2).getProperty('fcttext').toString;
forecasts.get(3).getProperty('fcttext').toString;
...