I have a farm of 12 printers that were running on Marlin and now I’ve switched them to Klipper
Before I had direct filament sensors to the GPIOs of the Raspberries, I have one RPi for every 4 printers
Last night I was able to get the filament sensor working. First install “gpiod” following this guide
https://www.klipper3d.org/RPi_microcontroller.html?h=gpio
Then I put this in each printer.cfg of my printers
[mcu host]
serial: /tmp/klipper_host_mcu
[filament_switch_sensor FilamentStatus]
pause_on_runout: True
switch_pin: host:gpio22 (here I changed the pin number on each printer)
It works fine individually on each printer, but I found that when I want to connect one printer, it disconnects another
I suppose that the [mcu host] should be different on each printer, I tried naming it differently, but if I connect to printer A, it disconnects the previously connected printer B
I clarify that the sensors are connected with a pullup resistor and previously worked excellent with Marlin+RepetierServer
I also previously had a bot on WhatsApp that notified me when a printer ran out of filament, can I do this somehow?