Posts: 1
Joined: Fri Oct 25, 2019 3:59 pm

How to Change the Outputfilename for Curl

Sat Oct 26, 2019 12:52 pm


Currently i'm Running this Code to Get my Gcode up to Octoprint:

curl -k -H "X-Api-Key: xxxxx" -F "select=false" -F "print=false" -F "file=@[output_filepath]" ""

Now i want to add a Prefix behind the Filename (Automatically). For Example: BracketPLA or HinchPETG (Depends on the Simplify3D Profile)

What do i Need to add to this script?

Google search doesn't give me any Answer….



Posts: 772
Joined: Wed Jun 20, 2018 12:45 pm

Re: How to Change the Outputfilename for Curl

Wed Oct 30, 2019 9:24 am

Place the <postProcessing> XML tags into your material configurations (<autoConfigureMaterial name="PLA">, etc...). You can then edit each post processing script individually for the material you have selected.

More on FFF profile edits like this one here: viewtopic.php?f=8&t=5977&p=25950#p25947
"A bird does not sing because it has an answer. It sings because it has a song."

Return to “Feature Requests”