Prusa Connect API for automation
I'm looking for a way to automatically read jobs in the Prusa Connect queue and start them from external software. Is this possible? It looks like prints can be externally loaded and started through Prusa Link, but this bypasses the queue system in Connect.
RE: Prusa Connect API for automation
Hello,
I'm also interested in
RE: Prusa Connect API for automation
From hacky tests, I'm able to change the printer status on connect, thus triggering the queue, by posting to the connect/app/printers/YOURPRINTERID/commands/sync?
payload is {"command" : "SET_PRINTER_READY"}
you need to send your SESSID cookie with the request for authentification.
Doing that, I can run a local script which retrieves the job status from prusalink and triggers the queue on connect when print is finished. Obviously, the bed needs to be automatically unloaded in the meanwhile.
That said, it would be amazing to have a proper way to do this. Is there documentation anywhere?
Would also be great to be able to run connect locally, or simply implement the queue feature in prusalink. I find connect adding so many layers which are, in my humble automation case, really not needed.
RE:
There is PrusaConnect SDK in python but it exposes only a fraction of API and it can be used to simulate a printer https://github.com/prusa3d/Prusa-Connect-SDK-Printer
There is also PrusaLink API available but this is also just a printer spec.
PrusaConnect API spec was not published anywhere AFAIR, so only hacking and reverse engineering is the only way now.
See my GitHub and printables.com for some 3d stuff that you may like.
RE: Prusa Connect API for automation
Looking for the same, a proper documented API for PrusaConnect. Wasn‘t successful yet - maybe you know a way how to check if a printer is online?
RE: Prusa Connect API for automation
Since the raspi sits in the same network as my printer, a simple ping checks the online status now - good enough for me as a workaround.