Skip to content
Snippets Groups Projects
Commit 7f78eb0d authored by Chris Kearney's avatar Chris Kearney
Browse files

bug fix to retrieve current conditions and not the forecast

parent 83f710f7
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ public class WeatherManager { ...@@ -64,7 +64,7 @@ public class WeatherManager {
GenericUrl url = new GenericUrl("http://api.wunderground.com/api/" + creeperConfiguration.weatherUndergroundApiKey + "/conditions/q/" + state.toUpperCase() + "/" + convertToUrlFriendly(cityName) + ".json"); GenericUrl url = new GenericUrl("http://api.wunderground.com/api/" + creeperConfiguration.weatherUndergroundApiKey + "/conditions/q/" + state.toUpperCase() + "/" + convertToUrlFriendly(cityName) + ".json");
HttpRequest httpRequest = requestFactory.buildGetRequest(url); HttpRequest httpRequest = requestFactory.buildGetRequest(url);
GenericJson content = httpRequest.execute().parseAs(GenericJson.class); GenericJson content = httpRequest.execute().parseAs(GenericJson.class);
resp.addAll(getForecastString(content)); resp.addAll(getCurrentConditionsString(content));
return resp; return resp;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment