dkern / node-red-counter

A Node-RED node to increment a count.
Other
8 stars 9 forks source link

A suggestion #6

Closed linuxtrap closed 6 years ago

linuxtrap commented 6 years ago

Could you implement a way to set initial value?

Initial Count: The initial count get a value from a file or other easy way to store last value. msg.initialcount: The Initial count will be set with the value given from the payload.

Best Regards PerT

dkern commented 6 years ago

Hello @linuxtrap

You can use msg.reset for this: msg.reset: resets the counter to it's initial count, or to the given value, when it's a number.