Skip to content

feat: add backend-lite single-page management backend - #160

Open
goxofy wants to merge 5 commits into
datascale-ai:mainfrom
goxofy:feat/single-page-backend-management
Open

feat: add backend-lite single-page management backend#160
goxofy wants to merge 5 commits into
datascale-ai:mainfrom
goxofy:feat/single-page-backend-management

Conversation

@goxofy

@goxofy goxofy commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add backend-lite, a lightweight single-user backend with a single-page management UI.
  • Support LLM key management, device configuration, mode selection, preview, remote refresh, and OTA management.
  • Preserve compatibility with the existing firmware protocol and use an isolated SQLite data directory.
  • Add management-page screenshots to the backend-lite README.
  • Display the current render time in 24-hour HH:MM format in the status bar; cached responses also refresh the time and battery area.
  • Add adaptive typography for long poetry content on 400×300 displays to prevent body content from overflowing.

Validation

  • Status bar tests: 17 passed.
  • Renderer, preset, and renderer regression tests: 67 passed.
  • Verified status-bar layout at 296×128, 400×300, and 800×480 in both 1-bit and 4-color modes.
  • No firmware update is required.

The full backend test suite could not be collected in the local environment because some existing dependencies, including FastAPI and the Alibaba SDK, are not installed. This is an environment limitation and is unrelated to the changes in this PR.

Tink and others added 5 commits August 4, 2026 00:10
- 单设备单用户后端,复用上游 backend/core 渲染内核
- 兼容固件协议:render/token/heartbeat/config/state/runtime/refresh/alert-bmp/ota
- 单页管理 UI:LLM key / 设备配置 / 预览 / 远程操作 / alert / OTA
- 新增 run.py 读取 .env 的 LITE_HOST/LITE_PORT
- startup 初始化 cache/static_store 表,native dithering 缺失时降级 Pillow
- 高频 state/alert-bmp access log 过滤
- setup_fonts.py 补充 GentiumPlus 字体
- gitignore 忽略 .claude/ 与 firmware.bin

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@goxofy goxofy changed the title feat: 新增 backend-lite 单页管理后端 feat: add backend-lite single-page management backend Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant