Page 1 of 1

How to Change the Outputfilename for Curl

Posted: Sat Oct 26, 2019 12:52 pm
by NeueKlasse
Hi,

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]" "http://xxx.xxx.xxx.xx/api/files/local"

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….


Thanks,

Sebastian

Re: How to Change the Outputfilename for Curl

Posted: Wed Oct 30, 2019 9:24 am
by S3D-Jake
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