0.2.5 • Published 2 years ago

@mschaeffler/node-red-hourmeter v0.2.5

Weekly downloads
-
License
LGPL-2.1
Repository
github
Last release
2 years ago

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:

typevaluecounter is
boolfalsestopped
truestarted
number0stopped
1started
stringfalsestopped
0stopped
offstopped
stopstopped
truestarted
1started
onstarted
startstarted

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

Input

msg.typedescription
payloadStarts or stopps the counting.
resetbooleanIf true, resets the counter to 0.
querrybooleanIf true, just querries the state of the counter.

Outputs

boolean value

msg.typedescription
payloadbooleanIs counting active?

hour counter

msg.typedescription
payloadnumberValue of the hour counter.

Parameters

configtypedescription
topicstringTopic to send output values with.
cyclenumberCyclic time of output; 0 is only at state change.

Example Flow

example flow

Author

Mathias Schäffler

License

LGPL-2.1

0.2.5

2 years ago

0.2.3

3 years ago

0.2.4

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago