"Traffic light" like node for node-red. It sends or it drops messages according to its state, controlled by messages.
npm install node-red-contrib-traffic
This nodes accepts a
msg and sends it according to its internal state. Its state may be
If in passing mode, a green circle is shown under the node and any incoming message is allowed and be
If in blocking mode, a red circle is shown under the node and any incoming message is
passing mode is set by sending a message which fit the configuration based on a property name and a regex.
blocking mode is also set by configuration
It's possible to let the control messages pass by checking the right checkbox
I's also possible to configure the node in passing mode or blocking at startup
Example flow files
Try pasting in the flow file below that shows the node behaviour
- Jacques W
This code is Open Source under an Apache 2 License.
You may not use this code except in compliance with the License. You may obtain an original copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Please see the License for the specific language governing permissions and limitations under the License.
Feedback and Support
Please report any issues or suggestions via the Github Issues list for this repository.
For more information, feedback, or community support see the Node-Red Google groups forum at https://groups.google.com/forum/#!forum/node-red