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

    MQTT4DSF - An SBC Python service for MQTT integration with DSF

    Scheduled Pinned Locked Moved
    Third-party software
    1
    1
    776
    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.
    • MintyTreborundefined
      MintyTrebor
      last edited by

      Following a conversation over on the DSF LPC discord group about using MQTT with DUET, I've had a go at creating a python service for SBC's running DSF, which enables MQTT integration with DSF.

      MQTT4DSF (https://github.com/MintyTrebor/MQTT4DSF) has 4 main functions:

      1. Subscribe to user defined DSF events and send mqtt msgs to a broker of choice on receipt of event (user configurable)
      2. Poll DSF on a timed frequency and send mqtt msgs based on a value delta (user configurable)
      3. Send user defined MQTT msgs when specially formatted M117 msgs are received from DSF events.
      4. Act as MQTT to GCode proxy - passing GCode commands to DSF and executing them on the machine, by subscribing to a custom MQTT topic.

      Short video of features in use - https://www.youtube.com/watch?v=2XwTgxythTE

      It runs on the DSF SBC (tested on rpi), using the DSF python API library, and the Duet Rest API. Its user configurable through a json file accessible through DWC.

      MQTT4DSF.jpg

      It's had limited testing but I hope it might be of use to someone here.

      NodeDSF - Native Node-Red integration with Duet boards.
      BtnCmd - Customise DWC with user defined buttons/layouts/panels (DWC Plugin)
      ReleaseMgr - Duet update info inside DWC.
      Repo

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