pgoth wrote:I've solved it fairly easy.. I'm running on S3D on a Mac and I am just calling a curl command as follows:
Code: Select all
curl -H "X-Api-Key: 185A556C8F684E20AAB85F2D867F2791" -F "select=false" -F "print=false" -F "file=@[output_filepath]" "http://192.168.2.197/api/files/local"
Replace with your own OctoPrint API-key and hostname/IP-address and when you click on the "Save toolpaths to Disk" button it will send the gcode to OctoPrint.
I've discovered a possible security issue that people should be aware of. When you use this approach to make Simplify3D send gcode files to OctoPrint, Simplify3D will embed your API key within gcode files underneath the "postProcessing" line.
Anyone with access to the OctoPrint instance can freely download the gcode file, even without logging into OctoPrint. This means that anyone with access to the OctoPrint instance can gain access to your API key. This will then give them full control over the OctoPrint instance, which can allow for malicious actions to be taken.
For most people, this won't be an issue since they keep OctoPrint isolated to their home network. But if anyone has an OctoPrint instance publicly exposed (i.e. to others on the network, to the Internet), this is something you should be aware of.