i'm currently working on a plugin to "emulate" the bltouch marlin support but in octoprint for close firmware printer (sadly like my alfawise).
i started to do it on server side: i tried to hook the G29 and replace it with my code but i couldnt send gcode in sequence (send a move, then do a M114 to get the answer etc). If there is a way please tell me.
i looked into the client side with a button. i thought i got the solution but sadly it's not working as i wanted
i was hoping that the jquery Promise "done" would only be called once the printer actually received it but no
is there a way to "wait" for a gcode to be executed ?
i need to move the head and once it moved to get the z height, client or server side both are ok, doesnt matter (i would prefer server of course since i have to play with gpio, but i can use a workaround for it)
i hope i'm clear enough