You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/sensor.cups.markdown
+16-6Lines changed: 16 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -33,12 +33,22 @@ sensor:
33
33
- C430
34
34
```
35
35
36
-
Configuration variables:
37
-
38
-
- **printers** array (*Required*): List of printers to add.
39
-
- **host** (*Optional*): IP address of the CUPS print server.
40
-
- **port** (*Optional*): Port address of the CUPS print server. Defaults to 631.
41
-
36
+
{% configuration %}
37
+
printers:
38
+
description: List of printers to add.
39
+
required: true
40
+
type: list
41
+
host:
42
+
description: IP address of the CUPS print server.
43
+
required: false
44
+
type: string
45
+
default: 127.0.0.1
46
+
port:
47
+
description: Port of the CUPS print server.
48
+
required: false
49
+
type: int
50
+
default: 631
51
+
{% endconfiguration %}
42
52
43
53
<p class='note'>
44
54
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`).
0 commit comments