Dilbert comic printer for Raspberry Pi
Makes use of the thermal printer ZJ-58. A tutorial on the setup of the printer can be found on Adafruit.
Required libaries and Python packages are installed via
sudo apt install python3-pip libopenjp2-7 libtiff5
sudo pip3 install Pillow
git clone https://github.com/kwasmich/Pibert.git $HOME/Pibert
User specific systemd setup is not easy for sure :-(
# Create user specific systemd folder
mkdir $HOME/.config/systemd/user
# Link service and timer files
ln -s $HOME/Pibert/systemd/dilbert-today.service $HOME/.config/systemd/user
ln -s $HOME/Pibert/systemd/dilbert-today.timer $HOME/.config/systemd/user
ln -s $HOME/Pibert/systemd/dilbert-random.service $HOME/.config/systemd/user
ln -s $HOME/Pibert/systemd/dilbert-random.timer $HOME/.config/systemd/user
ln -s $HOME/Pibert/systemd/dilbert-buttond.service $HOME/.config/systemd/user
# Reload user specific systemd units
systemctl --user daemon-reload
# Enable and start timers
systemctl --user enable dilbert-today.timer
systemctl --user start dilbert-today.timer
systemctl --user enable dilbert-random.timer
systemctl --user start dilbert-random.timer
# Enable and start daemon for the arcade button
systemctl --user enable dilbert-buttond.service
systemctl --user start dilbert-buttond.service
# Make sure the timer runs while the user is not logged in
sudo loginctl enable-linger $USER
The 3D printable case is intended for use with Raspberry Pi Model B (from 2012).