Octoprint Integration for Simplify3D - PrusaMK2Users/MK2_Tips_and_Tricks GitHub Wiki

For Octoprint users, one of the best features of Slic3r Prusa Edition is the ability to send gcode files directly to Octoprint. Using the following steps, you can also send gcode files directly to Octoprint from Simplify3D!

  1. In Simplify3D, double-click on your process name to bring up the settings window.

  2. In the "Scripts" tab, paste the following code into the "Additional terminal commands for post processing" field: curl -k -H "X-Api-Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -F "select=false" -F "print=false" -F "file=@[output_filepath]" "http://(pi's local IP address)/api/files/local" {STRIP "; postProcessing"}, replacing the string of X's with your Octoprint API Key, which can be found in Octoprint Settings>API, and (pi's local IP address) with the local IP address that you use to connect to your Octoprint interface on your local network.

  3. Next, you need to create a local destination on your computer for the files to save to. Unlike Slic3r, this S3D script will both upload the file to Octoprint and save a local copy. I just created a dummy folder in my Documents called "temp octo gcode", and all of my files get dumped there.

  4. WINDOWS USERS ONLY: you will need to install Curl for the script to communicate with Octoprint. Curl is already installed by default in MacOS and Linux, so if you are using one of these OS's, you can continue to Step 5. 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. 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.

  5. If you have the above steps completed properly, you can now save your file in S3D using the normal Prepare To Print>Save Toolpaths to Disk routine. This is where you save the gcode to your dummy folder. If your API Key and IP address are correct, the file should also show up in Octoprint within a few seconds!

  6. If you feel like tinkering with some settings, you can change -F "select=false" to -F "select=true". This will upload the file to Octoprint and automatically load the file. You can also change -F "print=false" to -F "print=true". This will automatically begin printing the file once it is received by Octoprint.

If you need any help or have any questions, you can find me on the 3D Printing Mattermost Community at https://3dprinting.community . Post a message in the ~software channel or message me directly @unkle_rukus

Attribution: some of the above information was originally published by Github user brnl on the foosel/ocotprint Github Wiki page.