-
Notifications
You must be signed in to change notification settings - Fork 0
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 config information when set with msg.output #8
Comments
Just providing a suggestion on how this could be done. This could be implimented into the router by sending a specific control message and having a status node provide an object of each output its its configuration state |
Hi @animalkingdoms, I have never used the Status node myself. For the node-red-contrib-queue-gate node that indeed sounds a logical way to do it, since the status information for that node is fairly short. But not sure how I should implement that into my node. I have N outputs, which each have multiple properties (weight, ...). So that is quite a bunch of information, which I cannot simply show in the status of the node. The status of a node is plain text, and not an object (see documentation). Can't we solve your problem another way? Currently this node allows (see readme) to change the settings of a specified output, by injecting a message containing an
Bart |
I see some possible options from what you have said.
If the payload from the status was a text dump from the router node that would be OK, but i would format it like the below - preferably by the node, but can be done by formatting the payload that comes out of the status node with a function or parsser of some sort
Cheers! Here is Q-Gate flow with a status control message, with a status node connected to a debug
Its output on the debug is under msg.status The status node can be set to only give status of specific nodes for clean use if the user has multiple nodes |
Thanks for the detailed information! Option 1 - include the settings in the msg that passes throughLike you already said: that way we are are polluting all the messages that are passed through (with duplicate information), and you cannot simple ask the current setting. Option 3 - Utilizing the Status node payload.Yes but your example shows what I tried to explain above.
Option 2 - a dedicated config/status output on the router node.Indeed that might be confusing since you have already N outputs, where N is not fixed. So I don't know a good solution. Option 2 seems to be the least bad solution... |
Is there a way to get the config of the node when it has been customised using msg.output
In my use case I am adjusting the weights and the active status of 6 outputs on the router, but have no way to confirm at any time the config of the node. I am storing my status in a flow variable as a workaround but would love to see this information / extract it form the router node directly
The text was updated successfully, but these errors were encountered: