Using an $8 smart outlet to avoid brainrot
10 months ago
- #productivity
- #DIY
- #technology
- A script monitors an $8 smart plug's state via WiFi API.
- The plug has a manual switch to toggle power on/off.
- When turned on, the script updates /etc/hosts to block distracting websites by redirecting them to 127.0.0.1.
- Blocked sites include Twitter, Instagram, YouTube, and Reddit.
- The plug is placed far away to add physical effort to disable blocking.
- Manual editing of /etc/hosts is possible but adds friction to discourage distractions.