pibooth-qrcode
pibooth-qrcode is a plugin for the pibooth application.
It adds the display of a custom qrcode at the print and wait state
Install
$ pip3 install pibooth-qrcode
Configuration
Here below the new configuration options available in the pibooth configuration. The keys and their default values are automatically added to your configuration after first pibooth restart.
[QRCODE]
# URL which may be composed of variables: {picture}, {count}
prefix_url = https://github.com/pibooth/pibooth
# Foreground color
foreground = (255, 255, 255)
# Background color
background = (0, 0, 0)
# Optional text displayed close to the QR code
side_text =
# Offset (x, y) from location
offset = (20, 40)
# Location on 'wait' state: topleft, topright, bottomleft, bottomright, midtop-left, midtop-right, midbottom-left, midbottom-right
wait_location = bottomleft
# Location on 'print' state: topleft, topright, bottomleft, bottomright, midtop-left, midtop-right, midbottom-left, midbottom-right
print_location = bottomright
QR code URL
The URL linked to the QR code can be define dynamically using some state variables or configuration options. Available variables to forge the URL are:
picture : current picture filename
count : current counters. You can access to values using {count.xxx} (see counters in configuration menu)
url : URL defined in the app.previous_picture_url attribute. This attribute can be defined by another plugin.
For instance, https://photos.google.com/share/AxFF4t56kiJiu89m/{picture} will generate:
https://photos.google.com/share/AxFF4t56kiJiu89m/2021-06-11-10-14-08_pibooth.jpg
QR code locations
Here is the possible QR code location at screen:
Example
Here is an example of the rendering you can get with this plugin on the wait screen:
Metadata
Release files for pibooth-qrcode 1.0.2
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_qrcode-1.0.2.tar.gz | 17.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pibooth_qrcode-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.2 kB
Release files / pibooth_qrcode-1.0.2.tar.gz
| Download URL | pibooth_qrcode-1.0.2.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d73241987268e0c26b522bacbfd406800e73d243e5a8f6e304939e581cbadce9
|
|
BLAKE2b-256 checksum How to use checksums |
1ae2a41a8c2d7e2adca49b6d65cbd1d107d307b4d08e1aaa0152c9bf7b7d2a77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / pibooth_qrcode-1.0.2-py3-none-any.whl
| Download URL | pibooth_qrcode-1.0.2-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df7ff50fee2ea237b1881aab35a0fc49f6920519bed3c025eb7f94c53f517884
|
|
BLAKE2b-256 checksum How to use checksums |
e7cdcb9a3af27242a7b272d530f00b05f79c0f9168fb4b41774f8c8507c8bd75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
|