Prusa Link - API - preheat Prusa Mini+
I’m able to pull the printer status and job status using API. Is there an API to set the tool and bed temp? Or, an API to call a specific gcode file to do it?
Thanks!
Best Answer by _KaszpiR_:
Not sure about direct preheat but surely there is an API endpoint when requesting to print given gcode that resides on the pendrive. You can reverse engineer it what chrome and network activity under F12
RE:
Not sure about direct preheat but surely there is an API endpoint when requesting to print given gcode that resides on the pendrive. You can reverse engineer it what chrome and network activity under F12
See my GitHub and printables.com for some 3d stuff that you may like.
RE: Prusa Link - API - preheat Prusa Mini+
Not sure about direct preheat but surely there is an API endpoint when requesting to print given gcode that resides on the pendrive. You can reverse engineer it what chrome and network activity under F12
Thanks, will take a look.
RE: Prusa Link - API - preheat Prusa Mini+
it worked. Placed a Gcode file with just preheat command and called the API print the file and it preheats the printer.
What endpoint did you end up calling?
Sending a POST to
http://192.168.44.50/api/v1/files/usb/PREHEA~1.GCO
as I see in under the Network tab in Inspect doesn't seem to do anything and it doesn't seem to be referenced in the API Spec.
Looking online this Python library seems to be sending the payload
{'command': 'start'}
but that doesn't seem to work either.
RE: Prusa Link - API - preheat Prusa Mini+
for any future people stumbling on this thread, my preheat.gcode is very simple:
M140 S100
meaning "preheat the bed to 100c" as I am just trying to preheat my enclosure. It doesn't seem to matter that there no other commands, the printer just intermediately says its "finished" and preheats until the 30 minute preheat timer expires.