I'm writing a pretty useful OctoPrint plugin. The way it works is by intercepting an unused Gcode - G910 - and then performing a calibration step based on a computer vision analysis.
So far I've been able to intercept the G910 calls using the octoprint.comm.protocol.gcode hooks. I can perform my analysis, and prepare the ~10 Gcode commands that I'd like to send.
In my code, after receiving the G910 command, I'd like to:
- Pause further gcodes from sending until my script finishes
- Send my own ~ 10 gcodes commands to the printer
- Resume the remainder of the
Is it possible to do this in OctoPrint? I can't find info on plugins sending commands to the printer and I'm not sure the .gcode file will wait for G910 to finish before sending more commands right now.