Remix.run Logo
▲ naftalibeder 12 hours ago

This is one of my favorite HN comments possibly ever. Thank you :)

(Reminds me a bit of https://xkcd.com/196.)

▲ssl-3 5 hours ago | parent [-]

XKCD 196 is closer in spirit to a different thing I did last week.

While analyzing my power usage (mostly to quantify the running expense of the space heater vs. other real things) I noticed that it was cheaper to buy another smart plug than to run the power amplifiers at my desk 24/7 for yet another month.

So I set up a thing that watched for pipewire activity. It would switch on a smart plug when there was audio happening and then just switch it back off after a time of being idle. This worked, but switch-on latency for that plug wasn't very good (tens-of-milliseconds was common).

To fix that, I rearranged things to use a hackable plug running ESPHome and made the turn-on command a one-shot UDP packet that I put right into the IP handler[1], which resolved the latency pretty well.

Except: I noticed that it wasn't working. It stayed on and it never turned off.

After half an hour of figuring out that this was because of a tab opened with AliExpress that was "Checking" my "browser" by faffing about with audio every 477 seconds (for anti-bot, fingerprinting, literal spying, or some other needless dark pattern), I realized that we were all just doomed and started thinking about Amish potato farmers. I reckoned that they probably sleep pretty well at night.

[1]: oh noes the evil haxxors are going to get into my network, turn my stereo off, and overflow my buffers