I would like to read sensor data (the nozzle temperature and position) from a 3D-Printer and send it to a mqtt broker. I have a Creality Ender printer and a raspberry pi with klipper connected to the printer. How can I do that? My idea is to run a python program on the raspberry and to use paho to connect to the broker and to create a mqtt client. But how can I access the nozzle temperature and position from within the python program? Continue reading...