This commit is contained in:
Tanner Collin 2022-10-11 23:41:52 -06:00
parent eb70a2410d
commit a57e563f8c
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,9 @@ logging.basicConfig(
format='[%(asctime)s] %(levelname)s %(module)s/%(funcName)s - %(message)s',
level=logging.DEBUG if DEBUG else logging.INFO)
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
logging.info('')
logging.info('Boot up')
@ -190,7 +193,7 @@ def print_nametag(name, guest=False):
name_size = 305
im = Image.open('label.png')
im = Image.open(location + '/label.png')
width, height = im.size
draw = ImageDraw.Draw(im)
@ -213,7 +216,7 @@ def print_nametag(name, guest=False):
draw.text((x, y), quote, font=font, fill='black')
im.save('tmp.png')
os.system('lp -d LabelWriter-450 tmp.png 2> /dev/null')
os.system('lp -d dymo tmp.png 2> /dev/null')
def message_protovac(message):

BIN
tmp.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 39 KiB