跳到正文
Simon Willison·· 24 天前

Locating the source of a mysterious beep with Claude

Locating the source of a mysterious beep with Claude

中文摘要

我们的房子有一个盒子房,里面堆满了我们上次搬家后还没拆开的纸箱。几周前,这个房间内开始间歇性地发出哔哔声。这些哔声间隔时间较长,站在房间里试图确定声音的来源让人感到很沮丧,而我真的不想一个一个地翻看那些箱子。因此我让Claude Code帮忙开发了“哔声定位器”(Beep Locator),这是一个软件系统,可以通过放置在房间各处的多个设备来三角定位神秘哔声的来源。这是“哔声定位器”运行一段时间后的样子:你运行一个Python网络服务器来显示主界面,然后使用二维码或网址连接尽可能多的设备作为监听器——我用了两台iPad、一部手机、一台MacBook Pro和一台Surface Ultra。这些设备会彼此播放声音以帮助估算它们的位置。这并没有特别有效,所以我添加了一个“粗略模式”,你可以拖动它们的图标在空间中大致定位,然后根据这些声音进行调整。一旦设置完成,所有设备都会开始监听哔声!我还添加了一个拍手模式,这样我就可以通过拍手来测试它。

英文原文

Our house has a box room, full of boxes that we still haven't unpacked from our last move. A couple of weeks ago something in that room started intermittently beeping . The beeps were far enough apart that standing in the room and trying to determine the source of the noise was frustrating, and I really didn't want to dig through every one of those boxes. So I had Claude Code build Beep Locator , a software system for triangulating the source of a mysterious beep using multiple devices scattered around the room. Here's what Beep Locator looks like after it has been running for a while: You run Python web server to show the primary UI, and then use the QR code or URL to connect as many devices as you can spare to act as listeners - I was using two iPads, a phone, a MacBook Pro and a Surface Ultra. The devices then play noises to each other to help estimate their locations. This didn't work particularly well, so I added a "Rough mode" where you can drag their icons around in the space to provide rough locations which are then adjusted based on those sounds. Once that's set up, the devices all listen for the beep! I added a clapping mode too so I could test it by clapping my hands in

应来源方要求,这里只提供摘要与原文入口。完整内容请阅读原文。

来源:Simon Willison · simonwillison.net