Minor fixes

This commit is contained in:
Tanner Collin 2022-10-16 18:58:00 -06:00
parent 70b0b47d77
commit 1edf07c1cc
2 changed files with 9 additions and 1 deletions

View File

@ -220,6 +220,8 @@ Optionally set up a cronjob:
``` ```
$ cd rootfs/ # on SD card $ cd rootfs/ # on SD card
$ sudo touch var/spool/cron/crontabs/pi $ sudo touch var/spool/cron/crontabs/pi
$ sudo chmod u=rw,og= var/spool/cron/crontabs/pi
$ sudo chown pi:crontab var/spool/cron/crontabs/pi
``` ```
Edit `var/spool/cron/crontabs/pi` (optional): Edit `var/spool/cron/crontabs/pi` (optional):
@ -301,3 +303,9 @@ $ sudo lpadmin -p dymo -v `sudo lpinfo -v | grep DYMO | cut -d" " -f2` -m 'dymo:
$ sudo cupsenable dymo $ sudo cupsenable dymo
$ sudo cupsaccept dymo $ sudo cupsaccept dymo
``` ```
Test the printer:
```
$ echo "hello world" | lp -d dymo -
```

View File

@ -216,7 +216,7 @@ def print_nametag(name, guest=False):
draw.text((x, y), quote, font=font, fill='black') draw.text((x, y), quote, font=font, fill='black')
im.save('tmp.png') im.save('tmp.png')
os.system('lp -d dymo tmp.png 2> /dev/null') os.system('lp -d dymo tmp.png > /dev/null 2>&1')
def message_protovac(message): def message_protovac(message):