# Clawdometer

用电子墨水屏实时显示 Claude Code 额度与工作状态。

Claude Code usage monitor on an e-ink desk gadget — rate-limit meters, live WORKING/NEEDS-YOU/QUESTION/DONE status, and a bell that rings when it's your turn. Waveshare ESP32-S3-ePaper-1.54, BLE.

用电子墨水屏实时显示 Claude Code 额度与工作状态。

- id: nsyll-clawdometer-eink
- author: nsyll
- repository: https://github.com/nsyll/clawdometer-eink
- license: MIT
- shape: epaper
- scenes: tools
- boards: ESP32-S3, Waveshare
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/nsyll-clawdometer-eink/
- html_zh: https://esp32gallery.com/zh/projects/nsyll-clawdometer-eink/
- json: https://esp32gallery.com/data/catalog/projects/nsyll-clawdometer-eink.json

## Hardware

ESP32-S3 / Waveshare. Verify the exact board revision, wiring and power requirements in the upstream build guide.

ESP32-S3 / Waveshare；请在上游构建文档中核对具体板型、供电与接线。

## English

```
Claude Code's own usage panel, mirrored onto a 1.54-inch 200×200 e-ink card that sits on the desk. A Python daemon on the Mac polls the API's rate-limit headers with the existing OAuth token, reads a status file written by Claude Code hooks, and pushes one small JSON payload over BLE every minute; the Waveshare ESP32-S3-ePaper-1.54 renders the 5-hour and weekly meters, a WORKING / NEEDS YOU / QUESTION / DONE banner, and per-day token stats. Each event has its own chime through the ES8311 codec. Nothing is soldered and nothing leaves the Mac. Sleep draws a small `zZ` and pulls about 20 µA, so a charge lasts roughly a week.
```

## 中文

```
把 Claude Code 自己的用量面板搬到桌上一张 A6 大小的墨水瓶上：Waveshare ESP32-S3-ePaper-1.54，1.54 英寸、200×200。Mac 上的 Python 守护进程用已有的 OAuth token 去读 API 的限流响应头，再看 hooks 写下的状态文件，每分钟通过 BLE 推一小包 JSON 过去，屏上就显示五小时和周用量条、WORKING / NEEDS YOU / QUESTION / DONE 横幅，以及按天统计的 token。每种事件配一段不同的 ES8311 提示音。整机不用焊接，数据只在本机走。没人时画个 zZ 进深睡，约 20 µA，每半小时醒一次找守护进程，充一次能用一周左右。电量低于 3% 会提示充电并自己干净关机，护住锂电池。装的时候先刷固件，再在 macOS 终端里起守护进程，第一次会弹蓝牙授权；hooks 可选，但状态横幅和提示音全靠它。
```
