Hi, I am trying to build an interruptor to save filament and or to "pause" prints, when no filament is available anymore.
An important step to complete this task is to be able to change the state of the printer from "Printing" to "pause".
I asked some pros in the exibition "formnext" and they told me in the api of the Ultimaker there should be a code. So I looked it up.
I found someting promising, but I don´ t get too far. I will add some screenshots so you will see
A (the) crucial point with the Python language is that is relies on correct indentations. I'll add the (slightly modified) original script below.
GET, PUT and POST are not part of python - those things are related to the http protocol (AFAIK).
I'm nearly clueless too, most of the time i only combine parts that i found somewhere. 🙂
Authorization is only needed once - the printer will ask for confirmation (the same as during the first connection from Cura). You can use the co