JSPM

@omidteimoori/node-red-data-generator

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q24200F
  • License MIT

A customizable Node-RED node to simulate various data patterns including sinusoidal, random, rising, falling, square, triangle, and sawtooth. Ideal for testing and prototyping dashboards, PLC interfaces, and IoT flows.

Package Exports

  • @omidteimoori/node-red-data-generator
  • @omidteimoori/node-red-data-generator/data-generator.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 (@omidteimoori/node-red-data-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@omidteimoori/node-red-data-generator

A custom Node-RED node to simulate various data types such as sinusoidal, random, rising, falling, square, triangle, and sawtooth values. Ideal for testing dashboards, signal processing, OPC UA mockups, or edge device emulation.

Features

  • Outputs data automatically after deployment (no trigger required)
  • Supports:
    • Sinusoidal wave
    • Random values
    • Rising ramp
    • Falling ramp
    • Square wave
    • Triangle wave
    • Sawtooth wave
  • Customizable:
    • Frequency (ms)
    • Minimum and maximum values
    • Step size
  • Sets msg.payload to the generated value and msg.topic to the selected data type

Installation

You can link it locally while developing:

cd ~/.node-red
npm install @omidteimoori/node-red-data-generator

Usage

  1. Open the Node-RED editor
  2. Drag the Data Generator node from the "function" category
  3. Configure the following options:
    • Type: Select waveform (sinusoidal, square, etc.)
    • Frequency: Output rate in milliseconds
    • Min/Max: Value range
    • Step: Precision or ramp size

Author

Developed by Omid Teimoori
MIT License