brian442
Posts: 1243
Joined: Mon Nov 28, 2016 5:35 am

Re: Send GCode Directly to OctoPrint

I'm sure a lot of people don't bother reading the rest of this thread, but S3D can already easily do this by just adding a single line to your post-processing script. You can read the prior posts to see what exactly to add. I've been using it for months and it works great.
cosmith71
Posts: 6
Joined: Mon Jan 16, 2017 7:37 am

Re: Send GCode Directly to OctoPrint

Apparently it's not that easy, as I've tried several times to get it to work. And a workaround which involves manually installing additional software (curl) is in no way a substitute for baked in support.
prgenovese
Posts: 9
Joined: Tue Apr 11, 2017 5:38 pm

Re: Send GCode Directly to OctoPrint

bpopp wrote:For those of you on Windows, I just built a small background application for uploading gcode and stl files from a local folder to an Octoprint server (via REST). Once configured, it watches for changes to the folder and automatically uploads any added files. Seems to be working well for me, but your mileage may vary. Would love to hear feedback at bpopp [at] bpopp [dot] net (or github) if anyone tries it out:

https://github.com/bpopp/OctoprintUploader/releases
I was so hopeful when I saw this, but unfortunately the 1.2.1 version simply doesn't work. The configuration screen confirms the connection to OctoPrint and the hot folder is all set up, but much to my chagrin it turns out to be a cold folder. Dropped files never get touched and nothing gets sent to OctoPrint.

I took a look at the source code, but unfortunately I'm not a very good C# programmer so I can't recognize the problem. The one thing the seems strange is the system timer never seems to be referenced after its initially defined as null. That seems to be related as the "hot" folder never seems to be checked, but this is just speculation on my part.

In the end, this kind of thing shouldn't even be necessary and S3D should have an official solution to this obvious need. Hopefully that is part of the major new release said to be coming soon.
prgenovese
Posts: 9
Joined: Tue Apr 11, 2017 5:38 pm

Re: Send GCode Directly to OctoPrint

prgenovese wrote:
bpopp wrote:For those of you on Windows, I just built a small background application for uploading gcode and stl files from a local folder to an Octoprint server (via REST). Once configured, it watches for changes to the folder and automatically uploads any added files. Seems to be working well for me, but your mileage may vary. Would love to hear feedback at bpopp [at] bpopp [dot] net (or github) if anyone tries it out:

https://github.com/bpopp/OctoprintUploader/releases
I was so hopeful when I saw this, but unfortunately the 1.2.1 version simply doesn't work. The configuration screen confirms the connection to OctoPrint and the hot folder is all set up, but much to my chagrin it turns out to be a cold folder. Dropped files never get touched and nothing gets sent to OctoPrint.

I took a look at the source code, but unfortunately I'm not a very good C# programmer so I can't recognize the problem. The one thing the seems strange is the system timer never seems to be referenced after its initially defined as null. That seems to be related as the "hot" folder never seems to be checked, but this is just speculation on my part.

In the end, this kind of thing shouldn't even be necessary and S3D should have an official solution to this obvious need. Hopefully that is part of the major new release said to be coming soon.

Until S3D developers provide an officially supported Octoprint integration solution, what pgoth brought to the table with Curl is a real elegant and simple solution (thanks pgoth).

The other solutions offered up here work but....

- Saving across the network to, or folder syncing with, a Samba share on the Octoprint server works but requires refreshing your browser to see the newly uploaded file and without Octoprint API functionality requires additional manual intervention on the Octoprint side once you can see the file.

- bpopp's .net ClickOnce application apparently works for some (it did not for me on my Windows 10 machine) but even though it is an API connected solution, it isn't a global answer and requires a background process to constantly be running. Not a great answer, but I certainly can appreciate bpopp's attempt at sharing an answer.

The Curl approach "Simply" works (pun only slightly intended) and it works in a way an official S3D/Octoprint API solution would be expected to work. It's just missing the pretty configuration UI I would hope S3D will be offering, and it requires having Curl installed which I hope S3D will bake into their solution without requiring Curl at all.

But in the interim, it really works, is simple to set up, and in my opinion the only way to go.
TylonHH
Posts: 7
Joined: Fri Feb 17, 2017 6:47 pm

Re: Send GCode Directly to OctoPrint

just mount in windows your OctoPrint Upload folder. Thats it.
Every time I save an gcode its on the Pi. Thats so easy.
prgenovese
Posts: 9
Joined: Tue Apr 11, 2017 5:38 pm

Re: Send GCode Directly to OctoPrint

TylonHH wrote:just mount in windows your OctoPrint Upload folder. Thats it.
Every time I save an gcode its on the Pi. Thats so easy.
That's certainly works, just not nearly as well as the REST API connection which is also so easy to set up.

Every time I save G-code it not only shows up in OctoPrint,(and without even refreshing the browser page) it is also loaded into the queue already calculating how long it will take to print, just waiting for me to push the print button.

Now that's a real integrated solution.
fiveangle
Posts: 2
Joined: Sat Nov 28, 2015 4:48 pm

Re: Send GCode Directly to OctoPrint

Simplify3D 4.0 is released!
You had one job...

-=dave
pioneerko
Posts: 2
Joined: Sun Aug 16, 2015 5:06 am

Re: Send GCode Directly to OctoPrint

Does anyone know how to modify this workaround to upload file to Duet, or just upload to ftp instead?
ddivins
Posts: 1
Joined: Sat Sep 02, 2017 8:34 pm

Re: Send GCode Directly to OctoPrint

Just another user disappointed there is not a native function for this.

I bought S3D tonight and had not really researched if OctoPrint worked, just assumed it would :-/

Oh well. Really want this feature, please.

-dsd
gamecompiler

Re: Send GCode Directly to OctoPrint

Ill would also like this feature to be added please.
My printer is located in my cellar. Just pressing ->print would be very cool instead of running 3 floors downstairs and upstairs after that.

Return to “Feature Requests”