Skip to main content

Pibooth plugin to display a QR Code on the screen during idle time.

Project description

Python 3.6+ PyPi package PyPi downloads

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)

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:

Locations

Example

Here is an example of the rendering you can get with this plugin on the wait screen:

Example screenshot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pibooth_qrcode-1.0.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

pibooth_qrcode-1.0.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file pibooth_qrcode-1.0.0.tar.gz.

File metadata

  • Download URL: pibooth_qrcode-1.0.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for pibooth_qrcode-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3e60159d574fce4ce1968bd58b4f4bb533d0577f3841e915fcac59cc2d8b8d41
MD5 beec7447fccb7304556fbf73705927c8
BLAKE2b-256 413d5ced51cf080cf20ab6d1a28ab107f010a22b591d09c7cacc514916e6622c

See more details on using hashes here.

File details

Details for the file pibooth_qrcode-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pibooth_qrcode-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for pibooth_qrcode-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a6851a95783d0da79ebfdd68fd0fb3f1bc9a862078d9e8875f05edcd2b9e872
MD5 6a94c4522221f4f4e890b4dc07cb0118
BLAKE2b-256 5aa9004a525da2641655d29210281dcfc6930b20264122fce48ac4306b609947

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page