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

Duet Buddy - a proof of concept remote monitor

Scheduled Pinned Locked Moved
General Discussion
19
85
8.0k
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
    o_lampe @richardmckenna
    last edited by 18 May 2021, 07:16

    Thanks for the prompt answer. I feel a snapshot of the printbed would be helpful...

    @richardmckenna said in Duet Buddy - a proof of concept remote monitor:

    you could use a phone but would you want to leave your phone display on all the time

    Do you stare on the M5 display all the time? I thought, it was mainly used to inform you about a change into pause mode (with a melody), or to check the job progress frequently. Same could apply to a smartphone app.

    undefined 1 Reply Last reply 18 May 2021, 07:26 Reply Quote 0
    • undefined
      richardmckenna @o_lampe
      last edited by 18 May 2021, 07:26

      @o_lampe for me my printers are upstairs in my office. If I’m downstairs I put the M5Stack somewhere in my line of sight so a quick glance would give me an update on the status of the print. With a phone, I would either have to leave it on with the app running propped up somewhere or have to pick it up, unlock it and switch to the app if it’s not the active app. In this scenario it makes more sense to me to have a small dedicated display.

      undefined 1 Reply Last reply 23 May 2021, 00:22 Reply Quote 0
      • undefined
        PastThePoint @richardmckenna
        last edited by 23 May 2021, 00:22

        @richardmckenna Have you shared the new code on github? I have everything setup, I just need to know the address to request from for the Duet 3's.

        undefined 1 Reply Last reply 23 May 2021, 08:48 Reply Quote 0
        • undefined
          richardmckenna @PastThePoint
          last edited by 23 May 2021, 08:48

          @pastthepoint yes just done it, apologies for the delay you can find the pull request here https://github.com/zapta/duet_buddy/pull/1 and the .ino file from the pull request here https://github.com/zapta/duet_buddy/blob/261d93e3068ab4e7ba31b516a9a3a7061c9fcd3a/arduino/arduino.ino

          @zapta any issues give me a shout πŸ™‚

          richard-mckenna opened this pull request 23 May 2021, 08:43 in zapta/duet_buddy

          closed Re-write for RRF3. #1

          undefined 1 Reply Last reply 23 May 2021, 18:01 Reply Quote 0
          • undefined
            zapta @richardmckenna
            last edited by 23 May 2021, 18:01

            Thanks Richard. The pull request should be in now. Let me know if there is any problem.

            Since you are now the active developer, would you like me to point my repository to yours (via a link in the main page), making yours the main one?

            undefined 1 Reply Last reply 23 May 2021, 18:14 Reply Quote 0
            • undefined
              richardmckenna @zapta
              last edited by 23 May 2021, 18:14

              @zapta you can do, happy to continue making little tweaks to it. Next on the list is multiple printers.

              undefined 1 Reply Last reply 23 May 2021, 18:29 Reply Quote 0
              • undefined
                zapta @richardmckenna
                last edited by 23 May 2021, 18:29

                @richardmckenna, what github repository to point to?

                Also, if it's a fork of mine, you may want to decouple it since it will be now the system of record.

                undefined 1 Reply Last reply 23 May 2021, 18:31 Reply Quote 0
                • undefined
                  richardmckenna @zapta
                  last edited by 23 May 2021, 18:31

                  @zapta https://github.com/richard-mckenna/duet_buddy

                  Will do thanks!

                  undefined 1 Reply Last reply 23 May 2021, 18:41 Reply Quote 0
                  • undefined
                    zapta @richardmckenna
                    last edited by zapta 23 May 2021, 18:41

                    @richardmckenna, done https://github.com/zapta/duet_buddy

                    Please let me know when you will decouple from my repository.

                    Edit: Also updated the link at the top post here.

                    undefined 1 Reply Last reply 24 May 2021, 21:55 Reply Quote 0
                    • undefined
                      zapta @zapta
                      last edited by 24 May 2021, 21:55

                      Transition done. Deleted the source code and added your pictures to entice visitors to click on the link. πŸ˜‰

                      https://github.com/zapta/duet_buddy

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        Novastorm
                        last edited by 22 Jun 2021, 08:57

                        Hello,
                        I adopted the Code a litte for using it with M5Stack Core2 AWS.
                        It needs only a few changes in the Code, mostly in the Battery level check.

                        IMG_20210622_104712_5~2.jpg

                        I have changed the HTTP Communication because, when you set a password on the Duet it wont connect properly

                          String protocol = "http://";
                          String con = "/rr_connect?password=";
                          String login_url = protocol + doc["printer_ip"].as<String>() + con + doc["printer_pass"].as<String>();
                        
                          Serial.println(login_url);
                        
                          String query = "/rr_status?type=3";
                          String status_url = protocol + doc["printer_ip"].as<String>() + query;
                          
                          Serial.println(status_url);
                        
                          String dis = "/rr_disconnect";
                          String logout_url = protocol + doc["printer_ip"].as<String>() + dis;
                        
                          Serial.println(logout_url);
                        
                          //Start Connecting to Duet when Wifi is connected
                          if (wifi_connected and com == 0) {
                            com = 1;
                            Serial.println("Wifi Connected");
                          }
                        
                          // Connect to duet and send a Get status http request.
                          http.useHTTP10(true);
                          switch (com) { 
                            case 1: {
                              http.begin(config.printer_pass);
                              Serial.print("[HTTP] GET ");
                              Serial.println(config.printer_pass);
                              com = 2;
                            }
                            break; 
                            
                            case 2: {
                              http.begin(config.printer_ip);
                              Serial.print("[HTTP] GET ");
                              Serial.println(config.printer_ip);
                            }
                            break;
                         
                            case 3: {
                              http.begin(config.printer_diss);
                              Serial.print("[HTTP] GET ");
                              Serial.println(config.printer_diss);
                              M5.shutdown();
                            }
                            break;
                            default : {
                              com = 0;    
                            }
                            break;
                          }
                          const int httpCode = http.GET();
                          Serial.printf("[HTTP] GET... code: %d\n", httpCode);
                        

                        Also edit the SD Card Variables

                         {
                        "wifi_ssid" : "xxx",
                        "wifi_password" : "yyy",
                        "printer_name" : "zzz",
                        "printer_ip" : "xxx.xxx.xxx.xxx",
                        "printer_pass" : "yyy",
                        "printer_diss" : ""
                         }
                        

                        The only thing where i struggle a bit, is to Logoff corectly when Battery level is low or Poweroff is pressed.

                        @richardmckenna
                        @zapta
                        23. Mai 2021, 20:31

                        Have you interest in the full code for M5stack Core2/CoreAWS, for your Github?

                        Using converted UM2+ Dual-Extrusion

                        1 Reply Last reply Reply Quote 1
                        • undefined
                          dhusolo
                          last edited by 15 Aug 2021, 19:57

                          I know this is an old thread but I'm wondering if any has gotten this to work with Duet 3+RPI? My RPI4 is connected to my 5G wifi but it seems because the M5 cannot connect to 5G it cannot connect to the Duet.

                          jay_s_ukundefined 1 Reply Last reply 15 Aug 2021, 19:59 Reply Quote 0
                          • jay_s_ukundefined
                            jay_s_uk @dhusolo
                            last edited by 15 Aug 2021, 19:59

                            @dhusolo I don't think it works with duets and SBCs so it's standalone only

                            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                            undefined 1 Reply Last reply 15 Aug 2021, 20:10 Reply Quote 0
                            • undefined
                              dhusolo @jay_s_uk
                              last edited by 15 Aug 2021, 20:10

                              @jay_s_uk Yup can confirm. It works on my Duet 2 WiFi with RRF 3.2.2 but can't connect to Duet 3 with SBC regardless what WiFi frequency the SBC is connected to

                              undefined 1 Reply Last reply 21 Nov 2021, 22:38 Reply Quote 0
                              • undefined
                                zapta @dhusolo
                                last edited by 21 Nov 2021, 22:38

                                Just stumbled upon this one. It includes an MCU, battery, display, Wifi and a wrist band. With the right firmware it can be the first wearable Duet monitor/controller.

                                https://www.aliexpress.com/item/4000295469872.html

                                Phaedruxundefined 1 Reply Last reply 22 Nov 2021, 03:27 Reply Quote 0
                                • Phaedruxundefined
                                  Phaedrux Moderator @zapta
                                  last edited by 22 Nov 2021, 03:27

                                  @zapta And what a fashion statement!

                                  Z-Bot CoreXY Build | Thingiverse Profile

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