pibooth-gallery-qr
Pibooth plugin that displays a QR code on the wait screen pointing to a local LAN photo gallery served by a companion HTTP service. The gallery shows photos taken during the current pibooth session (since the last pibooth startup) and serves them in a mobile-friendly grid with a full-screen lightbox.
Use case
Allow guests at an event to scan the QR with their phone (on the same Wi-Fi as the photobooth) and browse the photos from the current session without needing internet, Nextcloud, or any third-party service.
How it works
Two pieces:
The plugin pibooth_gallery_qr: on pibooth_startup it writes a session marker file. On state_wait_enter it blits a QR code onto the wait screen pointing to http://<host>:<port>/.
The gallery service (gallery.py shipped in the source repo): a tiny stdlib HTTP server that reads the session marker, serves the *_pibooth.jpg files of the configured directory whose mtime is greater than or equal to the marker’s mtime, and renders them with a click-to-fullscreen lightbox.
Install the plugin via pip and run the service via systemd. See the source repo for an example unit file.
Configuration
The plugin adds a [GALLERY_QR] section:
[GALLERY_QR] activate = True # enable the plugin (writes session marker) show_qr = True # display the QR on the wait screen host = # empty = autodetect (default route IP) port = 8081 session_file = /tmp/pibooth-session-start qr_position = bottom-left # top-left, top-right, bottom-left, bottom-right, center qr_size = 5 # 3-10 qr_margin = 10 # px from screen edge
License
MIT
Metadata
Release files for pibooth-gallery-qr 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pibooth_gallery_qr-1.0.1.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pibooth_gallery_qr-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / pibooth_gallery_qr-1.0.1.tar.gz
| Download URL | pibooth_gallery_qr-1.0.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c901173854a42835339d704714f7cb7fc72e8c79b4a6847c2d671a72a311ca5a
|
|
BLAKE2b-256 checksum How to use checksums |
d11995c9bfc673e259a12f9a4b9ead634704345b76e35290dcca540d16da006a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / pibooth_gallery_qr-1.0.1-py3-none-any.whl
| Download URL | pibooth_gallery_qr-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1e16942bf2d8e717a8b441c0e4c59a8fa06c686d7284b3a581b21cc8de6674a
|
|
BLAKE2b-256 checksum How to use checksums |
1d6499012dde4edde3eb2f2c608fd5d7cf033aad530a19cf3c9b653bb9bf5a5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|