Metadata-Version: 2.1
Name: edc-label
Version: 0.1.15
Summary: labeling for the EDC
Home-page: http://github/clinicedc/edc-label
Author: Erik van Widenfelt
Author-email: ew2789@gmail.com
License: GPL license, see LICENSE
Keywords: django EDC barcode labeling
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Python: >=3.7
Requires-Dist: edc-auth
Requires-Dist: edc-base
Requires-Dist: pycups

|pypi| |travis| |coverage|

edc-label
---------

Print labels from edc modules



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 the 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 to a remote CUPS server
++++++++++++++++++++++++++++++++++++++++++++

``LOCAL_PRINTER_NAME``: printer as named on the EDC, your server

``REMOTE_IP_ADDRESS``: IP of remote CUPS server

``PRINTER_NAME``: printer name installed on remote CUPS server

For example::

	lpadmin -p LOCAL_PRINTER_NAME -E -v ipp://REMOTE_IP_ADDRESS/printers/PRINTER_NAME


Add an IP addressable remote printer 
+++++++++++++++++++++++++++++++++++++

``PRINTER_NAME``: printer as named on the EDC, your server

``REMOTE_IP_ADDRESS``: IP of remote printer

	lpadmin -p PRINTER_NAME -E -v ipp://REMOTE_IP_ADDRESS/ipp/print -m everywhere



.. |pypi| image:: https://img.shields.io/pypi/v/edc-label.svg
    :target: https://pypi.python.org/pypi/edc-label

.. |travis| image:: https://travis-ci.org/clinicedc/edc-label.svg?branch=develop
    :target: https://travis-ci.org/clinicedc/edc-label

.. |coverage| image:: https://coveralls.io/repos/github/clinicedc/edc-label/badge.svg?branch=develop
    :target: https://coveralls.io/github/clinicedc/edc-label?branch=develop


