Convert the CUPS printer queues to mqtt messages
The message will be posted to the following topic: cups/brother_hl_2070n (for a printer named brother_hl_2070n)
{
"jobs-completed":499,
"jobs-queued":0
}
{
"mqtt": {
"url": "tcp://192.168.2.98:1883",
"username": "user",
"password": "password",
"deduplicate": true
},
"cups": {
"host": "192.168.3.15",
"port": 631,
"username": "anonymous"
}
}
When deduplicate is set to true no duplicate mqtt messages will be sent.
The bridge maintains two status topics:
.../bridge/state| Value | Description |
|---|---|
online | The bridge is started |
offline | The bridge is currently not started. |
This application is intended to be executed using docker. Example docker compose usage:
cupsmqtt:
hostname: cupsmqtt
image: pharndt/cupsmqtt:1.0.1
volumes:
- ./config/cupsmqtt:/var/lib/cupsmqtt:ro
restart: always
depends_on:
- mosquitto
Content type
Image
Digest
sha256:8a19f8b79…
Size
96.6 MB
Last updated
7 months ago
docker pull pietmacom/cups2mqtt