Notifications
Clear all

Prusa Connect API for automation  

  RSS
zpjester
(@zpjester)
Member
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.

Posted : 28/05/2024 5:36 am
Fred
 Fred
(@fred-7)
Member
RE: Prusa Connect API for automation

Hello,

 

I'm also interested in

Posted : 04/07/2024 4:48 pm
chienMouille
(@chienmouille)
Member
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.

Posted : 05/07/2024 7:22 am
_KaszpiR_
(@_kaszpir_)
Honorable Member
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.

 

This post was modified 2 days ago by _KaszpiR_

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 05/07/2024 3:49 pm
Share: