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
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.
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
Re: Octoprint API
Yes, this was really good. Easy to set up my Mac also.
---
Gert