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

DueUI: An Alternate Web Interface

Scheduled Pinned Locked Moved
DueUI
12
65
11.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.
  • undefined
    gtj0
    last edited by 24 Feb 2019, 21:41

    If no one's noticed...
    https://forum.duet3d.com/topic/9257/dueui-1-0-0-alpha-is-available-for-testing

    1 Reply Last reply Reply Quote 0
    • undefined
      DaveA
      last edited by 24 Feb 2019, 23:01

      I'll assume that I'm doing something wrong but here it is. I've got DueUI installed and it's displaying valid temperature and position information. What I cannot do is initiate any action. If I click on Home All I see a G28 in the upper text window but the printer doesn't home. Same for any other button.
      Did I miss a setup step somewhere?

      undefined 1 Reply Last reply 25 Feb 2019, 02:36 Reply Quote 0
      • undefined
        gtj0 @DaveA
        last edited by 25 Feb 2019, 02:36

        @davea Check settings. You probably have "Don't Send GCode. Log Only" checked (green). For normal operation it should be off (red).

        undefined undefined 2 Replies Last reply 25 Feb 2019, 09:06 Reply Quote 0
        • undefined
          thwe @gtj0
          last edited by thwe 25 Feb 2019, 09:06

          @gtj0 said in [Preview] DueUI: An Alternate Web Interface:

          @davea Check settings. You probably have "Don't Send GCode. Log Only" checked (green). For normal operation it should be off (red).

          … that it will be - with me all orders are executed first.

          Also, I've created ATX ON / OFF buttons -> runs!

          Unfortunately, the themes do not seem to be so uniform: after switching between themes, the fields are slightly shifted

          Values at the heaters are only displayed as soon as I have switched on my 24V supply (ie ATX ON).

          After an ATX-OFF, the status is not updated.

          Depending on the theme, the key cross for XY is also shifted, the midpoints are not exactly on top of each other.
          But it can also be on my 10.1 inch tablet ... no matter, you can adapt - but you should stay with a theme!

          Otherwise, the beginning is really good

          0_1551085558718_Screenshot_2019-02-25-09-59-23.png

          1_1551085558719_Screenshot_2019-02-25-09-59-34.png

          2_1551085558719_Screenshot_2019-02-25-09-59-42.png

          Thomas

          undefined 1 Reply Last reply 25 Feb 2019, 15:50 Reply Quote 0
          • undefined
            gtj0 @thwe
            last edited by 25 Feb 2019, 15:50

            @thwe said in [Preview] DueUI: An Alternate Web Interface:

            @gtj0 said in [Preview] DueUI: An Alternate Web Interface:

            @davea Check settings. You probably have "Don't Send GCode. Log Only" checked (green). For normal operation it should be off (red).

            … that it will be - with me all orders are executed first.

            Also, I've created ATX ON / OFF buttons -> runs!

            The next alpha will expose the "checkbox" widget that the buttons in settings use. This way you can have a single button that toggles the ATX power state.

            Values at the heaters are only displayed as soon as I have switched on my 24V supply (ie ATX ON).

            After an ATX-OFF, the status is not updated.

            I'll check on that today.

            Unfortunately, the themes do not seem to be so uniform: after switching between themes, the fields are slightly shifted

            Depending on the theme, the key cross for XY is also shifted, the midpoints are not exactly on top of each other.
            But it can also be on my 10.1 inch tablet ... no matter, you can adapt - but you should stay with a theme!

            Unfortunately, I have no control over the themes but I thought all of the themes except for "Base" were consistent. "Base" is basically "no theme" so the contents may shift when you switch between "Base" and any other theme. Does refreshing the browser between theme switches help at all?

            For the XY Axis issue, try this for the Y axis position...

            "position": {"my": "center center", "at": "center center", "of": "#jog_x" }
            

            and see if it works. That should align the 2 center blank buttons. For me, it works on some devices but not others.

            Otherwise, the beginning is really good

            Thanks!

            undefined 1 Reply Last reply 26 Feb 2019, 05:50 Reply Quote 0
            • undefined
              DaveA @gtj0
              last edited by 25 Feb 2019, 17:00

              @gtj0 Yep, that was it. Thanks.

              undefined 1 Reply Last reply 25 Feb 2019, 17:48 Reply Quote 0
              • undefined
                gtj0 @DaveA
                last edited by 25 Feb 2019, 17:48

                @davea The ATX issue is that I forgot to add a status for "O" (off) to the
                status map at the bottom of the config file.

                Add...

                "O": {"label": "Off","style": {"background": "red","color": "black"}},
                

                to the status_map object after the entry for "H".

                1 Reply Last reply Reply Quote 0
                • undefined
                  thwe @gtj0
                  last edited by 26 Feb 2019, 05:50

                  @gtj0 said in [Preview] DueUI: An Alternate Web Interface:

                  Does refreshing the browser between theme switches help at all?

                  No, there are little differents from hight of Buttons and so on.
                  Never mind, now I use only theme BASE as my Basic.

                  Other feedback:
                  After pressing STOP, the printer stops as expected immediately - but then the DWC asks "The firmware still reports to be stopped after an emergency stop." and must be answered there - unfortunately not on DueUI. Even pressing the "RESTART" button on the DueUI does not help.

                  Is there a solution here?

                  Thomas

                  undefined 1 Reply Last reply 26 Feb 2019, 14:23 Reply Quote 0
                  • undefined
                    gtj0 @thwe
                    last edited by 26 Feb 2019, 14:23

                    @thwe said in [Preview] DueUI: An Alternate Web Interface:

                    @gtj0 said in [Preview] DueUI: An Alternate Web Interface:

                    Does refreshing the browser between theme switches help at all?

                    No, there are little differents from hight of Buttons and so on.
                    Never mind, now I use only theme BASE as my Basic.

                    Other feedback:
                    After pressing STOP, the printer stops as expected immediately - but then the DWC asks "The firmware still reports to be stopped after an emergency stop." and must be answered there - unfortunately not on DueUI. Even pressing the "RESTART" button on the DueUI does not help.

                    Is there a solution here?

                    Hmmm. On my Duet, when I send M112, the Duet restarts by itself and is ready again in about 15 seconds. Try it with the DWC disconnected and see what happens on DueUI.

                    undefined 1 Reply Last reply 27 Feb 2019, 17:27 Reply Quote 0
                    • undefined
                      thwe @gtj0
                      last edited by 27 Feb 2019, 17:27

                      @gtj0 said in [Preview] DueUI: An Alternate Web Interface:

                      Hmmm. On my Duet, when I send M112, the Duet restarts by itself and is ready again in about 15 seconds. Try it with the DWC disconnected and see what happens on DueUI.

                      Without a connect from DWC to the Duet every is OK.

                      Other question:

                      with

                      "actions": [{"type": "gcode", "gcode": "M98 Px_macro_test01.g"}]
                      

                      i can call a file, but how can i call a macro from the macro-subfolder?

                      ... for example "\macros\Tools\Tool bed messuring 5 points"

                      Thomas

                      undefined 1 Reply Last reply 27 Feb 2019, 21:23 Reply Quote 0
                      • undefined
                        thwe
                        last edited by thwe 27 Feb 2019, 18:59

                        Below I want to show you what I have created in the last few days with the DueUI.

                        DueUI is certainly not a replacement for DWC, but for me the ideal basis as a control panel directly on the printer.
                        Small netbook (without touch) was ok so far, but the operation with mouse pad was not so comfortable. Also the picture quality was not so sharp.

                        Desire was as much control panels by touch on little surfaceas as possible and not to lose the overview - so actually a contradiction.
                        Since my 10 inch tablet only serves once a year as a navigation tool on the boat, it has now got a great job again πŸ‘

                        Surely everyone has it's own idea of ​​what an ergonomic and clear surface is, but with the DueUI you can quite well realize your own taste.
                        With a little bit of logical thinking, even a non-programmer like me can do something with it.

                        Below are a few pictures of my current state in the Chrom-browser:

                        Display in normal mode, axes homed, ATX ON
                        0_1551293223865_Screenshot_2019-02-27-18-28-11.png

                        ATX OFF
                        0_1551293301469_Screenshot_2019-02-27-18-28-22.png

                        And now in full-screen - and now the status indicator is visible
                        0_1551293327236_Screenshot_2019-02-27-18-28-51.png

                        After a reboot - axes not homed and ATX OFF
                        0_1551293429821_Screenshot_2019-02-27-18-29-40.png

                        Open selection menu
                        0_1551293524436_Screenshot_2019-02-27-18-30-12.png

                        The operation of the axes with the jogging as a cross is closer to reality, but so the place is much better exploited - we are all professionals and come so synonymous with itπŸ˜†

                        If you are interested, I will gladly provide the configuration file, but without any guarantee and with the note that certain details are adapted to MY printer and probably only usable on a 10 inch tablet.

                        Thomas

                        undefined 1 Reply Last reply 27 Feb 2019, 21:34 Reply Quote 4
                        • undefined
                          gtj0 @thwe
                          last edited by 27 Feb 2019, 21:23

                          @thwe said in [Preview] DueUI: An Alternate Web Interface:

                          @gtj0 said in [Preview] DueUI: An Alternate Web Interface:

                          Hmmm. On my Duet, when I send M112, the Duet restarts by itself and is ready again in about 15 seconds. Try it with the DWC disconnected and see what happens on DueUI.

                          Without a connect from DWC to the Duet every is OK.

                          Other question:

                          with

                          "actions": [{"type": "gcode", "gcode": "M98 Px_macro_test01.g"}]
                          

                          i can call a file, but how can i call a macro from the macro-subfolder?

                          ... for example "\macros\Tools\Tool bed messuring 5 points"

                          When a macro is in a subdirectory, you have to use the full path...
                          M98 P"/macros/Tools/Tool bed messuring 5 points.g"

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            gtj0 @thwe
                            last edited by 27 Feb 2019, 21:34

                            @thwe said in [Preview] DueUI: An Alternate Web Interface:

                            Below I want to show you what I have created in the last few days with the DueUI.

                            DueUI is certainly not a replacement for DWC, but for me the ideal basis as a control panel directly on the printer.
                            Small netbook (without touch) was ok so far, but the operation with mouse pad was not so comfortable. Also the picture quality was not so sharp.

                            Desire was as much control panels by touch on little surfaceas as possible and not to lose the overview - so actually a contradiction.
                            Since my 10 inch tablet only serves once a year as a navigation tool on the boat, it has now got a great job again πŸ‘

                            Surely everyone has it's own idea of ​​what an ergonomic and clear surface is, but with the DueUI you can quite well realize your own taste.
                            With a little bit of logical thinking, even a non-programmer like me can do something with it.

                            <snip>

                            The operation of the axes with the jogging as a cross is closer to reality, but so the place is much better exploited - we are all professionals and come so synonymous with itπŸ˜†

                            If you are interested, I will gladly provide the configuration file, but without any guarantee and with the note that certain details are adapted to MY printer and probably only usable on a 10 inch tablet.

                            That's fantastic! It's demonstrates perfectly the whole point of DueUI: Creating something that works for YOU. Thanks for sharing it!

                            I was thinking of enabling the Wiki on GitHub where others could share their designs. Maybe this will be the first.

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              thwe
                              last edited by 27 Feb 2019, 22:32

                              @gtj0 said in [Preview] DueUI: An Alternate Web Interface:

                              I tried

                              "actions": [{"type": "gcode", "gcode": "P"/macros/Tools/Only_a_test.g""}]

                              but this would not work (Syntax error of CSS) because of the double quotes

                              … this

                              "actions": [{"type": "gcode", "gcode": "P/macros/Tools/Only_a_test.g"}]
                              

                              is for the CSS correctly, but the Duet can not interpret that because:
                              --> Error: Bad command: P/macros/Tools/Only_a_test.g

                              Somehow, the 2 "quotes" must be passed in the Statement within the outer quotation marks

                              Thomas

                              undefined 1 Reply Last reply 27 Feb 2019, 23:15 Reply Quote 0
                              • undefined
                                thwe
                                last edited by 27 Feb 2019, 22:34

                                Another Question:

                                Is it possible to show the value of the slider?

                                In my pictures you can see that I have inserted 3x? as a placeholder

                                Thomas

                                undefined 1 Reply Last reply 27 Feb 2019, 23:29 Reply Quote 0
                                • undefined
                                  gtj0 @thwe
                                  last edited by gtj0 27 Feb 2019, 23:15

                                  @thwe said in [Preview] DueUI: An Alternate Web Interface:

                                  @gtj0 said in [Preview] DueUI: An Alternate Web Interface:

                                  I tried

                                  "actions": [{"type": "gcode", "gcode": "P"/macros/Tools/Only_a_test.g""}]

                                  You can either escape the double quotes with backslashes:
                                  "actions": [{"type": "gcode", "gcode": "P\"/macros/Tools/Only_a_test.g\""}]
                                  or in javascript, single and double quotes do the same thing:
                                  "actions": [{"type": "gcode", "gcode": "P'/macros/Tools/Only_a_test.g'"}]
                                  or:
                                  "actions": [{"type": "gcode", "gcode": 'P"/macros/Tools/Only_a_test.g"'}]
                                  or if your macro path doesn't have spaces, you can leave the inner quotes off:
                                  "actions": [{"type": "gcode", "gcode": "P/macros/Tools/Only_a_test.g"}]

                                  BUT see below.

                                  but this would not work (Syntax error of CSS) because of the double quotes

                                  … this

                                  "actions": [{"type": "gcode", "gcode": "P/macros/Tools/Only_a_test.g"}]
                                  

                                  is for the CSS correctly, but the Duet can not interpret that because:
                                  --> Error: Bad command: P/macros/Tools/Only_a_test.g

                                  That's because your real issue is that you forgot the M98 GCode command at the beginning. πŸ™‚

                                  "actions": [{"type": "gcode", "gcode": "M98 P/macros/Tools/Only_a_test.g"}]

                                  undefined 1 Reply Last reply 28 Feb 2019, 13:50 Reply Quote 0
                                  • undefined
                                    gtj0 @thwe
                                    last edited by gtj0 27 Feb 2019, 23:29

                                    @thwe said in [Preview] DueUI: An Alternate Web Interface:

                                    Another Question:

                                    Is it possible to show the value of the slider?

                                    In my pictures you can see that I have inserted 3x? as a placeholder

                                    The best way to do that right now is to have those "???" placeholders be buttons and track the state of the fanPercent values in the status message just as the slider does.

                                    "read_only: true,
                                    "status_level": 1,
                                    "value": "${status.params.fanPercent[0]}",

                                    Change "0" to correspond to each slider's value.

                                    In the next release, I'll add the capability to have labels also track status variables.

                                    undefined 1 Reply Last reply 28 Feb 2019, 14:03 Reply Quote 0
                                    • undefined
                                      thwe @gtj0
                                      last edited by 28 Feb 2019, 13:50

                                      @gtj0 said in [Preview] DueUI: An Alternate Web Interface:

                                      That's because your real issue is that you forgot the M98 GCode command at the beginning. πŸ™‚

                                      There are many problems with programming, the biggest ALWAYS sits in front of the screen 😎 πŸ˜‰

                                      Now it worksπŸ‘

                                      Thomas

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        thwe @gtj0
                                        last edited by 28 Feb 2019, 14:03

                                        @gtj0 πŸ‘

                                        First i tried it with "label" ... without success

                                        code adapted:

                                        {
                                        "id": "fan_0_label2",
                                        "type": "button",
                                        "enabled": true,
                                        "read_only": true,
                                        "status_level": 1,
                                        "value": "${status.params.fanPercent[0]}%",
                                        "style": {"width": "9ch","height": "30px", "font-size": "10px", "text-align": "center"},
                                        "initial_value": "---%",
                                        "position": {"my": "left top", "at": "right+3 top+1", "of": "#fan_0"}
                                        },

                                        and this is the result:
                                        0_1551362555940_Screenshot_2019-02-28-14-51-41.png

                                        I'm very satisfied πŸ˜€

                                        Thomas

                                        1 Reply Last reply Reply Quote 0
                                        • pro3dundefined
                                          pro3d
                                          last edited by 28 Feb 2019, 17:35

                                          I appreciate this project as I use a tablet for controlling the printer with DWC. DWC in a browser is very touch sensitive and I tend to activate stuff I dont mean to and often accidentally refreshes the browser by dragging witch creates a lot of irritation for me. This is a android tablet with chrome browser

                                          Is this UI more user friendly in the touch department?

                                          Is it possible to make an application for mobile devices that is not just a browser based solution? I was very happy with the printoid app when using octoprint. It was an awesome controller with a tablet

                                          https://printoid.net/

                                          0_1551375313240_067 (2).jpg

                                          Valkyrie DIY High Temp 3D Printer

                                          R&D - Engineering Designer - Viking 3D Printers
                                          https://vkingprinter.com/

                                          undefined 2 Replies Last reply 28 Feb 2019, 20:35 Reply Quote 1
                                          18 out of 65
                                          • First post
                                            18/65
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA