让一台非智能电视变得刚刚好够智能
Making a dumb TV just smart enough

原始链接: https://qsantos.fr/2026/11/19/making-a-dumb-tv-just-smart-enough/

一位用户使用 ESP32-C3 的红外发射/接收器和 Claude 辅助脚本,实现了桌面连接的老电视的自动化控制。红外遥控器按钮现在可触发媒体播放、模拟器、壁炉视频和 Steam 大屏模式。为避免窗口/屏幕问题,他们切换到多座机会话,并构建了管理面板,用于控制电视会话、同步音量、发送命令、虚拟手柄输入和查看显示。控制器活动可切换模式。项目耗时约 10 小时,主要在模拟器设置;Claude 加快了开发,但需要仔细监督。

Hacker News 最新 | 过去 | 评论 | 问答 | 展示 | 招聘 | 提交 登录 让一台非智能电视变得恰到好处地智能 ( qsantos.fr ) 12 分 由 andai 1 小时前 | 隐藏 | 过去 | 收藏 | 2 条评论 帮助 andai 7 分钟前 | 下一个 [–] 同一作者的其他内容: 为了乐趣和收益破解暖气 https://news.ycombinator.com/item?id=50623020 回复 anabis 9 分钟前 | 上一个 [–] 也许你可以通过电视的 CEC 连接到 PC 进行简单控制(尽管它可能没有足够多的操作码来实现详细控制) 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

I own an old, cheap TV. It has no Internet connection, no fancy smart features that make you want to install a Pi-hole, and no ask-me-again-later updates.

Quite basic, but it does its job well

However, it is connected to my own desktop computer through an HDMI cable, so I can watch movies and TV series from the couch. Setting it up used to involve going to my desk, enabling the secondary monitor, opening the relevant application, moving its window to the secondary monitor, setting it in fullscreen, going back to the couch, remembering I forgot my wireless keyboard, getting off the couch, grabbing my wireless keyboard, going back to the couch again, and then pressing the Space bar.

The most important quality of a programmer is laziness.

So, of course, I vowed never to get off the couch unnecessarily. And that meant controlling everything from the TV remote.

My TV remote: for some reason, the TV came with a universal remote of a different brand

So, I got myself an IR transmitter and an IR receiver to tinker with:

Then, I fished out an ESP32-C3 Mini devboard, a mini-breadboard, and a handful of jumper wires, and made the most basic device that could solve my woes:

The great thing about Espressif MCUs is the integrated Wi-Fi radio, which makes it trivial to make devices that you connect to your Wi-Fi network.

I have played around with Espressif MCUs before, including for early versions of the OmniMorse, but I must admit that Claude is just faster at it than I am. With the help of Opus 5.5, I identified the RC-5 IR codes for each remote button, and set up a few scripts so that a single button press on the remote would do the whole dance I described above.

Problem solved!

But this first success unlocked much more.

I also own a bunch of old consoles. Getting everything hooked up is a chore, and makes a mess of wires. It would be much simpler to run an emulator on my computer and show it on the TV.

Not mine, but this gives you an idea.

Thus, I installed DuckStation, PCSX2, Dolphin, Cemu and ES-DE, configured two Xbox controllers on each of them, and got Claude to start everything from a single button on the remote.

At this point, I was using two of the four colored buttons of the TV remote. So, of course, I had to come up with two more modes. I got Claude to add a Fireplace mode, which just plays 10-hour videos, the most important one being a fireplace. And also Steam, in Big Picture mode.

Soon, there were regular issues with windows opening on the wrong screen, so I switched approaches. Instead of a large desktop on two screens, I resorted to multiseat, which I had always wanted to use, with two separate X sessions, one on each screen. This also allows using both screens at the same time without interference.

But that did mean I could not directly control the windows on the TV from my regular session. So, again, I got Claude to make me an admin panel:

The virtual TV remote actually works, by sending directly through the device I cobbled together. The device also tracks volume being changed from the real remote, so things stay in sync. The rest is just commands to my computer, including a virtual gamepad, and a real-time stream of what is being displayed (mouse clicks work too!). Also, turning on an Xbox controller switches to the emulator or Steam mode, and turning the last one off goes back to the fireplace.

Last, but not least, I took a significant amount of time making (telling Claude to make) everything fast. The whole thing took me about 10 hours in total, most of which was setting up console emulators.

Claude still needs to be kept on a tight leash: it sometimes wanted to go in the wrong direction, left obvious bugs, or suggested fixes that did not address the root cause. However, it saved me a bunch of time on the original problem, and lowered the effort enough to go above and beyond!

联系我们 contact @ memedata.com