A cloud shaped lamp that pulls weather data and changes color based on the present weather conditions. The ESP12E module is used to pull data from the internet and control the LED strip. I used the Arduino environment to program the ESP12E the following libraries are required.
- ESP8266WiFi.h
- ArduinoJson.h
- Adafruit_DotStar.h
Weather data is pulled from the Weather Underground API. A wunderground_key.h file needs to be created and Weather Underground API key needs to be provided using the keyword WU_API_KEY. This is a free service that any developer can get.
- nodeMCU(esp12e) module
- White Paper Lantern Lamp
- Polyester Fiber
- Hot Melt Glue Gun
- Adafruit DotStar Digital LED Strip - Black 60 LED
- 5V 4A (4000mA) switching power supply
Need to create a wifi_credentials.h
file to pass WiFi credentials.
#ifndef WIFI_CREDENTIALS_H
#define WIFI_CREDENTIALS_H
#define WIFI_SSID "*********"
#define WIFI_PASS "*********"
#endif
There is also an Android application that can be used to select different modes and colors for the cloud see android app. The android phone and cloud must be on the same network for the application to work.