# Codex Meter

ESP32 desk display for Codex subscription limits and task completion alerts

桌面上一块 480x480 的 AMOLED 小屏，专门盯 Codex 的订阅余量：macOS 后台进程通过本地 App Server 读出 5 小时和 7 天两个窗口的剩余百分比，再用 BLE 推给屏幕，一台 Mac 可以同时带多台设备。

- id: tomatoeggs-codexmeter
- author: tomatoeggs
- repository: https://github.com/tomatoeggs/CodexMeter
- license: MIT
- shape: square
- scenes: home, ai, tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/tomatoeggs-codexmeter/
- html_zh: https://esp32gallery.com/zh/projects/tomatoeggs-codexmeter/
- json: https://esp32gallery.com/data/catalog/projects/tomatoeggs-codexmeter.json

## Hardware

Supported hardware: ESP32. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
A 480x480 AMOLED puck watches a Codex subscription: a macOS daemon reads the 5h and 7d remaining percentages from the local App Server and pushes them over BLE, and one Mac can drive several registered units. When a task finishes the screen flashes red, yellow and green, then shows a four-line summary. Eleven themes ship in the firmware, each with its own layout; the side buttons set brightness, a long press changes theme, the middle button opens settings. With the panel off, LVGL, animations and the IMU stop while BLE and the watchdog keep running. A 3D-printed Codex desk-pet shell holds the 2.16-inch screen in its head.
```

## 中文

```
桌面上一块 480x480 的 AMOLED 小屏，专门盯 Codex 的订阅余量：macOS 后台进程通过本地 App Server 读出 5 小时和 7 天两个窗口的剩余百分比，再用 BLE 推给屏幕，一台 Mac 可以同时带多台设备。任务跑完会整屏闪红黄绿，然后显示四行完成摘要。固件内置十一套主题，从红白机到 WALL-E 各有独立布局，左右键调亮度、长按换主题，中间键进设置。屏幕关掉之后 LVGL、动画和 IMU 都停下来，只留 BLE 和看门狗。外壳是 3D 打印的 Codex 桌面宠物造型，把 2.16 英寸屏嵌在头部。
```
