Sign inSign up

pietmacom/cups2mqtt

By pietmacom

•Updated 7 months ago

Image
0

7.6K

pietmacom/cups2mqtt repository overview

⁠This is just a fork with fixed ARM64 docker image build. Please checkout https://github.com/mqtt-home/cups-to-mqtt⁠

⁠cups-to-mqtt

mqtt-smarthome

Convert the CUPS printer queues to mqtt messages

⁠Example message

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
}

⁠Example configuration

{
  "mqtt": {
    "url": "tcp://192.168.2.98:1883",
    "username": "user",
    "password": "password",
    "deduplicate": true
  },
  "cups": {
    "host": "192.168.3.15",
    "port": 631,
    "username": "anonymous"
  }
}

⁠Deduplicate messages

When deduplicate is set to true no duplicate mqtt messages will be sent.

⁠Bridge status

The bridge maintains two status topics:

⁠Topic: .../bridge/state

ValueDescription
onlineThe bridge is started
offlineThe bridge is currently not started.

⁠Docker

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

Tag summary

Content type

Image

Digest

sha256:8a19f8b79…

Size

96.6 MB

Last updated

7 months ago

docker pull pietmacom/cups2mqtt