npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-dsfnode

v1.1.11

Published

Nodes for working with the Duet Software Framework & Duet Control Boards

Downloads

29

Readme

dsfnode

dsfnode is a set of nodes which enable Node-Red to interface with the Duet Software Framework (v3.3+) running on an SBC, or a network enabled Duet v2/3 (or compatible) control board running v3.3+ RepRap firmware.

The RepRap firmware labels anything operated by itself a 'Machine', and constructs a Object Model representing the current state of the entire Machine and its associated components. A network enabled Duet control board, or DSF running on an SBC, can output the Object Model to a client via a web-socket or rest api. dsfnode enables the connection and provides a set of nodes to use the Object Model in Node-Red. The Object Model is a JSON object representing the current state of the Machine which is constantly updated by DSF and passed to the connected web-socket client.

dsfnode has 5 nodes:

  • dsf-connector (control node) : Stores the mode & connection details enabling the web-socket connection to the DSF or a network enabled Duet control board.
  • dsf-monitor: Creates the web-socket connection to DSF/Duet and processes the Machine Model updates.
  • dsf-event : Parses the updated Machine Model for a specified object value change, and triggers when a match if found.
  • dsf-intercept: Watches for specially formatted messages embedded within running g-code to trigger events within Node_Red.
  • dsf-command: Send a g-code or m-code command to DSF for action.

Please refer to the NodeDSF wiki on github for detailed instructions on usage, and example flows.

Note: Duet control boards have connection/session limitations, and dsfnode consumes at least one of the available sessions. Please refer to the NodeDSF wiki on github for more information. When operating in Duet mode it is not recommended to have the DWC web interface open on the same computer running dsfnode/node-red. The Duet mode currently delivers a subset of the full Object Model to reduce load on the control boards. If there is data that is missing please raise an issue and I will see if it can be added.

Change Log
V1.1.11 - Updated for RepRap Firmware version 3.5+ compatability.
V1.1.10 - Updated to NodeRed V3+. Fixed buggy Intercept Node, and messaging system. M118 and other console messages will now be found in state.consoleMessage. M117 message text will remain in state.displayMessage.
V1.1.9 - Improved Msg Handling in Duet mode.
V1.1.8 - Added status indicators to monitor node.
V1.1.7 - Better recovery handling for emergency stop situations and power failures. Further changes to M118 & M291 handling, General Bug Fixes.
V1.1.6 - For Node-Red V2+ & Tested on RepRapFirmware 3.4RC1. Changes to the way M118 & M291 are handled. General Bug Fixes.
V1.1.5 - Improved communication in Duet mode which should resolved rare issue where board could crash or fail to respond, plus fixed node not stopping on deploy when active.
V1.1.4 - Fixed issue with M117/M118 Messages not being included in the model when in Duet Mode
V1.1.3 - Added Global Variables to the Monitor Node
V1.1.2 - Added support for password protected connections (Note: passwords are in clear text as per Duet spec) & improved error handling.
V1.1 - Add Duet mode to enable connection to network enabled control boards not running with DSF on SBC
V1 - Initial Release