Notifications
Clear all

Octoprint API  

  RSS
GertL
(@gertl)
Reputable Member
Octoprint API

Don't know if this have been addressed before.

Stumpled across this neat feature.

Add below piece of code in your post processor. This automagical sends the code file to Octoprint when saving.
Works perfectly. At least in S3D.

curl -k -H "X-Api-Key: 3EEB0028E91C4DBB960C269474A97CE5" -F "select=false" -F "print=false" -F "file=@[output_filepath]" " http://octopi.local/api/files/local "

Substitute my API to yours. Can be found in Octoprint:

And, yes. Anyone hacking my network can now use my Octoprint.

---
Gert

Posted : 28/08/2017 7:24 pm
richard.l
(@richard-l)
Member Moderator
Re: Octoprint API

I used to do it this way but have since changed to using Watched folders instead. Saves me from having a ridiculous amount of GCode files hanging around on my PC.

Joe Mike Terranella has an excellent video tutorial series on OctoPrint. The one I am linking below specifically deals with Bonjour, Samba and the Watched Folder.

Posted : 29/08/2017 4:40 pm
GertL
(@gertl)
Reputable Member
Topic starter answered:
Re: Octoprint API

Joe Mike Terranella has an excellent video tutorial series on OctoPrint. The one I am linking below specifically deals with Bonjour, Samba and the Watched Folder.

Great, thanks i will check this out.

---
Gert

Posted : 29/08/2017 4:56 pm
GertL
(@gertl)
Reputable Member
Topic starter answered:
Re: Octoprint API

Yes, this was really good. Easy to set up my Mac also.

---
Gert

Posted : 30/08/2017 3:01 pm
Share: