This is just a fork with fixed ARM64 docker image build. Please checkout https://github.com/mqtt-home/cups-to-mqtt
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:
| 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