JSPM

node-red-contrib-stepper

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q45163F
  • License GPL-3.0

A Node-RED node that steps through numbers from a start value to an end value at configurable intervals.

Package Exports

  • node-red-contrib-stepper
  • node-red-contrib-stepper/stepper.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-red-contrib-stepper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-red-contrib-stepper

This Node-RED node facilitates the generation of stepped numerical sequences with user-defined parameters. It is ideal for scenarios where a controlled sequence of numbers is required, such as in simulations, iterative testing, or gradual value changes in automation tasks.

Installation

Install the node directly by using the Node-RED Palette Manager or by running the following command in your Node-RED installation directory:

npm install node-red-contrib-stepper

Features

  • Configurable Range: Set start and end points for the sequence.
  • Step Control: Define the increment or decrement step size.
  • Timing Adjustment: Specify the duration for each step.
  • Dynamic Control: Start, stop, resume, and reset the sequence dynamically with input messages.

Usage

Configure the node with the following settings:

  • From: The initial value of the sequence.
  • To: The final value of the sequence.
  • Step: The value by which to increment or decrement.
  • Duration: The delay between steps in milliseconds.

Control the node by sending a message with a boolean true payload and one of the following topics:

  • start: Initiates the sequence.
  • stop: Halts the sequence.
  • reset: Resets the sequence to the initial From value.
  • resume: Resumes the sequence from where it was stopped.

Example

Refer the example included with this node

Copy and import it into your Node-RED environment to see the stepper node in action.

Issues and Support

For bug reports, feature requests, or any other queries, please open an issue on the GitHub repository:

Issue Tracker for node-red-contrib-stepper

Contributing

Feel free to dive in! Open an issue or submit PRs. Contributions should be made via a GitHub pull request with a clear list of what you've done.

License

node-red-contrib-stepper is available under the GNU General Public License v3.0. See the LICENSE for more details.

Acknowledgments

This node was developed by Harshad Joshi. Contributions and feedback are always welcome to improve the tool's capabilities.

Development Information (Latest)

  • Version: 1.2.0
  • Release Date: March 24, 2024
  • Changelog: Added resume functionality for resuming the sequence from where it was stopped.