Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Web request vuejs

    Scheduled Pinned Locked Moved
    Duet Web Control
    3
    3
    169
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Matthieuundefined
      Matthieu
      last edited by

      Hello everyone,
      I created a web interface and need to be able to send request to Duet with it.
      I use vuejs with axios, but whenever I try to send request, it fail (no response code).

      Is there some CORS requirement ? A problem with Axios ?

      P.S. : not sure about the category

      JBiscundefined 1 Reply Last reply Reply Quote 0
      • JBiscundefined
        JBisc @Matthieu
        last edited by JBisc

        @Matthieu Hey Matthieu,

        I am doing something similar, I am running NodeJs frontend on the RPI and then I use the PythonApi from @wilriker https://github.com/Duet3D/DSF-APIs
        in a FLASK based (Python) backend to communicate with the Duet.

        Would this be a way that would work for you?

        My Setup: Duet 3 MB6HC Main Board with attached RPI

        1 Reply Last reply Reply Quote 0
        • chrishammundefined
          chrishamm administrators
          last edited by

          Starting from software version 3.2 you must add M586 C"*" or similar to your config.g if you are using a local dev setup and want to connect to the Duet from there. Btw good luck with Axios, I replaced that dependency in DWC2 a while back because it had too many glitches.

          Duet software engineer

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA