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

Email/notifications from Duet wifi

Scheduled Pinned Locked Moved
Duet Web Control
10
21
2.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
    Nightreaver @dc42
    last edited by 12 Nov 2019, 11:20

    @dc42 said in Email/notifications from Duet wifi:

    Our latest thoughts about this are to embed a MQTT client in RRF that publishes messages about the current state of the printer e.g. printer powered up, print started, print completed, print paused by filament monitor.

    any ETA there?

    1 Reply Last reply Reply Quote 0
    • undefined
      AS-3D Druck @dc42
      last edited by 12 Nov 2019, 16:25

      @dc42 So there will be a implematation for Google Home/Alexa with some commands like:
      ''How long does the Print take to finish?''

      Or:

      ''Pause print''

      Best regards
      AS-3D Druck / Andre

      undefined 1 Reply Last reply 13 Nov 2019, 10:23 Reply Quote 0
      • undefined
        Nightreaver @AS-3D Druck
        last edited by 13 Nov 2019, 10:23

        @AS-3D-Druck thats should be doable with MQTT then.
        But @dc42 didnt mention anything about receiving commands via MQTT.
        So only getting status info for now?!

        1 Reply Last reply Reply Quote 0
        • undefined
          r123
          last edited by 5 Jan 2020, 06:08

          Basically everyone wants to get a message on their phone saying either "print finished"; "change filament" or "heater problem"... Could be by e-mail, by SMS, by some more custom means..... We just want the notification so we can stop checking on our printer (s) and concentrate on doing other things (having dinner, chatting, sleeping....).

          Is the MQTT option difficult to setup? How is it received on the phone?

          This will be a big ease-of-use leap forward: let's not hang around! 😄

          1 Reply Last reply Reply Quote 0
          • undefined
            Danal
            last edited by 5 Jan 2020, 10:06

            Having an MQTT push is easier.

            However, right now, any RRF release short of 3 can be polled by HTTP. There are lots of examples, including things that run on tiny little IOT devices like ESP8266 or ESP32. Or a little script running somewhere could then connect to whatever push notification you want.

            Or... on your local network, build one of these: https://github.com/DanalEstes/DuetMonitor

            RR3 can be polled by websocket. Not as many examples, because it is newer.

            Delta / Kossel printer fanatic

            undefined 1 Reply Last reply 5 Jan 2020, 10:36 Reply Quote 0
            • undefined
              r123 @Danal
              last edited by 5 Jan 2020, 10:36

              @Danal what would the MQTT push be read by on my phone? A Duet specialist app? Or...

              1 Reply Last reply Reply Quote 0
              • undefined
                Danal
                last edited by Danal 1 May 2020, 12:15 5 Jan 2020, 12:13

                MQTT is a defacto standard for IOT interaction. The most effective way to use it with a 3D printer that produced MQTT messages would be to configure (not code) a small MQTT broker on an always running machine at your house. PC, Mac, Pi, whatever. Probably mosquito.

                That MQTT broker would receive the messages, and invoke whatever you want to push to your phone. SMS, Email, Pushover, Airship, whatever service you wish.

                Delta / Kossel printer fanatic

                1 Reply Last reply Reply Quote 1
                • undefined
                  Danal
                  last edited by 5 Jan 2020, 12:17

                  Why not just write a "send email" capability into the Printer? Because that would (more or less) require the printer to contact a web IP address. Bad, bad juju to have IOT devices like printers open anything to the internet.

                  Also lack of flexibility. There are dozens, if not hundreds, of notification services. The printer firmware would always be lacking some specific interface.

                  MQTT from printer to broker, broker is the one handling internet stuff, and can probably interface to almost anything, either built in, or via command line. Much better juju.

                  Delta / Kossel printer fanatic

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    r123
                    last edited by 5 Jan 2020, 12:27

                    I thought ssl smtp access was just a single port?

                    An IOT gadget can’t be made “broadcast only” (thus safe) in its internet access?

                    undefined 1 Reply Last reply 5 Jan 2020, 21:14 Reply Quote 0
                    • undefined
                      Danal @r123
                      last edited by 5 Jan 2020, 21:14

                      @r123 said in Email/notifications from Duet wifi:

                      I thought ssl smtp access was just a single port?

                      An IOT gadget can’t be made “broadcast only” (thus safe) in its internet access?

                      Safe is relative. Better that a firmware based device have absolutely zero direct connectivity. In, out, whatever.

                      But really, the much bigger reason is... what list of things to support from the firmware? "Just" SMTP?? What about SMTP with authentication? (there are VERY few open mailservers around anymore). With TLS? or some other encryption? or MAPI (a much more secure mail protocol)? Or...

                      MQTT for IOT devices. MQTT broker to do anything you want.

                      Delta / Kossel printer fanatic

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        Nightreaver
                        last edited by 15 Jan 2020, 19:48

                        @dc42 Is there any update on the MQTT progress?
                        Will it be available with RRF 2 or only with the new RRF3 ?

                        Will it publish all information from the WebIF? Like temps, speed, job status etc?

                        undefined 1 Reply Last reply 15 Jan 2020, 21:57 Reply Quote 0
                        • undefined
                          dc42 administrators @Nightreaver
                          last edited by 15 Jan 2020, 21:57

                          @Nightreaver said in Email/notifications from Duet wifi:

                          @dc42 Is there any update on the MQTT progress?

                          Not yet.

                          Will it be available with RRF 2 or only with the new RRF3 ?

                          I will not be adding any new features to RRF2.

                          Will it publish all information from the WebIF? Like temps, speed, job status etc?

                          No, just "major event" messages. Other devices can use HTTP requests rr_status and rr_model to get the data they want.

                          Duet WiFi hardware designer and firmware engineer
                          Please do not ask me for Duet support via PM or email, use the forum
                          http://www.escher3d.com, https://miscsolutions.wordpress.com

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            Lanovar
                            last edited by 1 Jul 2020, 15:59

                            @dc42 said in Email/notifications from Duet wifi:

                            @Nightreaver said in Email/notifications from Duet wifi:

                            @dc42 Is there any update on the MQTT progress?

                            Not yet.

                            @dc42 Any news on that? 🙂

                            1 Reply Last reply Reply Quote 1
                            • undefined
                              Nightreaver
                              last edited by 1 Dec 2020, 21:50

                              For those who are interested...

                              I took a similar solution for MQTT and adapted it to duet3d api endpoint.
                              It works fine so far as im using it for myself, tho not all options for MQTT publishing are implemented yet.
                              Feel free to try it and report bugs.

                              https://github.com/Nightreaver/RRF_WebIF_MQTT

                              1 Reply Last reply Reply Quote 1
                              • alankilianundefined
                                alankilian
                                last edited by alankilian 12 Jan 2020, 22:11 1 Dec 2020, 22:09

                                I'll definitely try this mid-December after my current printing set is complete.

                                One thing: In my MQTT experience, it's a good idea to have a topic like "State" where you set the last-will to publish with retain a payload of "Offline" and then in the connect routine, publish a payload of Online" with retain.

                                That way, you can check the state easily without looking at any other topics.

                                I see you have a last-will set, but I'm not familiar with those three systems, so I don't know if that's the by-the-book way to use last will. If so, ignore me.

                                Also, it's also good to have a unique device ID in the topic so many devices can all publish to a broker and you can weed them out by which topics you subscribe to.

                                SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  Nightreaver
                                  last edited by 1 Dec 2020, 23:35

                                  I see, thats what LWT means! I will check up on that topic, thanks

                                  alankilianundefined 1 Reply Last reply 2 Dec 2020, 00:04 Reply Quote 0
                                  • alankilianundefined
                                    alankilian @Nightreaver
                                    last edited by 2 Dec 2020, 00:04

                                    @Nightreaver Cool.

                                    You can contact me anytime for MQTT-related discussions.

                                    I spent 4 years doing commercial MQTT implementations on tiny microcontrollers and have tens of thousands devices in the field talking all day long.

                                    SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

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