]> git.aero2k.de Git - sirius.git/commit
Share from Android to the printer
authorThorsten <mail@aero2k.de>
Fri, 27 Nov 2026 09:57:09 +0000 (10:57 +0100)
committerThorsten <mail@aero2k.de>
Fri, 27 Nov 2026 09:57:09 +0000 (10:57 +0100)
commitb1cac362c342fb9f8eab3168ab591ff5115b57e2
tree4f41f2f77819617bc5c6fb131d29ad4f13af472d
parentd60bd9995948307b580a8694f45cb81d6cf7dd12
Share from Android to the printer

sirius is now an installable web app with a share target. Things shared
to it open the compose page filled in: photos as a Dithergram (EXIF
rotation applied, scaled down on the server), xkcd links as the comic,
other text and links as a Poster. Printing still needs a button press,
so a foreign site posting to /share can't print anything.

With several printers the compose page offers a choice.

The tests now dispose of each test's engine, the suite had grown past
Postgres's 100 connections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 files changed:
deploy/pi/README.md
sirius/testing/base.py
sirius/web/printer_compose.py
sirius/web/pwa.py [new file with mode: 0644]
sirius/web/static/compose.js
sirius/web/static/icon-192.png [new file with mode: 0644]
sirius/web/static/icon-512.png [new file with mode: 0644]
sirius/web/static/icon-maskable-512.png [new file with mode: 0644]
sirius/web/templates/base.html
sirius/web/templates/printer_compose.html
sirius/web/test_printer_compose.py
sirius/web/test_pwa.py [new file with mode: 0644]
sirius/web/webapp.py
tests/browser/share.spec.js [new file with mode: 0644]