Skip to content

A quick and dirty Android Things prototype application that displays live weather using the DarkSky API. Originally developed on the Raspberry Pi 3 with the Rainbow HAT.

Notifications You must be signed in to change notification settings

MojRoid/iot-weather

Repository files navigation

IoT | Weather

Android Things - Internet of Things platform

A quick and dirty Android Things prototype application that displays live weather using the DarkSky API. Originally developed on the Raspberry Pi 3 with the Rainbow HAT.

The project uses the usual bits, mainly Dagger 2 for dependency injection, RxJava 2 for asynchronous/periodic network requests and Retrofit 2 for networking. The project loosely follows the MVC architectural pattern, however I'm sure it has tons of room for improvement.

Uses the Rainbow HAT contrib-drivers, offloading most of the low level hardware implementation to the library.

Features:

  • Displays the current temperature for the current hour.
  • Network updates every 10 minutes, display will update every minute.
  • Plays Song of Storms if rain is more than 50% likely within the next hour.
  • Pressing 'C' will display how many minutes until it will rain if rain is within the next hour.
  • Displays temperature as a colour on the LED strip for the current hour and the next 6 hours.

Usage:

  1. Download project.
  2. Obtain a DarkSky API key from here.
  3. In the project root folder, open config/common.properties and paste your key where it says dark_sky_key=PASTE KEY HERE
  4. Set a latitude and longitude in the same common.properties file.
  5. ????
  6. You should be all set!

About

A quick and dirty Android Things prototype application that displays live weather using the DarkSky API. Originally developed on the Raspberry Pi 3 with the Rainbow HAT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages