Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. cnc65
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 16
    • Best 1
    • Controversial 0
    • Groups 0

    Topics created by cnc65

    • cnc65undefined

      Solved Gcode upload with python and OpenAPI

      Third-party software
      • • • cnc65
      14
      0
      Votes
      14
      Posts
      560
      Views

      cnc65undefined

      @chrishamm @T3P3Tony
      I have changed the requestBody in the OpenAPI.yaml file so that a parameter body is generated in Python. This works for uploading gcode files. I have not tested other files.

      requestBody: required: true description: 'File content' content: application/octet-stream: schema: type: string format: binary

      The function call in Python then looks like this:

      # Upload a file file = "f:/temp/test.g" name = "0:/gcodes/test-1.g" try: body = open(file).read() duet_response = api_instance.rr_upload_post(body, name) except ApiException as e: print("Exception when calling DefaultApi->rr_upload_post: %s\n" % e)
    • cnc65undefined

      Solved OpenAPI definitions

      Firmware developers
      • • • cnc65
      3
      0
      Votes
      3
      Posts
      195
      Views

      cnc65undefined

      @chrishamm Thank you. That's exactly what I was looking for.

    • cnc65undefined

      VFD spindle drive 0-10V output

      CNC
      • • • cnc65
      12
      0
      Votes
      12
      Posts
      3.7k
      Views

      T3P3Tonyundefined

      thanks! you are right having this as an option for a future board is definitely worth looking at!

    • cnc65undefined

      Workpiece Coordinate System (WCS)

      Firmware wishlist
      • • • cnc65
      14
      0
      Votes
      14
      Posts
      1.6k
      Views

      cnc65undefined

      Thanks for the new RC!
      I tried G53 to G56. All is working as expected.