Magical - Weather Reactive Egg

by Basheer bk in Circuits > Art

4387 Views, 50 Favorites, 0 Comments

Magical - Weather Reactive Egg

Magic (4).png
Screenshot 2025-09-01 153902.png
Untitledvideo-MadewithClipchamp-ezgif.com-video-to-gif-converter (1).gif

Halloween is all about surprises, creativity, and a touch of magic. This year, I wanted to create something different something that combines technology, art, and a spooky vibe. That’s how the Magic Egg was born.

The Magic Egg is a DIY weather reactive light hidden inside an eggshell. It changes color based on the current weather conditions outside. Imagine an egg that glows an eerie blue during a storm, a fiery orange on a sunny day, or a mysterious purple when the skies turn cloudy. it will be look like a normal egg if there is no power. It’s simple, smart, and absolutely mesmerizing.

It’s the perfect Halloween decoration for tech lovers, spooky, and fun to build!

Supplies

led.JPG
esp.JPG
  1. A real eggshell (cleaned and dried)


  1. 1 × ESP8266 (NodeMCU or Wemos D1 Mini)


  1. 3 × WS2812B / NeoPixel LED


  1. Jumper wires and soldering tools


  1. Power source (USB or battery)


  1. Formboard

How It Works

OpenWheather.jpg

The ESP8266 connects to your Wi-Fi and fetches live weather data using the OpenWeatherMap API. The temperature and weather conditions are then translated into colors using the NeoPixel LED inside the egg.

For example:

  1. Rainy → Blue
  2. Sunny → Yellow
  3. Hot → Red

The LED is placed inside a real eggshell for a unique and minimal design.

Prepare the Eggshell

eggshell-MadewithClipchamp-ezgif.com-video-to-gif-converter.gif

Carefully crack the egg from the top and remove the contents. Rinse and dry the shell completely. Make a small hole at the bottom for the wires to pass through. You can paint the shell or keep it natural for a minimal look.

Wire the Components

Espcircuit.png

Connect the NeoPixel LED to the ESP8266 as follows:

Data → D4 (GPIO2)

VCC → 5V

GND → GND

Get Your Weather API Key

Go go Openwheather and sign in.

Get Your Weather API Key

2.png

Click on profile and click My Api Keys

Get Your Weather API Key

3.png

Enter an api name inside create key. Here my api name is weather.

Get Your Weather API Key

4.png

Copy the api key.


Use paid features, for more accurate and real-time weather data.

Step 4: Set Up Arduino IDE

Install:

  1. ESP8266 Board Package (via Board Manager)
  2. Adafruit NeoPixel Library
  3. ArduinoJSON Library


Code

Download and open this code on Arduino IDE.

Downloads

Enter Credentials


const char* ssid = "home"; //replace with your wifi name
const char* password = "password"; //replace with your wifi password
const String apiKey = "// Replace with your key"; // Replace with your key
const float latitude = 1123.23; //replace with your latitude
const float longitude = 235.2785; //replace with your longitude

Update the Credentials with yours and upload the code.

Base Box

DSC00427.JPG
DSC00429.JPG

Using a 2mm form board, i made box for the base part and covered it using wooden style papers.

Assembling

Untitledvideo-MadewithClipchamp1-ezgif.com-video-to-gif-converter.gif

Place the NeoPixel inside the eggshell and pass the wires through the bottom hole. Mount the egg on a small holder, connect the ESP8266 to power, and watch the colors change automatically based on the weather outside.

Final Output

Untitledvideo-MadewithClipchamp-ezgif.com-video-to-gif-converter (1).gif
Weather Reactive Egg | Esp8266

And that’s it! Your Magic Egg is ready to light up and change colors based on the weather. A small DIY project, but full of magic and fun. Even if you don't integrate with api , just put some neo pixel inside an eggshell and decorate it. Happy making!