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

    Interfacing with a domotics server

    Scheduled Pinned Locked Moved
    General Discussion
    5
    6
    262
    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.
    • enggmaugundefined
      enggmaug
      last edited by

      Hello,

      In order to indicate to my domoticz server when a print is complete, paused or... anything else I find usefull, I'd like to be able to send Json commands to my domoticz server through execution of the associated macros (Print complete, Pause... etc...).

      Is there a way to do that ?

      Thanks for your help.

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        That's possible using Duet 3 and an attached Raspberry Pi. It's not currently possible using Duet 2.

        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
        • fmaundefined
          fma
          last edited by

          You may do that by attaching a RPi (zero), and write some code asking the Duet status, and sending relevant informations to your domotic server. An ESP8266/32 may be enough.

          Frédéric

          1 Reply Last reply Reply Quote 0
          • fmaundefined
            fma
            last edited by

            Another solution would be to use I²C. You then need to configure your device (Pi, ESP...) as I²C slave. Then, from the Duet, send I²C values from macros, each value meaning someting.

            Frédéric

            1 Reply Last reply Reply Quote 0
            • A Former User?
              A Former User
              last edited by

              Which board are you planning on using? If using Duet3 + Raspberry Pi its reatively straight forward as dc42 says; for the other instances the easiest is to interface to one of the two serial ports (the usb serial console, or the PanelDue port) and either poll for status, or use M118 in your macros to send messages to the serial port of choice.

              Pretty basic example of listening to the PanelDue port with an ESP8266 to play any beeps as needed:
              https://github.com/beikeland/BeeperDue

              1 Reply Last reply Reply Quote 0
              • jay_s_ukundefined
                jay_s_uk
                last edited by

                @enggmaug
                Or use the domotics to poll the duet board periodically through HTTP.
                I guess the domotics server is already running on a Pi?

                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

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