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.1.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

pibooth_qrcode-1.0.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pibooth_qrcode-1.0.1.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for pibooth_qrcode-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b3a21dc664561612bfdef832430d89290c6c017a309410451fe3f1e33e1362fa
MD5 e070ceab4989633695046213dc22f612
BLAKE2b-256 fdcd0764fab4e1ef15935e77fd12ed8869bc1eb241a8be91d4fabfcfa1a5d43f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pibooth_qrcode-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pibooth_qrcode-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52ffad727cc609476a38f01b25a9e4db32c124052d437a9c6b472faa7c288a30
MD5 b5ffbc2cd6fed1487f5cb28c956ed49e
BLAKE2b-256 1aefe9354d21dbcb5fc065bc8fe582b398ff63c19582e81c7cc0fe095c8ebab1

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