Pausing notifications on your phone is great. The iPhone’s Do Not Disturb (DND) feature is also great. Would it not be awesome if we had a DND for our room/office? Well, that was when I had an idea for a mini project.
My nephews and I went to a local electronics store and bought some gadgets. I just bought the ESP32-C3, which has two USB-C ports.
These were the steps I did in order. Of course, ChatGPT helped me every step of the way.
- I ensured the ESP32 was working by running a blinking sketch, which I created using Arduino IDE.
- I then created an on-off switch using the BOOT button on the ESP32. This would turn the LED to switch between Green and Red alternatively each time you press the BOOT button the the microcontroller.
- Then I connected the ESP32 to Blynk.
- Once it was connected to Blynk with the token, etc. I used three links:
- One would turn the Green light on when a GET request is sent to it.
- The other would turn the Red light on when a request was sent to it.
- The third one would give the current status of the light.
- Then I did some configurations using Siri Shortcuts. They were:
- Office Green: which would essentially visit the above link I spoke about followed by turning off Do Not Disturb on the iPhone/Apple Watch.
- Office Red: which would essentially visit the second link above, followed by turning on Do Not Disturb on the iPhone/Apple Watch.
- Office Switch: this would get the current status of the light. If the
currentStatus
was 1, it would run Office Green, otherwise it would run Office Red.
The end result was something like this:
In case you have any inspiring ideas for such projects, feel free to build on it and share to the world!
If you find this post inspiring, I have done my job. If you asked yourself why not just close the door instead of this contraption? Well, then you have done your job of critical thinking.
Cheers!