Compare commits
No commits in common. "fef55c722b68dd6495a791f3143b5d36f3241f81" and "062e6b482faa4d1d7f2ec89f8da2f7c2da05478f" have entirely different histories.
fef55c722b
...
062e6b482f
17
README.md
17
README.md
@ -1,23 +1,18 @@
|
|||||||
# Receipt Printer
|
# Receipt Printer
|
||||||
|
|
||||||
This software is designed to run on a debian based system and acts as a middle-man between the EZGG LAN Manager database and the USB interface of the receipt printer.
|
This software is designed to run on a debian based system and acts as a middle-man between the EZ LAN Manager database and the USB interface of the receipt printer.
|
||||||
|
|
||||||
# Notes
|
# Notes
|
||||||
|
|
||||||
- Does only work on Linux
|
- Does only work on Linux
|
||||||
|
- Needs root privileges or udev config to work
|
||||||
|
- Designed to run alone on a Raspberry Pi
|
||||||
- Not meant to be exposed to the internet, local deployment only
|
- Not meant to be exposed to the internet, local deployment only
|
||||||
- For EZGG LAN Manager configuration, check README in that repo
|
- For EZ LAN Manager configuration, check README in that repo
|
||||||
|
|
||||||
# Deploy
|
# Deploy
|
||||||
|
|
||||||
1. Configure password and port in `main.py`
|
1. Configure password and port in `main.py`
|
||||||
2. Make sure USB printer is connected to device
|
2. Make sure USB printer is connected to device
|
||||||
3. Install requirements in venv
|
3. Install requirements with sudo
|
||||||
4. Adapt `receipt-printer.service` as needed and move to `~/.config/systemd/user`
|
4. Run `main.py` with sudo
|
||||||
5. Enable unit in systemd:
|
|
||||||
```sh
|
|
||||||
systemctl --user daemon-reexec
|
|
||||||
systemctl --user daemon-reload
|
|
||||||
systemctl --user enable receipt-printer
|
|
||||||
systemctl --user start receipt-printer
|
|
||||||
```
|
|
||||||
|
|||||||
@ -1,14 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Receipt Printer
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
WorkingDirectory=/opt/ReceiptPrinter
|
|
||||||
ExecStart=/opt/ReceiptPrinter/printer-venv/bin/python main.py
|
|
||||||
Restart=always
|
|
||||||
RestartSec=3
|
|
||||||
|
|
||||||
Environment=PYTHONUNBUFFERED=1
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
||||||
Loading…
Reference in New Issue
Block a user