Closed dajomas closed 2 years ago
Unfortunately this would not be possible to do from this plugin. The Jinja2 templates are evaluated & rendered once, as soon as the macro @ command is used, they are not rendered live as the script progresses.
Getting a consistent reply back to commands from the printer would be very difficult to make work universally. There's no standard format to the reply from a command, any parsing would have to be done with a custom regex created by the user, as well as the issue that sometimes the received lines back from the printer could be interrupted by stuff like temperature reporting.
For very advanced stuff like this I would recommend to create your own plugin or fork an existing one, so you can create the custom code to try and do this yourself - I can't provide it to an end user effectively.
Hi,
would it be possible to build in functionality to wait for a response and use the contents of that response.
For instance, when I send
G28 X0 Y0
my Creality3D Ender 5 Plus responds withRecv: X:360.00 Y:360.00 Z:40.20 E:813.64 Count X:28800 Y:28800 Z:32160
Now, I would like to extract the first X and Y values and be able to halve them so I can center my nozzle on the plate
for example, do something like this:
This could then result in something like:
Then I could use this to center the nozzle: