Skip to content

Manage a collection of stickers and print them using a Brother QL thermal label printer

License

Notifications You must be signed in to change notification settings

hackstub/stickers.local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stickers.local

This is a Flask app to manage a collection of stickers and print them using a Brother QL thermal label printer

Scripts

In scripts:

  • convert.sh to apply transformation to an image before adding it to the collection
  • print.sh to 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)

Developement

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 run

To be able to connect to it via the local network, add --host 0.0.0.0 at the end of the command.

Launch at startup

Enable the service (if the server is already running, skip the --now:

sudo systemctl enable ./stickers.service --now

About

Manage a collection of stickers and print them using a Brother QL thermal label printer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •