Skip to content

jianwu-github/reactive-simpleweather

Repository files navigation

Reactive SimpleWeather

Screen

Reactive SimpleWeather is a demo android weather app utilizing latest android open source technologies and api services, it is built with latest Android Studio Beta and gradle.

Reactive SimpleWeather is fetching local weather based on geo location from OpenWeatherMap.org, you can fetch your current local weather data using the longitude and latitude, the result would be like:

{ "coord":   {"lon":-122.08, "lat":37.41},
  "sys":     {"type":1, "id":451, "message":0.4839, "country": "United States of America", "sunrise":1406812347, "sunset":1406863010},
  "weather": [{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],
  "base":    "cmc stations",
  "main":    {"temp":296.81,"pressure":1015,"humidity":77,"temp_min":288.15,"temp_max":303.15},
  "wind":    {"speed":2.6,"deg":0},
  "clouds":  {"all":40},
  "dt":      1406833786,
  "id":      5375480,
  "name":    "Mountain View",
  "cod":     200
}

Retrofit integrated with RxJava

Following Functional Reactive Programming Paradigm, Reactive SimpleWeather uses Retrofit integrated with RxJava to fetch weather data asynchronously.

You can find more about using Retrofit with RxJava in this Netflix OSS Presentation

Finally, Reactive SimpleWeather is rendering current weather in a UI Card using Card Library, it is similar to the UI Style of the latest Google Now.

About

Reactive SimpleWeather utilizing Card Library and OpenWeatherMap with RxJava and Retrofit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published