For anyone interested I've pulled the OctoPrint library code from the OctoPrint Stark Module and made it a stand alone repository.
I've included a basic README file to help get started, but other than one dependency to encode/decode the JSON values it's a pure Java implementation that should get you started very easily. I imagine with a little effort some automated efforts could be scripted just using this library and a working OctoPrint server.
https://github.com/robweber/octoprint-java-lib
Any functions that aren't implemented either just request them or code and do a pull request (please!). The OctoPrint API is easy to deal with, I just implemented the stuff I needed at the moment.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.