Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-red-node-smooth - how to reset or clear the node for new data set? #273

Closed
mattyg-repo opened this issue Feb 3, 2017 · 5 comments
Closed

Comments

@mattyg-repo
Copy link

how can i reset or clear the node to process a completely new set of data and get an Mean only from the new data set?

Thanks

@hardillb
Copy link
Member

hardillb commented Feb 3, 2017

Doesn't look like that's possible at the moment.

A Pull Request would probably be looked on favourably.

@dceejay dceejay closed this as completed in 93c85ca Feb 7, 2017
@dceejay
Copy link
Member

dceejay commented Feb 7, 2017

@mogmedia - I have added the ability to reset the node by sending in a msg with a reset property of any value. (i.e. if msg.reset exists on msg) it will reset to the initial state - clear counters etc.
published as version 0.0.10

@srt9969
Copy link

srt9969 commented May 3, 2019

Hi,
Been trying to set up a max-min thermometer using node red (ESP32/DHT22/MQTT/RPi3(please bear with me, I'm new at this)).
I need a reset button for the max and min gauges, so used a button to fire a function node setting msg.reset = 1 to reset the subsequent smooth node(s). the gauges (fed by the smooth nodes) reset to a value of 1 - fine for the max gauge which reset to current temp with next mqtt message, but min gauge will have to wait until temp falls below 1, presumably!
So, what did I miss, or is there a better way, please? Thank you for your forebearance, I hope that all made sense...
(I did attach the flow, but I'd already deleted the button/function nodes, so it really wasn't edifying....)

@hardillb
Copy link
Member

hardillb commented May 3, 2019

Please ask how to questions on slack or the forum rather than on closed issues

@srt9969
Copy link

srt9969 commented May 3, 2019

Oops, sorry. Told you I was new at this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants