NEEBE: How to send gcode through python
-
Hi,
Quite a newbe to Python DSF. may you please point me to the right direction
I'd like to be able to send multiple commands to Duet through pythonThanks
-
@chernogorsky have you seen the example here:
https://github.com/Duet3D/dsf-python/blob/main/examples/send_simple_code.pyonce you have that working then you can base a python script on the premise to get your gcode stream and send it. you will probably need to leave the connection open between commands (not open and close it per command). @chrishamm may be able to comment about best practices for the connection (permanently open, idle close etc).
That python library implements bindings for the DSF IPC API which has more information here:
https://github.com/Duet3D/DuetSoftwareFramework/wiki/API-Overview -
@t3p3tony Thank you
and following our conversation the other day
pendant videoNext newbe question would be how to set it as a plugin
-
This post is deleted! -