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:
- Download project.
- Obtain a DarkSky API key from here.
- In the project root folder, open
config/common.properties
and paste your key where it saysdark_sky_key=PASTE KEY HERE
- Set a latitude and longitude in the same
common.properties
file. - ????
- You should be all set!