• TonyOstrich@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    1 day ago

    I designed a little PCB and programmed an ESP32 a number of years ago to control LED strip lights of different color temperatures arranged in an array for this exact purpose as a proof of concept. Essentially once the sun had completely set the warm LED strip lights would be 100% on and the cool strip lights would be 100% off and when the sun was completely up it would be the reverse, and I had some kind of transition logic based on the sunrise and sunset times for where I was located which was just a simple calculation based off the hard coded longitude and latitude coordinates of my city in the ESP32.

    No IoT or subscription bull shit. I did configure it to connect to my router like once a month to resync the clock module I added to it, but that was overkill because I think the spec said that it should only drift like at most 10 seconds per year. There was some other finicky edge case stuff I had to program around, but it was a fun project. I put it on hold when I had to move places and I just haven’t gotten back to it, but I’m sure I will pull it back out at some point.