Git Product home page Git Product logo

pibooth-qrcode's Introduction

Pibooth

Python 3.6+ PyPi package PyPi downloads Tests Codecov

The pibooth project provides a photobooth application out-of-the-box in pure Python for Raspberry Pi. Have a look to the wiki to discover some realizations from GitHub users, and don't hesitate to send us photos of your version.

Settings

Features

  • Interface available in Danish, Dutch, English, French, German, Hungarian, Norwegian, Portuguese (Portugal and Brazil), Spanish and Swedish (customizable)
  • Capture from 1 to 4 photos and concatenate them in a final picture
  • Support all cameras compatible with gPhoto2, OpenCV and Raspberry Pi
  • Support for hardware buttons and lamps on Raspberry Pi GPIO
  • Fully driven from hardware buttons / keyboard / mouse / touchscreen
  • Auto-start at the Raspberry Pi startup
  • Animate captures from the last sequence during idle time
  • Store final pictures and the individual captures
  • Printing final pictures using CUPS server (printing queue indication)
  • Custom texts can be added on the final picture (customizable fonts, colors, alignments)
  • Custom background(s) and overlay(s) can be added on the final picture
  • All settings available in a configuration file (most common options in a graphical interface)
  • Highly customizable thanks to its plugin system, you can install plugins developed by the community from PyPI or develop your own plugin.

Documentation

Documentation

Plugins

Here is a list of known plugins compatible with Pibooth

Pibooth organisation's plugin

Third-party plugins

Third-party plugins can be found on GitHub or on plugins on PyPI. Here is a short list:

Sponsors

An enormous thanks to our sponsors:

It means a lot to us!

pibooth-qrcode's People

Contributors

anxuae avatar werdeil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pibooth-qrcode's Issues

Individual photo link just with google account

Install last version of plugins:

Then set the [QRCODE][prefix_url] = {url}

Originally posted by @anxuae in #15 (comment)

Hi, I tried that but with the direct link you have to login to a google account before anything is shown.
Not everyone has a google account, do you know if there is another way to access a single photo without an account?

Thank you and best wishes,
Martin

QR code messes up configuration

I am still trying to get the qrcode plugin working.
Found an error and replicated it twice. Here are some observations:

  1. the plugin does NOT update the configuration file on the first run!
  2. But it works using some defaults set in a different config file at "/usr/local/lib/python3.7/dist-packages/pibooth_qrcode.py"
  3. from the pibooth application I can enter "settings" and there the plugin config is present. However when I change a setting in there, and exit the settings menu, application crashes.
  4. After that the configuration file "/home/pi/.config/pibooth/pibooth.cfg" gets messed up with unwanted parentheses and commas.

I attach a log file and the messed up config file (config file I renamed to txt extension).

pibooth.log

pibooth.txt

Enhancement with side text !!??!

I thought maybe it could be nice to add a little text on the side.

Like having just a option in the QR-code option in the Menu setting below the colors to edit the text (with one ore two line)
Plus an other option to turn on/off the text if we want or not text.
Here is screen shot that I mod to show what I've in mind

Screen Shot 2021-06-07 at 2 09 19 PM

OR

Screen Shot 2021-06-07 at 2 09 19 PM

Also I understand that it's possible to me because I don't use the arrows.
It is just an idea. But if you think this a good one, maybe it's worth the shot!

Dependency loop issue when installing in developer mode

When trying to install the plugin on a fresh install in developer I found that there is a dependency loop issue:

~/git/pibooth-qrcode $ sudo pip3 install -e .
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Obtaining file:///home/pi/git/pibooth-qrcode
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/pi/git/pibooth-qrcode/setup.py", line 12, in <module>
        import pibooth_qrcode as plugin  # nopep8 : import shall be done after adding setup to paths
      File "/home/pi/git/pibooth-qrcode/pibooth_qrcode.py", line 5, in <module>
        import qrcode
    ModuleNotFoundError: No module named 'qrcode'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/pi/git/pibooth-qrcode/

On line 12 of setup.py, we import the pibooth-qrcode, but this raised an issue as qrcode package is not (yet) installed (it is in fact part of the dependencies).

Manually installing qrcode package before fixes the issue.
Note: the issue doesn't occur when installing the package from pipy

@anxuae I don't know how to fix this kind of issue, any hint?

Print Qrcode in photo

Hi, thanks a lot for this plugin ! it's terrific.

i was wondering, is it possible to have the Qrcode on the print itself, so users can download their photo later. and not stay in front of photobooth)

Problem with QR Code plugin

