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

Emit message on output shortly after the configuration is applied #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akomelj
Copy link

@akomelj akomelj commented Oct 27, 2021

This pull requests changes the config node's behavior to emit a message with the current timestamp shorty after the configuration is applied.

A short delay (100 ms) is needed for Node RED to finish configuring and wiring the node - this behavior mimics the behavior of inject node.

Reasoning behind the change is as follows: I have several flows where I have to post-process the configuration (e.g. generate a list of MQTT topics to subscribe to - based on the values from the configuration node). I've been successfully handling this by running a periodic inject message every minute or so to trigger the post-processing so far. In one project, though, I need a much faster response times to eventual configuration changes and emitting a message after the configuration is reset seems the most appropriate way to achieve this.

@koerbcm
Copy link

koerbcm commented Nov 17, 2022

+1

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

Successfully merging this pull request may close these issues.

2 participants