FenianEMT
Posts: 2
Joined: Thu Dec 04, 2014 11:14 am

Send GCode Directly to OctoPrint

It would be great if Simplify3D could use the new REST API in OctoPrint to send generated GCode directly to an OctoPrint instance. The combination of Simplify3D with OctoPrint seems like nearly the perfect 3D printer toolchain, and it would be really nice to reduce some of the friction there.
Geirskogul
Posts: 1
Joined: Tue Feb 17, 2015 11:35 pm

Re: Send GCode Directly to OctoPrint

This would be amazing. I already love Simplify3D (just barely beats out MatterControl for me) and having a link to Octoprint, without having to move an SD card between the computer and the raspberry pi, would be very nice.
JoeJ
Posts: 1435
Joined: Sun Feb 16, 2014 10:52 am

Re: Send GCode Directly to OctoPrint

I'm assuming it would need to know the IP address of the octoprint server though, right?
android78
Posts: 1
Joined: Wed Feb 18, 2015 8:03 pm

Re: Send GCode Directly to OctoPrint

I've been considering getting simplify lately and wondered about this. I would assume that you can save the gcode directly to a disk, in which case you should be able to just drag and drop that into the octoprint web interface to load it, without the need for an SD transfer?
JoeJ
Posts: 1435
Joined: Sun Feb 16, 2014 10:52 am

Re: Send GCode Directly to OctoPrint

@android78 - yes, you can always save the gcode to your hard drive and then upload to octoprint. That already works.
JFettig
Posts: 72
Joined: Tue Dec 30, 2014 3:13 pm

Re: Send GCode Directly to OctoPrint

Its already so simple, just create a directory to save your files to and drag and drop them in a browser, no need to make any changes in S3D, they have plenty of good feature requests already :)
Joao
Posts: 26
Joined: Sun Dec 28, 2014 1:38 pm

Re: Send GCode Directly to OctoPrint

OctoPrint will release soon a new version where it monitors a ~/.octoprint/watched folder and adds automatically the files dropped there.
And with some manual linux tweaks you can share that folder with your computer where you save the files from S3D for automatically adding.
dsegel
Posts: 159
Joined: Tue Sep 30, 2014 5:37 pm

Re: Send GCode Directly to OctoPrint

I run S3D on my MacBook and after saving the gcode file I just go to a terminal window and run a script that does:

Code: Select all

scp "$1" pi@192.168.1.108:.octoprint/uploads/
I have ssh keys set up so there's no password to enter. I just run a command like

Code: Select all

./putpi.sh base.gcode
and it's done. Another advantage is that it's tons faster than the web interface, which seems to take forever with large gcode files.
Joao
Posts: 26
Joined: Sun Dec 28, 2014 1:38 pm

Re: Send GCode Directly to OctoPrint

dsegel wrote:I run S3D on my MacBook and after saving the gcode file I just go to a terminal window and run a script that does:

Code: Select all

scp "$1" pi@192.168.1.108:.octoprint/uploads/
I have ssh keys set up so there's no password to enter. I just run a command like

Code: Select all

./putpi.sh base.gcode
and it's done. Another advantage is that it's tons faster than the web interface, which seems to take forever with large gcode files.
I didn't know it was possible to use the .octoprint/uploads/ folder to drop the files.

Then, I would also suggest to use a local folder that be synced automatically with that remote folder.
With rsync command it would be automatically updated (like a dropbox style), and it could be triggered by monitoring changes to the local folder using for example FSWatch

rsync - http://linux.about.com/library/cmd/blcmdl1_rsync.htm
fswatch - https://github.com/emcrisostomo/fswatch
dsegel
Posts: 159
Joined: Tue Sep 30, 2014 5:37 pm

Re: Send GCode Directly to OctoPrint

You do need to force a refresh on the OctoPrint page for it to show new files in the uploads directory. You can do this by reloading the page (e.g. F5 or command-R) or by deleting any other file in the list from the web page.

Return to “Feature Requests”