Created
January 24, 2017 15:31
-
-
Save thomasdunn/bd069937ec84582dfcd648c5e19cf88d to your computer and use it in GitHub Desktop.
Simplify3D to Octoprint GCODE upload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for %%a in (%1) do ( | |
set file=%%~fa | |
set filepath=%%~dpa | |
set filename=%%~nxa | |
) | |
echo curl -k -H "X-Api-Key: <Octoprint API Key>" -F "select=true" -F "print=false" -F "file=@%filepath%%filename%" --user "<HTTP_Basic_Auth_User>:<HTTP_Basic_Auth_Password>" "http://octopi/api/files/local" > C:\design\octoprint\octoprint.bat | |
REM to actually execute the upload, run C:\design\octoprint\octoprint.bat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM this goes under: Edit Process > Scripts > Post Processing > Additional commands: | |
cmd /c C:\design\octoprint\gcode.bat "[output_filepath]" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment