receive data via IPC msg queue
This commit is contained in:
30
README.md
30
README.md
@ -1,29 +1,37 @@
|
||||
# reHDDPrinter #
|
||||
|
||||
Generate label and print them via brother_ql to
|
||||
- Generate label and print them via brother QL-570.
|
||||
- Receive data from [reHDD](https://git.mosad.xyz/localhorst/reHDD) via IPC message queue.
|
||||
|
||||
## Printer usage ##
|
||||
# Install #
|
||||
|
||||
`pip install qrcode sysv-ipc pycstruct`
|
||||
|
||||
```
|
||||
cd /root/
|
||||
git clone https://git.mosad.xyz/localhorst/reHDDPrinter.git
|
||||
cd reHDDPrinter
|
||||
chmod +x reHDDPrinter.py
|
||||
cp reHDDPrinter.service /lib/systemd/system/reHDDPrinter.service
|
||||
systemctl daemon-reload
|
||||
systemctl enable /lib/systemd/system/reHDDPrinter.service
|
||||
```
|
||||
|
||||
## Test printer manually ##
|
||||
|
||||
```
|
||||
export BROTHER_QL_PRINTER=file:///dev/usb/lp0
|
||||
export BROTHER_QL_MODEL=QL-570
|
||||
```
|
||||
|
||||
|
||||
|
||||
`brother_ql print -l 62 Untitled.png`
|
||||
|
||||
## Printer/Paper Info ##
|
||||
- Brother QL-570
|
||||
- Paper With: 62mm or 696px
|
||||
|
||||
Brother QL-570
|
||||
|
||||
Paper With: 62mm or 696px
|
||||
|
||||
|
||||
## Install ##
|
||||
|
||||
see https://github.com/pklaus/brother_ql
|
||||
|
||||
pip install qrcode
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user