Hi.
I've created some nodes that provide detailed status information via a second output. However it seemed to me that it might be nicer if I used the existing status framework:
this.status({fill:"red",shape:"ring",text:"disconnected"});
this.status({fill:"green",shape:"dot",text:"connected"});
and the status
node under node-red.
The problem is, it does not seem to be possible to pass any extra information.
I thought it might nice if this.status()
had an optional second argument payload
, and the status
node would then place that in msg.payload
.
Where error
is the error object of some operation:
this.status(
{fill:"red",shape:"ring",text:"authentication failed"},
{info:"further operation details",error:error}
);
The status
node could then emit:
{
status:{ text:"authentication failed", source:{ type: "", id: "", name: "" }
payload:{ info: "further operation details", error: {...} }
}
The graphical part of the status feature would ignore payload - this would be just a way to pass information from the source node to any attached status nodes.
I did try to search this forum, and I did not see anything that appeared to have discussed this. Also it appears feature requests are not welcome via GH issues.