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

    Duet Web Control Plug-in Development Template

    Scheduled Pinned Locked Moved
    Duet Web Control
    5
    5
    1.1k
    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.
    • TLASundefined
      TLAS
      last edited by

      I’m working on an updated Webcam plugin for the Raspberry Pi camera, and I’m new to the Vue framework (I’ve mostly worked in Angular). I took a stab at the update yesterday and think I’ve mostly got the hang of it, but it got me thinking - why not create an empty ‘template’ plugin with some good comments to help those who haven’t used the vue framework before? I think it would help pull more people to contribute who have other web experience.

      Also, on a side note, I’d recommend that the localization settings be migrated to the individual plugins to help them be self-contained. Updating a single localization file for every plugin language isn’t very practical. Is there some automation of the localization?

      1 Reply Last reply Reply Quote 1
      • adamj12bundefined
        adamj12b
        last edited by

        @TLAS said in Duet Web Control Plug-in Development Template:

        I took a stab at the update yesterday and think I’ve mostly got the hang of it, but it got me thinking - why not create an empty ‘template’ plugin with some good comments to help those who haven’t used the vue framework before? I think it would help pull more people to contribute who have other web experience.

        This sounds very useful for someone like me! I can usually get something working if I have something to build off.

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

          This will follow as part of v3.3 because that version will support plugins on the Pi too (Duet 3 + SBC). Future plugins should indeed provide their own localization but for built-in plugins it doesn't make much sense to have two i18n providers.

          If you can't wait, see here for a preliminary template and docs. To make a new plugin, develop it as a built-in plugin (like the Heightmap for example) with DWC 3.2 and when it's ready build DWC using npm run build. Then take the new JS chunk of your plugin (and other resources) from the dist directory and put everything into the www directory.

          Duet software engineer

          Egaussundefined 1 Reply Last reply Reply Quote 0
          • Egaussundefined
            Egauss @chrishamm
            last edited by

            @chrishamm can you point me which programming languages supported for third party plugins, thanks.

            Logstorundefined 1 Reply Last reply Reply Quote 0
            • Logstorundefined
              Logstor @Egauss
              last edited by

              @egauss For the DuetWebControl you use Javascript with Vue, and for the SBC(Raspberry) you use C#. Duet provides DuetAPI and DuetAPIClient nuget packages, which you can use to develop the SBC plugin.

              Alfred Rydahl
              COBOD International A/S Software intern.

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