This is a Flask app to manage a collection of stickers and print them using a Brother QL thermal label printer
In scripts:
convert.shto apply transformation to an image before adding it to the collectionprint.shto print an image
IMPORTANT : to be able to access the printer, the user needs to be in the lp group : usermod -a -G lp <user> (and the restart your unix session)
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
cd scripts
(cd assets && bash fetch_assets)Download the appropriate executable of didder in scripts/ and edit print.sh accordingly (#FIXME ^^)
And then start the dev server:
source venv/bin/activate
FLASK_APP=app.py FLASK_ENV=development flask --debug runTo be able to connect to it via the local network, add --host 0.0.0.0 at the end of the command.
Enable the service (if the server is already running, skip the --now:
sudo systemctl enable ./stickers.service --now