keyboard to thermal printer
Go to file
2024-01-07 10:38:46 +00:00
fonts text and image 2023-09-20 05:28:09 +01:00
.gitignore text and image 2023-09-20 05:28:09 +01:00
.gitmodules text and image 2023-09-20 05:28:09 +01:00
pefectFake.jpg text and image 2023-09-20 05:28:09 +01:00
readme text and image 2023-09-20 05:28:09 +01:00
switch.sh text and image 2023-09-20 05:28:09 +01:00
txt.py added letters 2024-01-07 10:38:46 +00:00

```py
brother_ql -b pyusb -m QL-550 -p usb://0x04f9:0x2016 print -l 62 pefectFake.jpg --dither
```
```
byobu new-window -n 'printer' 'cd ~/printBash && bash switch.sh'
```


To command the camera in the terminal I suggest to use the fswebcam package. To install:

`sudo apt install fswebcam`

To take an image with a certain resolution and hide the standard banner:

`fswebcam -r 1280x720 --no-banner /images/image1.jpg`

To find the supported webcam resolutions:

`v4l2-ctl --list-formats-ext`

You could also use ffmpeg to take images and video. To install:

`sudo apt install ffmpeg`

To take an image:

`ffmpeg -f v4l2 -video_size 1280x720 -i /dev/video0 -frames 1 out.jpg`

A more advanced alternative is mjpeg-streamer, which enables you to stream the camera in a browser. You can find a detailed tutorial how to set that up here.