Labeling
Project description
edc-label
Print labels from for clinic/edc projects
To add print servers update settings.CUPS_SERVERS:
# settings.py ... CUPS_SERVERS = ["localhost", "prn.sample.org"] ...
If not set, the default print server is “localhost”.
Note: it is fine to just configure the local CUPS server (localhost) with remote printers as per below.
CUPS and printer Installation
Install CUPS Print Server:
sudo apt-get install cups sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.original sudo chmod a-w /etc/cups/cupsd.conf.original
Edit /etc/cups/cupsd.conf to listen on your public IP:
sudo nano /etc/cups/cupsd.conf
Add the last line with your public IP:
Listen 127.0.0.1:631 # existing loopback Listen Listen /var/run/cups/cups.sock # existing socket Listen --> Listen PUBLIC_IP:631 # Listen on the LAN interface, Port 631 (IPP)
Restart CUPS:
sudo systemctl restart cups.service
Add a remote printer by name to your CUPS server
LOCAL_PRINTER_NAME: printer as named on the EDC, your server
REMOTE_CUPS_IP_ADDRESS: IP of remote CUPS server
REMOTE_PRINTER_NAME: printer name installed on remote CUPS server
lpadmin -p LOCAL_PRINTER_NAME -E -v ipp://REMOTE_CUPS_IP_ADDRESS/printers/REMOTE_PRINTER_NAME
For example:
lpadmin -p ambition_clinic_label_printer -E -v ipp://154.70.150.42/printers/ambition_clinic_label_printer lpadmin -p ambition_lab_label_printer -E -v ipp://154.70.150.42/printers/ambition_lab_label_printer lpadmin -p specimen_reception_label_printer -E -v ipp://154.70.150.42/printers/specimen_reception_label_printer
Add an IP addressable remote printer
REMOTE_CUPS_IP_ADDRESS: printer IP installed on remote CUPS server
lpadmin -p LOCAL_PRINTER_NAME -E -v ipp://REMOTE_CUPS_IP_ADDRESS/ipp/print -m everywhere
For example:
lpadmin -p PRINTER_NAME -E -v ipp://REMOTE_IP_ADDRESS/ipp/print -m everywhere
See also http://labelary.com/viewer.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file edc-label-0.3.11.tar.gz
.
File metadata
- Download URL: edc-label-0.3.11.tar.gz
- Upload date:
- Size: 38.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d6dd4035b00632e784cd80878cb4307fadb9e81657e4aa8a5d32251ef6c721f |
|
MD5 | c56520377892ceb2182319ff557169c8 |
|
BLAKE2b-256 | fe13144117b07e6218ca27f3f5aea0e5abee9373e3e2a665ef4fbd44998415b9 |
File details
Details for the file edc_label-0.3.11-py3-none-any.whl
.
File metadata
- Download URL: edc_label-0.3.11-py3-none-any.whl
- Upload date:
- Size: 42.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b822f28c36ef858d3fc94b0be59c2a8d144188990220ad2063605b299034af4f |
|
MD5 | 6e5a2c962ac43e03ed8cb0e67354a787 |
|
BLAKE2b-256 | f7752c6565309713787697d8080730ae6122bba0f0e8cd7b104e596b904b3f59 |