Personalising the UI; Adding an autostart script; and more!
In part 6 of this series we’ll look at some additional improvements we can make for the photo booth.
The assets directory contains a number of images.
These images are used as the different “screens” within the photo booth application.
At the moment we need to start the Photo Booth script manually after powering on the Raspberry Pi. Ideally, however, the script should be run automatically as soon as the Pi starts up.
Save and exit the file (Ctrl + X).
Finally, here are some other ideas that you can add to your own photo booth.
If your Pi photo booth has internet access, then the Pi’s clock will automatically be updated to the correct time upon connecting.
If you are planning to operate the photo booth without internet access, you should note that the clock of the Pi will be incorrect. The impact of this, is that the filenames given to your photos (which include a timestamp as part of the filename) will not be perfectly reliable.
You can choose to rectify this by installing a “Real-time clock” (RTC) module onto your Raspberry Pi. Typically, an RTC works by attaching a small battery to the Pi, which ensures that the clock remains powered after shut down.
You can pick-up this piece of hardware from a local electronic store, or online from your favourite electronics supplier.
Turning off the Pi by simply cutting the power can have side effects, specifically: data loss. This is similar to removing a USB stick from your computer without using the “safely eject” menu.
If you find that any of your photos get “corrupted” (usually the last one the was saved), then installing a shutdown button is one method to correct this.
There are plenty of tutorials for doing this online and is a great feature to include.
My code actually includes an “Exit app” feature if you attach a button across GPIO pin 13 and ground (which can also be used to avoid corrupting images).
Another method to prevent data loss is to backup your photos to the cloud.
Dropbox is a great (free) solution to this problem, and can be installed on a Raspberry Pi - albeit with some challenge.
We’ll be looking at this further in part 8, but there are some other ways to do this described here.
For the next article in this series, I’ll be talking about some tips for your photo booth’s debut, and ideally how to keep your big day “stress free”.