Pibooth plugin: QR code on wait screen pointing to a local gallery service
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pibooth_gallery_qr-1.0.0.tar.gz.
File metadata
- Download URL: pibooth_gallery_qr-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0de3289ce0c782adae1bfbb61e6dd60f0965ce6e1830e0f6ac14401c7c5e4596
|
|
| MD5 |
b368bc630c55f676a0f104276e38b78c
|
|
| BLAKE2b-256 |
c8e6bc70840f0c68a9bb2985f48fc8f3a2be8f3473c346bcfa9584d7516fd545
|
File details
Details for the file pibooth_gallery_qr-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pibooth_gallery_qr-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e351a95d7e141a0beda7a2c0adac92f6f41aeafd059e04c39dfe4e4d98ae5fc5
|
|
| MD5 |
aeefd81c024751ba0da80ee125a2ec3c
|
|
| BLAKE2b-256 |
7b080f5a78f31e7214621c580a4b56dd2989f12e5e54790fe645f723881532b7
|