Ability to start loaded print from LCD

I have a Marlin User Defined Menu Command that sends a ""M118 //action:cancel\n" to cancel a print. I would like one to start the currently loaded print in OctoPrint. I tried looking at supported Action Commands at:

http://docs.octoprint.org/en/master/features/action_commands.html

And don't see one to start a print. Is there another way to accomplish what I want or should there be a feature request created to add a new Action Command?

You can do it with the Action Commands plugin and using curl or wget to make an API call to /api/job/ start.

Although if you have HAproxy with access control enabled, I haven't found a way to bypass it without adding your plain-text password into the command, which is far from ideal. Maybe @foosel could chime in with a more elegant solution?
In any case, it works:
curl -X POST -H "Content-Type: application/json" -u USERNAME:PASSWORD -H "X-Api-Key: APIKEY" -d '{"command": "start"}' http://127.0.0.1/api/job

1 Like

Thanks! I'll give that a try.