Upload to repetier from slic3r prusa edition
Hi,
I made a simple script to upload to repetier server waiting for slic3r native implementation as for octoprint or duet.
Script for Windows is the following :
I made a simple script to upload to repetier server waiting for slic3r native implementation as for octoprint or duet.
Script for Windows is the following :
@echo off
c:\Windows\System32\curl.exe -i -X POST -H "Content-Type: multipart/form-data" -H "x-api-key: xxxxxxxxxxxxxxxxxxxx" -F "a=upload" --url "http://192.168.0.xx:3344/printer/model/xxxxxxx" -F "filename=@%1" > curl_log.txt
You need to replace xxx by api key, ip adress and printer name.
in slic3r, in post processing scripts, just call the file you created, file name shall be .bat or .cmd to work.
In my case curl case already installed, you may need to install curl on a fresh windows...
Easy to adapt to mac or linux... just change the path and create a shell script instead.
Regards,
Pierre
You need to replace xxx by api key, ip adress and printer name.
in slic3r, in post processing scripts, just call the file you created, file name shall be .bat or .cmd to work.
In my case curl case already installed, you may need to install curl on a fresh windows...
Easy to adapt to mac or linux... just change the path and create a shell script instead.
Regards,
Pierre
Comments
Error code: 6
Did you checked if curl was installed on you PC ?
describes it well. You need absolute path and the only parameter is the path to the gcode, so should be no problem to convert it into a script. Just write absolute path to it in postprocessor field. For testing call it manually with gcode path in shell.
Didn't work or I only understand it wrong. My biggest problem is that I still don't know what I have to exactly write into the post processing script in Slic3r, besides the absolut path to the script which you had written. I tried some things, but they didn't work at all.
Just put the path and batch file name in post processing.
If your batch is working in command line with gcode filename as attribute it should work
Working on monitor/server update. Still planned end may/start june.