I need to know how to start a print job from command line
So to sum up the question: is it possible to launch a print job from the Terminal window? I guess NO?
What did you already try to solve it?
CHECKED all known documentation and Prusa Support.
Have you tried running in safe mode?
N/A
Did running in safe mode solve the problem?
N/A
Systeminfo Bundle
You can download this in OctoPrint's System Information dialog ... no bundle, no support!)
N/A
Additional information about your setup
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
The @ commands are in the gcode file so a start command doesn't make sense because the file must be started for the @ commands to be interpreted. I think what you are looking for is the REST API.
It would help if you could describe the problem you are trying to solve in a little more detail.
I use Octodash as GUI for a touch screen running with the Pi, but Oxtodash still has no START A PRINT command unless you manually scroll all the files and select one, then click PRINT icon.
Sometimes, since I'm on a farm, it's easier to choose each file on my computer browser and then just go and hit print on the Octodash screen. So the closest I get is creating an icon on Octodash, but then.... How do I tell it to start the print of the currently selected file?
If you mean from the device that OctoPrint is installed to you could do:
$ octoprint client -a APIKEY post_json /api/job '{"command":"start"}'
octoprint would need to be the path of the octoprint script, or you need to activate the appropriate venv first, andAPIKEY is an appropriate api key (OctoPrint settings -> Application Keys).
You could also do this from any device that can access the OctoPrint server via HTTP with something like curl. Such as:
Yeah I assumed that. Was just willing to find out if the print job could be launched somehow from there as Octodash allows to customize buttons and actions but there's no such action "Start".