Repository navigation
🍦 pip3 install -U pibooth 🍦
Maintenance release
2.1.1 collects the fixes found while running real photobooths since 2.1.0,
the ones ported from the 3.x branch (contributed by @clederman in PR #656),
and makes the touchscreen and the settings menu usable on a Raspberry Pi.
It also moves the PyPI upload into the CI. No breaking change.
New features
- The camera autofocus is driven when the lens is motorized. Picamera2 left
the lens of a Camera Module 3 at the position of its tuning file, whatever
the distance of the people in front of it. Two options appear in the
[CAMERA] section:autofocus(continuous, capture or off) and
lens_positionfor a fixed focus distance. - The CUPS queue can be cleared from the settings menu, in the PRINTER
section, next to the counters. A job stuck after a printer error used to
need a shell on the CUPS server, which is impractical during an event. pibooth-diag --displayreports the display performances: board, SDL
driver, window flags, temperature, throttling, cost of a refresh and of
the menu, and the frame rate really achieved.- The counters (pictures taken, printed, forgotten) are stored in
counters.jsonnext to the configuration file instead of a pickle file.
The file is human-readable, written atomically so that a power cut can
not truncate it, and reset instead of crashing the application if it is
corrupted. An existingcounters.pickleis migrated automatically, the
values are kept. - Releases are published on PyPI by the GitHub workflow when a version tag
is pushed (trusted publishing, no API token).
Major changes
- The settings menu was barely usable on a Raspberry Pi 3: about 570 ms of
latency on each key press, and a long press did nothing. The menu is now
rendered through the SDL blitter instead of the one of pygame, which is
not optimized on ARM. - A touch was handled twice in the settings menu, SDL reporting it both as
a finger event and as a synthesised mouse event. Every key tapped on the
virtual keyboard was entered twice. - Touch positions were converted with the size of the desktop instead of
the size of the window. Fullscreen was unaffected, but in a window every
touch landed too far right and too low, so the virtual keyboard closed
itself on each key. - The escape key could not leave the settings menu while a text or a color
input was selected: it deleted a character instead and went no further, so
the submenu could not be left. The backspace key did nothing in those same
inputs. Both keys behave as expected again. - pibooth started only if the CUPS server was reachable as soon as
pycups
was installed: a stopped or not-yet-started CUPS made it crash at startup.
It now starts without printing support and logs a warning, as it already
did whenpycupsis absent. - The DSLR support crashed with python-gphoto2 >= 2.5 as soon as libgphoto2
logged something (strpassed to the logging callback instead ofbytes).
Both are accepted. - The Swedish texts "Or you can still print this photo" and "Please forget
this photo" contained invalid escape sequences instead of line breaks. pygame-menuis no longer pinned to 4.0.7: any 4.x release is accepted.
Documentation update
- The Read the Docs pages share the identity of pibooth.org: same palette,
same typography, and a light and dark theme. - The release procedure describes the automated publication and keeps the
manual upload as a documented fallback. - The installation page says that on a Raspberry Pi 5
lgpiois the only
GPIO backend supported by gpiozero, and how to install it withapt.
Software versions update
pygame-menu >= 4.0, < 5(was== 4.0.7).- The continuous integration builds the documentation, fails on a flake8 or
pylint regression and enforces a coverage floor. The suite went from 117
to 165 tests.