Guys, Hi everyone!
I cannot get around the qrcode plugin.
I upgraded the pibooth to latest,
I installed the plugin sucessfuly,
now running the pibooth app it throws an error!
Please, help! @sravel @anxuae

Here is the error below:

#pygame-menu 4.0.2
Traceback (most recent call last):
  File "/usr/local/bin/pibooth", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/pibooth/booth.py", line 422, in main
    plugin_manager = create_plugin_manager()
  File "/usr/local/lib/python3.7/dist-packages/pibooth/plugins/__init__.py", line 19, in create_plugin_manager
    plugin_manager.load_setuptools_entrypoints(hookspecs.hookspec.project_name)
  File "/usr/local/lib/python3.7/dist-packages/pluggy/manager.py", line 299, in load_setuptools_entrypoints
    plugin = ep.load()
  File "/usr/local/lib/python3.7/dist-packages/importlib_metadata/__init__.py", line 167, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pibooth_qrcode'

2 qrcode

Hello
I wanted to know if we could display 2 qrcodes.
Thank you

Publish on pypi

Hi @werdeil

Can you set the Secrets in the settings repository:

PYPI_PASSWORD = your pypi password
PYPI_USERNAME = your pypi username

It will permit to setup a publish workflow when a new version tag is set.
Don't worry, nobody (even you) can read the values of this secrets

thanks

Enhancement Request: QR-Code Size

Currently the QR-Code is too small for my screen and I would be happy if I could change the size with a variable.

I have not testet it, but I think that could be done very easy by setting version to a higher number (int between 1 and 40).

The version parameter is an integer from 1 to 40 that controls the size of
the QR Code (the smallest, version 1, is a 21x21 matrix). (https://pypi.org/project/qrcode/)

Thanks and regards,
Mozdi

Wait state and Google Photos link

Hi,
First thanks a lot for pibooth and the various addons! This is great! I have two questions:

  1. Is there a way to remove the QR code after x seconds when in 'wait' state (similar to what is done for the picture in pibooth)?
  2. Is it possible to get this to work with Google Photos? I also use the Google photos addon and would like to display the URL to the picture uploaded, but from what I understand the actual picture name once uploaded is randomly generated by Google.

Impossible to do the update

Hello
I find your code excellent but I've a little problem
When I install de new version and I run the pibooth on raspberry, it's always the 0.0.3 version of pibooth Qr-code which be launch.
I reinstall many times the code but I don't find the solution.
Do you have an idea????
Thank you and sorry for my English

Google photo QRCode link not working

First I would like to thanks for the great job you have done. I'm not a dev, I'm just a simple user and you made a very handfull plugin.

I have an issue, maybe because of my poor knowledge but I need some help.

I manage to upload my pibooth picture to a google photo album.
I made the configuration to the plugin via the google's credential.
If the prefix URL is : https://photos.app.goo.gl/XxXxXxXxXxXxXxXxXx , it works and I manage to go to the google album where all the pibooth pictures are dropped.
But if the prefix URL is : https://photos.app.goo.gl/XxXxXxXxXxXxXxXxXx/{picture} , I have an error page saying : "https://goog.gl/app/photos/XxXxXxXxXxXxXxXxXx/YYYY-MM-DD-HH-mm-ss_pibooth.jpg?_nr=1" is not a valid DynamicLink.

Is anybody manage to use google photo to have access to one picture (and only one, not the entire album) through the QRCode plugin?

As I said, I m not a dev so maybe the solution is obvious, and if it is I apologize in advance.

QR code disappear on print event

Hi there,

I have installed the below plugin which works fine individually:
https://github.com/pibooth/pibooth-qrcode

However I noticed that the QR code disappears from the final screen once you touch the print button. Not sure if this is an expected behavior of the plugin as I did not find it implemented, so I suspect a problem with the hooks when the screen needs to be refreshed. I also noticed that the counter of the remaining printing option also disappears or blinks for a few milliseconds.

Do you have any idea about it?

Thanks for your feedback in advance.

Local IP to download the picture

Can this plug-in be used local? I mean: if you dan't want to upload the pictures to google photos. The pictures are stored for instance in the folder /home/pi/Desktop/Pictures/pibooth If you are connected with your phone to the same network, is it possible that the QR-code contains 192.168.1.204/home/pi/Desktop/Pictures/pibooth/2024-04-08-19-08-33_pibooth.jpg to donwload this to your phone?

When I type this URL (192.168.1.204/home/pi/Desktop/Pictures/pibooth/2024-04-08-19-08-33_pibooth.jpg) on my phone, I got the "Page not found"-error so maybe you have to set something on the RPI to access this photo?

Google photo url generation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.