LgHS / asciimaton

asciimaton for liege hackerspace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Send print jobs on a USB laser printer

drskullster opened this issue · comments

We should be able to print on a USB laser printer. We can use CUPS, there's a Python binding called pycups that we should test.

CUPS is set up and working on the Pi.

print subprocess.Popen("lpr -P NOM_IMPRIMANTE /path/path/fessestoprint.jpg", shell=True, stdout=subprocess.PIPE).stdout.read()

Cups : lpr -P NOM_IMPRIMANTE /path/path/fessestoprint.jpg