Skip to content

Commit

Permalink
LockClock : Add api key for open weather
Browse files Browse the repository at this point in the history
CYNGNOS-1227

Change-Id: Ie4f166bf2f841a679e272268bc943ff37e71f2a8
  • Loading branch information
Danesh committed Nov 3, 2015
1 parent 118f539 commit cc0ad6f
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -20,14 +20,17 @@ public class OpenWeatherMapProvider implements WeatherProvider {
private static final int FORECAST_DAYS = 5;
private static final String SELECTION_LOCATION = "lat=%f&lon=%f";
private static final String SELECTION_ID = "id=%s";
private static final String APP_ID = "e2b075d68c39dc43e16995653fcd6fd0";

private static final String URL_LOCATION =
"http://api.openweathermap.org/data/2.5/find?q=%s&mode=json&lang=%s";
"http://api.openweathermap.org/data/2.5/find?q=%s&mode=json&lang=%s&appid="
+ APP_ID;
private static final String URL_WEATHER =
"http://api.openweathermap.org/data/2.5/weather?%s&mode=json&units=%s&lang=%s";
"http://api.openweathermap.org/data/2.5/weather?%s&mode=json&units=%s&lang=%s&appid="
+ APP_ID;
private static final String URL_FORECAST =
"http://api.openweathermap.org/data/2.5/forecast/daily?" +
"%s&mode=json&units=%s&lang=%s&cnt=" + FORECAST_DAYS;
"%s&mode=json&units=%s&lang=%s&cnt=" + FORECAST_DAYS + "&appid=" + APP_ID;

private Context mContext;

Expand Down

0 comments on commit cc0ad6f

Please sign in to comment.