diff --git a/source/_components/cups.markdown b/source/_components/cups.markdown index 3b8e0fb9524..1a5380a7052 100644 --- a/source/_components/cups.markdown +++ b/source/_components/cups.markdown @@ -13,12 +13,18 @@ redirect_from: The `cups` sensor platform is using the open source printing system [CUPS](https://www.cups.org/) to show details about your printers. +## Setup + +You will need to install the `python3-dev` or `python3-devel` pacakge and the development files for CUPS (`libcups2-dev` or`cups-devel`) on your system manually (e.g., `sudo apt-get install python3-dev libcups2-dev` or `sudo dnf -y install python3-devel cups-devel`) along with a compiler (`gcc`). This integration doesn't work out-of-the-box in a container-based setup. + To set up the sensor the "Queue Name" of the printer is needed. The fastest way to get it, is to visit the CUPS web interface at "http://[IP ADDRESS PRINT SERVER]:631" and go to "Printers".

+## Configuration + To enable the CUPS sensor, add the following lines to your `configuration.yaml`: ```yaml @@ -47,8 +53,3 @@ port: default: 631 {% endconfiguration %} -
- -You will need to install the `python3-dev` or `python3-devel` and the development files for CUPS (`libcups2-dev` or`cups-devel`) package on your system manually (eg. `sudo apt-get install python3-dev libcups2-dev` or `sudo dnf -y install python3-devel cups-devel`) along with a compiler (`gcc`). - -