scross01 / prometheus-klipper-exporter

Prometheus Exporter for Klipper
MIT License
51 stars 12 forks source link

add `output_pin` metric collection to `printer_objects` module #5

Closed scross01 closed 2 years ago

scross01 commented 2 years ago

Add metric collection for custom output pins.

https://moonraker.readthedocs.io/en/latest/printer_objects/

output_pin pin_name

Enabled when [output_pin pin_name] is included in printer.cfg. It is possible for multiple output pins to be configured.

{
    "value": 0.0
}

An output_pin reports the following state: