node-red-contrib-tick 0.0.2

Tick node emits message periodically in given interval

npm install node-red-contrib-tick

A Node-RED Tick node, for precise periodic messaging

Installation

Install node-red-contrib-tick using npm:

npm install --save node-red-contrib-tick

Usage

To use the node, launch Node-RED (see running Node-RED for help getting started).

Tick node emits message periodically in given interval. Message is emitted relative to system time. When time mod interval = 0 is satisfy node ticks.

This is different from inject node in repeat mode which is relative to deploy (e. g. 1 second from deploy not when system time is exactly whole second).

Outputs message containing msg.payload and msg.error.

  • msg.payload is counter (increases by 1 every tick)
  • msg.error is difference from desired tick time (in ms)

Icon credit

The node icon made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

Node Info

Version: 0.0.2
Updated 11 months ago
License: MIT

Downloads

0 in the last day
15 in the last week
35 in the last month

Nodes

  • tick

Keywords

  • node-red

Maintainers

  • ah01