Show HN: PaperMono, e-ink fridge magnet shopping list with mobile web page

原始链接: https://github.com/seamusc/papermono-shopping-list

本项目为 M5Stack PaperMono (ESP32-S3) 提供定制 C++ 固件,将其打造为专属的家庭购物清单设备,并可与手机端 Web 应用同步。 **主要功能:** * **优化电子墨水屏界面:** 提供响应式触摸屏界面,支持快速局部刷新、极低残影,并内置屏幕键盘。 * **高效电源管理:** 包含低功耗联网功能(支持定时或手动同步)、深度睡眠模式以及自动电池保护。 * **离线功能:** 编辑和浏览可完全离线进行,设备会在连接网络后自动同步队列中的数据。 * **智能分类:** 物品根据购物路线进行分组排列。配套的 FastAPI/SQLite 服务器负责追踪物品,并可选择利用人工智能 (Claude) 自动对新产品进行分类。 * **开源:** 项目包含详细的硬件启动说明、驱动实现细节以及模块化架构文档。 该固件与服务器代码专为家庭使用设计,采用 GPL v3.0 许可证开源。它既是智能厨房的实用工具,也是 M5Stack PaperMono 开发的可靠参考实现。

Hacker News 用户 seamus_c 发布了一款名为“PaperMono”的 DIY 电子墨水屏购物清单设备,旨在吸附在冰箱上使用。该设备基于带有触摸屏的 M5Stack (ESP32-S3) 构建,通过 Wi-Fi 与移动端 Web 应用同步,并支持离线运行。 该项目包含约 2,400 行 C++ 代码,值得注意的是,作者使用 Claude Code 生成了这些代码,而非手动编写。开发者强调了该硬件的多功能性,指出虽然 M5Stack 具备蓝牙、Wi-Fi 和 LoRa 功能,但目前这一版本仅依赖 Wi-Fi。 社区对此反响轻松,评论者调侃了给“冰箱贴”充电的必要性,但该项目也被称赞为一种实用且适合家庭使用的自制硬件应用,且已证明在日常生活中非常有用。
相关文章

原文

Firmware for the M5Stack PaperMono e-paper device. It turns the device into a household shopping list that lives on the fridge and stays in sync with a phone web app.

The PaperMono on a fridge, showing a shopping list grouped by aisle    The PaperMono settings screen: frontlight, sync now, Wi-Fi, last sync and battery

The PaperMono is an ESP32-S3 with a 3.97" 480×800 e-paper touchscreen. This project is a complete, working app for it that's small enough to read: about 2,400 lines of C++. You can use it as a shopping list, or as a starting point for your own PaperMono firmware.

What it shows on the PaperMono

  • E-paper refreshes handled properly. Taps, scrolling and typing use fast partial updates with no flash. A full refresh is forced after every 10 partial updates to keep ghosting down and protect the panel. Greys are drawn as 1-bit dot patterns, so they look the same under both refresh modes.
  • A usable touch UI on e-paper. Tap, swipe and the side buttons all work. There's an on-screen keyboard that only redraws the parts that change as you type, and it suggests items you've added before.
  • Low-power networking. Wi-Fi is on only while syncing: every hour, sooner if you tap the screen and the last sync is more than 5 minutes stale, and straight after an edit. Everything else works offline, and edits are queued on flash until the next sync.
  • Tidy power handling. Power-button shutdown, with a deep-sleep fallback for when USB power stops the power IC switching off. The device turns itself off at a safe battery voltage. The frontlight is off by default.
  • Documented bring-up. The power IC, IO expander, panel and touch controller are brought up in a known-good order. docs/hardware.md has the pin map, I²C addresses and the quirks found along the way.

The device shows the list grouped by aisle, in the order you walk the shop. Tap an item to tick it off, or add one with the on-screen keyboard. Everyone else adds things from their phone.

The phone web app showing the shopping list grouped by aisle    The phone web app's aisle editor, for setting the order you walk the shop

A small server in between stores the list. It remembers which aisle every item belongs to and can optionally sort brand-new items into the right aisle with Claude.

flowchart LR
    device["PaperMono<br/>(firmware/)"] -- "Wi-Fi, hourly or on tap<br/>and after each edit" --> server
    phone["Phone browser"] -- HTTP --> server
    subgraph server["Server (server/)"]
        api["FastAPI + SQLite"]
        web["Web UI"]
    end
    api -. "new item names only" .-> claude["Claude Code CLI<br/>(optional)"]
Loading
  • Grouped by aisle, in walking order. You set the aisle order once from the phone, and both screens follow it.
  • Works offline. The list, suggestions, ticking off and adding all work without a connection, including in a shop with no signal.
  • Remembers your items. Every name you've added goes into a catalog that drives suggestions on both the device and the phone.
  • Optional auto-sorting. The first time the server sees a name, it can send it to Claude to file it under an aisle. If you move an item to a different aisle by hand, that correction sticks.
firmware/   PlatformIO project for the PaperMono (C++ / Arduino)
server/     FastAPI server, SQLite store, phone web UI, tests
docs/       Hardware notes, architecture, API, build and deploy guides, design notes
cd server
python3 -m venv .venv && .venv/bin/pip install -e .
SHOPPING_LIST_CLASSIFIER=none .venv/bin/uvicorn shopping_list.main:app --host 0.0.0.0 --port 8000

Open http://<server-ip>:8000/ on your phone, tap Aisles, and add your shop's aisles in the order you walk them. See docs/server.md for systemd and Docker deployment and for turning on auto-sorting.

2. Build and flash the firmware

You need PlatformIO and a PaperMono connected over USB-C.

cd firmware
cp src/secrets.example.h src/secrets.h   # set Wi-Fi SSID/password and the server URL
pio run -t upload

Back up your device's flash before the first flash. It holds that unit's factory calibration data. docs/firmware.md covers the backup, download mode and flashing from a browser.

Doc What's in it
Hardware notes Pin map, I²C devices, bring-up sequence, display, touch and power details; reusing the drivers
Firmware Building, configuring, flashing and recovering the device; using it; troubleshooting
Architecture Components, data model, the sync protocol, offline behaviour, display refresh policy
Server Running and deploying the server, configuration, auto-sorting, security
HTTP API Every endpoint, request and response
Design notes Where the firmware came from, decisions and trade-offs, known limitations

A personal project, running on one device at home. It works, but it isn't a product. There's no on-device Wi-Fi setup (credentials are compiled in), no authentication on the server (keep it on your LAN or behind an authenticating reverse proxy), and only the PaperMono C153 has been tested. See known limitations.

Built by Seamus Cawley, who builds Bronto, the logging and observability platform, by day.

The firmware's board support, e-paper and touch drivers, keyboard layout and widget style are adapted from MonoMesh by andrecolz, an independent Meshtastic-compatible firmware for the same hardware. docs/design-notes.md lists exactly what was reused.

GNU General Public License v3.0, the same license as MonoMesh, which parts of the firmware derive from.

联系我们 contact @ memedata.com