Multiple printers, using Octoprint, upload sliced model to all printers at once?
 
Notifications
Clear all

Multiple printers, using Octoprint, upload sliced model to all printers at once?  

  RSS
buckeyestargazer
(@buckeyestargazer)
Estimable Member
Multiple printers, using Octoprint, upload sliced model to all printers at once?

I have 6 MK3S+ printers, each with a Pi4b and Octoprint.  In Prusa Slicer I have a User Preset and 6 Physical Printers.  The only difference between these 6 Physical Printers is the IP address and API for uploading models.  It gets a little tedious having to slice the model 6 times and upload 6 times.  Is there a way to upload a model to all 6 printers at once?

Napsal : 19/11/2021 2:39 pm
karl-herbert
(@karl-herbert)
Illustrious Member
RE: Multiple printers, using Octoprint, upload sliced model to all printers at once?

You could solve this with a bash script by reading the respective API from config.yaml and sending the job via curl to the respective IP address. Something like this:

#!/bin/bash

home=/home/pi/

# read API from config.yaml or define it here

API_1 = "xxxxxxxx"

API_2 = "yyyyyyyyyyyyy"

.

.

# define ip adresses

ip_1 = "192.168.x.xxx"

ip_2 = "192.168.x.xxx"

.

.

curl --silent -k -H "X-Api-Key: "$API_1"" -F "select=false" -F "print=true" -F "file=@"$home".octoprint/uploads/"$file"" \"http://$ip_1:80/api/files/local" > /dev/null

.

.

.

exit

 

wbr,

Karl

Statt zu klagen, dass wir nicht alles haben, was wir wollen, sollten wir lieber dankbar sein, dass wir nicht alles bekommen, was wir verdienen.

Napsal : 19/11/2021 8:23 pm
buckeyestargazer
(@buckeyestargazer)
Estimable Member
Topic starter answered:
RE: Multiple printers, using Octoprint, upload sliced model to all printers at once?

 

Posted by: @karl-herbert

You could solve this with a bash script by reading the respective API from config.yaml and sending the job via curl to the respective IP address. Something like this:

 

Thanks, but that's well beyond my understanding.  I wouldn't even know where to begin.  I was hoping there was some way to do this within PrusaSlicer.

Napsal : 19/11/2021 9:13 pm
Diem
 Diem
(@diem)
Illustrious Member

beyond my understanding. I wouldn't even know where to begin. I was hoping there was some way to do this within PrusaSlicer.

The slicer is done when the gcode is produced.   If the printers are identical then that file can be used on all them.  As you have a Pi, a full linux client/server, on each, then all of the standard file transfer protocols are available.  Just decide which you prefer and set up the equivalent on your master Pi SD image.

Spend a little time on the Pi tutorials and you'll soon have plenty of alternatives.

Cheerio,

Napsal : 20/11/2021 12:03 pm
FoxRun3D
(@foxrun3d)
Famed Member
RE: Multiple printers, using Octoprint, upload sliced model to all printers at once?

Or look into farm management software that allows you to upload one gcode file and then send it to multiple printers. 

Having said that, the way PS handles physical printers feels like there's room for improvement. With four printers and physical printers for different nozzle sizes, the drop down menu is now a mile long. Worst, the order is illogical. The physical printers should be first and the stock profiles last so you can get to your actually used printer profiles more easily. 

Formerly known on this forum as @fuchsr -- until all hell broke loose with the forum software...

Napsal : 20/11/2021 12:25 pm
buckeyestargazer a se líbí
Share: