]> git.aero2k.de Git - sirius.git/commit
Add personality upload and compose pages
authorThorsten <mail@aero2k.de>
Fri, 6 Nov 2026 23:28:20 +0000 (00:28 +0100)
committerThorsten <mail@aero2k.de>
Fri, 6 Nov 2026 23:28:20 +0000 (00:28 +0100)
commitefb1c2be612a69f26b43d886b02322cea8b8cc4c
tree1bc23301ae8888d737e88e32142ac1e1919c8dc2
parent41ff0e7259c77b4e30ab05a063baf0dc65e55a48
Add personality upload and compose pages

Change personality lets you place a face in a preview of the printer's
window. Faces always come out at 620 rows: the face prints last, and
anything shorter leaves the top of every print inside the printer.

Compose has poster text, quick draw and dithergrams after Nord Projects'
iOS app, plus xkcd comics. Everything is drawn on a canvas of 384 pixels
and uploaded from there, so the preview is what gets printed.

The canvases can only be tested in a browser, so tests/browser has
Playwright tests that run the real app with a fake printer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018fP7RjM2W3Sjtdj31Vk2WE
27 files changed:
.dockerignore
.gitignore
sirius/web/printer_compose.py [new file with mode: 0644]
sirius/web/printer_personality.py [new file with mode: 0644]
sirius/web/static/compose.js [new file with mode: 0644]
sirius/web/static/fonts/BebasNeueWhatever.ttf [new file with mode: 0644]
sirius/web/static/fonts/PermanentMarker.ttf [new file with mode: 0644]
sirius/web/static/fonts/README.md [new file with mode: 0644]
sirius/web/static/personality.js [new file with mode: 0644]
sirius/web/templates/printer_compose.html [new file with mode: 0644]
sirius/web/templates/printer_overview.html
sirius/web/templates/printer_personality.html [new file with mode: 0644]
sirius/web/test_printer_compose.py [new file with mode: 0644]
sirius/web/test_printer_personality.py [new file with mode: 0644]
sirius/web/test_xkcd.py [new file with mode: 0644]
sirius/web/webapp.py
sirius/web/xkcd.py [new file with mode: 0644]
tests/browser/README.md [new file with mode: 0644]
tests/browser/compose.spec.js [new file with mode: 0644]
tests/browser/helpers.js [new file with mode: 0644]
tests/browser/package-lock.json [new file with mode: 0644]
tests/browser/package.json [new file with mode: 0644]
tests/browser/personality.spec.js [new file with mode: 0644]
tests/browser/playwright.config.js [new file with mode: 0644]
tests/browser/run-server.sh [new file with mode: 0644]
tests/browser/server.py [new file with mode: 0644]
tests/browser/teardown.js [new file with mode: 0644]