Page 2 of 11
Re: Send GCode Directly to OctoPrint
Posted: Sat Nov 07, 2015 8:52 pm
by cj11363
I booted the latest octopi SD image on a Rpi 2, configured the "watch" directory to be /home/pi/printme, installed Samba on the Rpi ( sudo apt-get install samba samba-common-bin ) , used Samba to share /home/pi/printme to my Mac ( edit /etc/samba/smb.conf on the Rpi ) and viola; anything I save to that shared directory automatically shows up in the list of files available for printing. Simple and slick way to "Send GCode Directly to OctoPrint" from s3d ( or any other app ).
Re: Send GCode Directly to OctoPrint
Posted: Fri Dec 18, 2015 7:53 pm
by fhscholl
I want OctoPrint integration as well, but I would like to see it go deeper. I'd love it to be able to seamlessly make API calls on the back-end to relay the printer status into the existing interface in real time. Basically you could upload the file with the API, but you could also start the print and monitor progress from within Simplify3D. That way I would have a 3D printer that I can monitor from anywhere in the house, but if I am at my desk working on or testing something, I could control the printer via the Simplify3D interface as if it were connected by USB.
Re: Send GCode Directly to OctoPrint
Posted: Sat Jan 02, 2016 8:28 pm
by brummel1
Well the API of OctoPrint allows to automatically search on the LAN for the server and also automatically upload files. S3D just has to implement it (the procedure and of course the possibility to enter the API-Key). Slic3r is able to do that for some time now and its a great ease on planning print jobs. Specially since the OctoServer is already really advanced and able to handle remote monitoring - so no need to invent the wheel a second time.
Re: Send GCode Directly to OctoPrint
Posted: Mon Jan 04, 2016 9:13 am
by Nandox7
All we need is some sort of plugin support, than this could be easily done.
With that Octoprint or any other 3D print server software could be used.
Re: Send GCode Directly to OctoPrint
Posted: Thu Jan 07, 2016 11:26 pm
by ovidiu
I created this for my own use and works great under mac.
https://github.com/MoonshineSG/Simplify3D-to-OctoPrint
Re: Send GCode Directly to OctoPrint
Posted: Thu Feb 11, 2016 12:54 pm
by foosel
Hi, developer of OctoPrint chiming in here. I'm using S3D myself and would be happy to support any development going into this direction.
Re: Send GCode Directly to OctoPrint
Posted: Mon Feb 29, 2016 2:42 pm
by pgoth
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.
Re: Send GCode Directly to OctoPrint
Posted: Fri Mar 25, 2016 1:01 pm
by avluis
If you guys end up supporting this, which is highly needed btw, please support the API itself as I am using Astroprint (they use OctoPrint as well for their backend), and while they started exposing a bit more of it, all I am given is the API key, which should be all I need really.
Anyways, support OctoPrint, via API!
+1
Re: Send GCode Directly to OctoPrint
Posted: Fri Apr 01, 2016 4:01 am
by oxivanisher
I would like support for octoprint too.
The solution of pgoth looks nice as a start.

Linux users probably have curl already installed too, and window users can download the curl executable and for example put it in C:\Windows\System32. The Command should then work the same way.

Re: Send GCode Directly to OctoPrint
Posted: Fri Apr 01, 2016 9:44 am
by davidbitton
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 had a small issue with this (cURL error 55) that I was able to resolve by adding -k and using the https address for OctoPrint. Thanks!
Code: Select all
curl -k -H "X-Api-Key: A5D3DEAF7284412F9563945057BB95F7" -F "select=false" -F "print=false" -F "file=@[output_filepath]" "https://octopi.local/api/files/local"