This project simulate a cloud with leds and cotton to show forecast weather. When boot the system, the cloud connect to an API and get current forecast and show with LEDs to simulating this states:
- Thunderstorm. LEDs blinking a lot
- Rain. LEDs blinking less
- Clouds. Just 3 LEDs on
- Few Clouds. All LEDs on
- Clear (All LEDs off, but I am thinking in a better way to represent this state)
Using a projector, can show temperature and weather state.
The app just control cloud state using Firebase RealtimeDatabase. Just for tests and showcase.
- Android Studio 3.+
- OpenWeatherMap ApiKey
- Firebase Realtime Database
- Raspberry Pi 3 with Android Things
- 5 white LEDs and resistors
- Projector (Optional. I used an cheap mini projector)
Obs: schematics coming soon 😁
- Clone this repository and open in Android Studio.
- Add to your
local.properties
file this vars:
openweather.apikey=YOUR_OPEN_WEATHER_API_KEY
openweather.lat=YOUR_LATTITUDE
openweather.lon=YOUR_LONGITUDE
- In your RealtimeDatabase, get
google_services.json
file and add to project inthings
andmobile
module - In your RealtimeDatabase add this structure:
cloud
- state: 0
- Add red LED for problems
- Make hardware schematics
- Add remote options to on/off projector
- Add weather animations
- Add button to reset (never knows)