# epd **Repository Path**: stablelee/epd ## Basic Information - **Project Name**: epd - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-07-25 - **Last Updated**: 2026-07-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EPD Gateway FastAPI + Web Bluetooth 控制台,用来接收 `news / stock / other` 消息,渲染成黑白红墨水屏预览,并在浏览器端触发 BLE 发送。 ## 运行 ```bash cd work/epd_gateway python -m venv .venv .venv\Scripts\activate pip install -r requirements.txt uvicorn main:app --reload ``` 打开 `http://127.0.0.1:8000/`。 ## 接口 - `POST /api/display/message` - `GET /api/display/messages` - `GET /api/display/stream` - `POST /api/display/send-now/{message_id}` - `GET /api/device/status` ## 说明 - Web Bluetooth 首次配对需要用户点击。 - `serviceUuid` 和 `charUuid` 需要按你的 EPD-nRF5 实际协议填写。 - 目前前端用 canvas 模拟黑白红预览,后续可以替换成更精准的屏幕位图转换。