Introduction: Magical - Weather Reactive Egg
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
- A real eggshell (cleaned and dried)
- 1 × ESP8266 (NodeMCU or Wemos D1 Mini)
- 3 × WS2812B / NeoPixel LED
- Jumper wires and soldering tools
- Power source (USB or battery)
- Formboard
Step 1: How It Works
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:
- Rainy → Blue
- Sunny → Yellow
- Hot → Red
The LED is placed inside a real eggshell for a unique and minimal design.
Step 2: Prepare the Eggshell
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.
Step 3: Wire the Components
Connect the NeoPixel LED to the ESP8266 as follows:
Data → D4 (GPIO2)
VCC → 5V
GND → GND
Step 4: Get Your Weather API Key
Go go Openwheatherand sign in.
Step 5: Get Your Weather API Key
Click on profile and click My Api Keys
Step 6: Get Your Weather API Key
Enter an api name inside create key. Here my api name is weather.
Step 7: Get Your Weather API Key
Copy the api key.
Use paid features, for more accurate and real-time weather data.
Step 8: Step 4: Set Up Arduino IDE
Install:
- ESP8266 Board Package (via Board Manager)
- Adafruit NeoPixel Library
- ArduinoJSON Library
Step 9: Code
Download and open this code on Arduino IDE.
Attachments
Step 10: Enter Credentials
Update the Credentials with yours and upload the code.
Step 11: Base Box
Using a 2mm form board, i made box for the base part and covered it using wooden style papers.
Step 12: Assembling
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.
Step 13: Final Output
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!






