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_)
Prominent 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.

 

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

Posted : 05/07/2024 3:49 pm
samuel-t
(@samuel-t)
Active Member
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?

Posted : 18/08/2024 5:20 pm
samuel-t
(@samuel-t)
Active Member
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.

Posted : 26/08/2024 9:41 am
Share: