27 lines
686 B
Plaintext
27 lines
686 B
Plaintext
### install
|
|
```bash
|
|
git clone git@github.com:5shekel/madpeset.git && cd madpeset
|
|
git submodule update --init --recursive
|
|
|
|
python -m venv venv
|
|
source venv/bin/activate
|
|
pip install pillow==9.5.0 brother_ql
|
|
```
|
|
to get the camera working, you need to install the drivers for the camera. I used the [official guide](https://www.raspberrypi.org/documentation/configuration/camera.md) to install the drivers.
|
|
|
|
if you use a webcam try
|
|
```bash
|
|
sudo apt install fswebcam
|
|
```
|
|
|
|
### run
|
|
```bash
|
|
python txt.py
|
|
```
|
|
i usually add a tmux session to `~/.bashrc` to run the script on startup
|
|
|
|
|
|
test printer
|
|
```py
|
|
brother_ql -b pyusb -m QL-550 -p usb://0x04f9:0x2016 print -l 62 pefectFake.jpg --dither
|
|
``` |