Sending .gcode files from PrusaSlicer to Octoprint
 
Notifications
Clear all

Sending .gcode files from PrusaSlicer to Octoprint  

  RSS
PrinterNoodle
(@printernoodle)
New Member
Sending .gcode files from PrusaSlicer to Octoprint

Hey guys,

i want to send my sliced .gcode files to octoprint after saving them to my local machine. I am a Windows user and use Octopi on my laptop and not with a Pi.  I want to use the following curl Statement:

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

I included this line via an .exe which runs a Batch file in my post script in Prusa Slicer. The problem is, that the .gcode files won't upload to Octoprint after saving them to my local machine. The Problem might be the "@[output_filepath]" who doesn't get taken over after saving the file. 

If i run the line in cmd and define a output filepath, it works fine.
I only found topics about the curl Statement for simplif3d and it seems to work there with "@[output_file]". Did someone have similiar problems with PrusaSlicer?

This topic was modified 3 years ago by PrinterNoodle
Posted : 24/07/2021 4:19 pm
Share: