Setting up Simplify3D to automatically upload sliced files to Octoprint

ccraig1984 edited this page Dec 21, 2018 · 4 revisions

Simplify3D is my favourite slicer and it is possible to set up your profiles so that sliced files are uploaded straight to Octoprint.

You will need a copy of Simplify3D and Octoprint. You will need to know your API key, IP address of Octoprint and to have Curl installed on the system. Curl is built into OSX and Linux but needs to be installed for Windows.

Go to: https://curl.haxx.se/download.html and scroll to the Win64 - Generic section. The latest versions are in yellow. Choose one with SSL and SSH. At the time of writing I chose:

Win64 x86_64 7zip 7.55.1 binary SSL SSH Viktor Szakáts 1.86 MB

Open the zip, browse to bin and extract curl.exe and libcurl.dll to windows\system32. To check it has installed click the start button and type cmd then enter to launch the command prompt. Type curl then enter and you should see:

curl: try 'curl --help' or 'curl --manual' for more information.

In Simplify3D select edit process and change to the scripts tab. In additional terminal commands for post processing, paste the code below and replace the list of A's with your API key and also replace IPADDRESS. You can change select to true to automatically select the file and change print to true to automatically print. The post processing is saved as part of the Simplify3D profile, so it is possible to upload to different printers.

curl -k -H "X-Api-Key: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" -F "select=false" -F "print=false" -F "file=@[output_filepath]" "http://IPADDRESS:PORT/api/files/local" {STRIP "; postProcessing"}

the {STRIP "; postProcessing"} line is missing from other guides for this. Without this line the above code is added as part of the uploaded GCODE file, exposing your API key. This way is more secure.

To finally upload the gcode to Octoprint, you save the gcode from Simplify3D to disk, to a temporary folder. You can give it a name and as soon as you save the file, the gcode automatically get uploaded to Octoprint. You can delete the temporary created gcode later. Enjoy!

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.