Version 1.1.1 of the AerisWeather Android Weather SDK is now available. This version of the SDK includes access to additional AerisWeather API endpoints. These include observation/summary and new data attributes like Ultraviolet Index forecasts. So read on for highlights of the new data waiting to enhance your Android weather applications!
So first up is the Forecasts endpoint. The following attributes are now available as properties within the forecast object:
So next let’s check out the Observations Summary endpoint. It provides access to daily totals for your location or an observation station. The data we get back includes things like observed min, max and avg temps and dew points. Also you can get wind speeds and precip totals, and lots more. Check out the Observations Summary endpoint for full details about all the data you can get from this endpoint. Also, more info can be found in the Javadocs for the Observation Summary endpoint at loaders/ObservationSummaryTask.
And then to get you started, here’s some example code. Below we’ll call the obs summary endpoint and show how to use some of the data.
PlaceParameter place = new PlaceParameter(txtZip.getText().toString());
ObservationsSummaryTask task = new ObservationsSummaryTask(this, new ObservationsSummaryTaskCallback()
public void onObSummaryLoaded(List responses)
ObSummaryResponse resp = (ObSummaryResponse) responses.get(0);
Number temp = resp.getPeriod(0).summary.temp.maxF;
catch (Exception e)
String s = e.getMessage();
public void onObSummaryFailed(AerisError aerisError)
// handle fail here
txtTemp.setText("Oops - maybe try a different zipcode.");
// start the request for the task by passing in our Place Parameter.
We hope you enjoy the new version and can’t wait to see what you make next!