Hey, me again.
With above described setup (1 master with lots of projects, many clients that access the master), we want to fully automate print starts. The call for that will most likely end up somehow on the Master PC in a python script with information about which printer to start, the project and the file.
I looked into the API and there seem to be two ways to do this, using websocket or GET.
Websocket is not documented (what are the inputs?) and I assume, the response will be kind of immidiately as the client will retrieve the file from the master before printing and that might take a while?
Print a G-Code in a ProjectregisterAction("projectPrintFromProject", &actionProjectPrintFromProject);
Second would be a POST-Call:
uploadUpload a job to the queue. Optionally start printing it if no print is running.
http://localhost:3344/printer/job/<span><span><slug</span>></span>?a=upload&autostart=<span><span><autostart</span>></span>&name=<span><span><NewName</span>></span>&sess=<span><span><session</span> key></span>
This way my approach would be to first download the gcode from the master (which is basically just retrieving the file from local storage), then upload it to the according printer.
1. Is there a preferrable option for reasons that I do not know?
2. Is there something else I have to keep in mind?
Option 2 (POST) looks like a no brainer for me, but I want to be sure before I start developing.