madpeset/readme

29 lines
855 B
Plaintext
Raw Permalink Normal View History

2024-01-09 10:54:22 +02:00
### 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
2024-01-09 10:56:43 +02:00
pip install pillow==9.5.0 brother_ql
2023-09-20 07:28:09 +03:00
```
2024-01-09 10:54:22 +02:00
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.
2023-09-20 07:28:09 +03:00
2024-01-09 10:54:22 +02:00
if you use a webcam try
```bash
sudo apt install fswebcam
2024-01-07 12:44:23 +02:00
```
2024-01-09 13:45:23 +02:00
### Fonts
im using google fonts, you can download them from [here](https://fonts.google.com/?subset=hebrew&noto.script=Hebr) and put that `.ttf` file in `fonts/`
2024-01-07 12:44:23 +02:00
2024-01-09 13:45:23 +02:00
### Run
2024-01-09 10:54:22 +02:00
```bash
2024-01-09 13:45:23 +02:00
streamlit run txt.py
2024-01-07 12:44:23 +02:00
```
2024-01-09 10:54:22 +02:00
i usually add a tmux session to `~/.bashrc` to run the script on startup
2023-09-20 04:25:27 +03:00
2024-01-09 10:54:22 +02:00
test printer
```py
brother_ql -b pyusb -m QL-550 -p usb://0x04f9:0x2016 print -l 62 pefectFake.jpg --dither
```