Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
I programmed a smart plug to react to the greenness of the grid (github.com/erikcorry)
2 points by ErikCorry on April 5, 2023 | hide | past | favorite | 1 comment


This smart plug has an ESP32 microcontroller in it. Using 200 lines of Toit code and libraries for NTP, HTTPS, JSON, etc., it fetches the current electricity price from a free online service and uses it to switch on a lava lamp only when the electricity is green and cheap. There's a manual override.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: