@mschaeffler/node-red-hourmeter 0.2.5

A working hour meter for NodeRed.

npm install @mschaeffler/node-red-hourmeter

hour meter

A working hour meter for NodeRed.

image of example flow

Install

$ npm install @mschaeffler/node-red-hourmeter

Usage

The counter is started / stopped according to the value of the payload:

type value counter is
bool false stopped
true started
number 0 stopped
1 started
string false stopped
0 stopped
off stopped
stop stopped
true started
1 started
on started
start started

A local filesystem context store called storeInFile is needed to store the internal data.

Input

msg. type description
payload Starts or stopps the counting.
reset boolean If true, resets the counter to 0.
querry boolean If true, just querries the state of the counter.

Outputs

boolean value

msg. type description
payload boolean Is counting active?

hour counter

msg. type description
payload number Value of the hour counter.

Parameters

config type description
topic string Topic to send output values with.
cycle number Cyclic time of output; 0 is only at state change.

Example Flow

example flow

Author

Mathias Schäffler

License

LGPL-2.1

Node Info

Version: 0.2.5
Updated 1 year, 9 months ago
License: LGPL-2.1
Rating: not yet rated

Categories

Actions

Rate:

Downloads

14 in the last week

Nodes

  • hourmeter

Keywords

  • node-red

Maintainers