This project simulates an email environment, showcasing the generation of random emails and the use of basic webhook interactions. A key feature is the ability to change the color of LED lights with a button click. Set against a festive backdrop, the project incorporates a scenario involving Kasa Smart LED Lights and integrates IFTTT for interactive functionalities.
Key Features
- Dynamic Email Content: Each page refresh randomly changes the email's sender, subject, and body from a preset list, offering a unique experience every time.
- Interactive Elements: A clickable link in the email leads to a merry-christmas.html page, where users encounter a festive greeting and a simulated button to change the LED strip's color, enhancing engagement.
The Phishing Tree with the lights will change to red when a button on a website is clicked.
TikTok video of the lights
Tweet explaining the project
Mastodon post with more detail
Kasa Smart LED Light Strip
IFTTT
- Setup and connect your lights to wifi
- Go to the Smart icon at the bottom
- Select the Scenes
- Create a new scene
- Click Add Action
- Click Control Smart Devices
- Select your lights
- Click Set Lighting
- Pick a scene or color you want the lights to stay on
-
Click create
-
In the first part, where it says If This, Click Add
-
Search for Webhooks and select
-
Select Receive a web request with a JSON payload
-
Name the event. I named mine Phishing (which turned the lights red) - Whatever you name it will be the event name you refer to in the code.
-
Go to Then and click Add
-
Search for Kasa and select the box that says TP-Link Kasa
-
From here you will have a bunch of options, Select Change Color
-
It will ask you to delect the Device, color, brightness, transition duration. Set that to your liking.
-
Click Create Action
-
Repeat steps 1-4
-
Name the event Scene
-
Go to Then and click Add
-
Search for Kasa and select the box that says TP-Link Kasa
-
Select Activate scene
-
Select the Scene you created (this will make sure the lights go back to the default color after red)
**** To get your key, go to (https://ifttt.com/maker_webhooks) and click on Documentation