Nube iO - Rubix Wires: Filter Nodes

Rubix Wires: Filter Nodes


This article describes the Rubix Wires nodes that are in the Filter category.

Filter

The Filter category of nodes provide in-line data filtering.  For each type of Filter node, only the `input` values that meet the (node specific) filter conditions are passed to `output`.

Only-True

This node filters `input` values and only allows `true` values to be passed to `output`.

Inputs

  1. input - Input value to be filtered.

Outputs

  1. output - Boolean `true` is the only possible output value (other than `null`). 

Settings

  1. Name - Name of the node.

Operation

This node filters ‘input’ values.  Only ‘true’ values are passed to ‘output’.

Only-False

This node filters `input` values and only allows `false` to be passed to `output`.

Inputs

  1. input - Input value to be filtered.

Outputs

  1. output - Boolean `false` is the only possible output value (other than `null`). 

Settings

  1. Name - Name of the node.

Operation

This node filters ‘input’ values. Only ‘false’ values are passed to ‘output’.

Only-Between

This node filters input `value` and only allows numeric values between configured `min` and `max` limits to be passed to output `value`. 

Inputs

  1. value - Numeric value to be filtered.
  2. [min] - Minimum limit value.  Values less than `min` will not be passed to `output`.
  3. [max] - Maximum limit value.  Values greater than `max` will not be passed to `output`.

Outputs

  1. value - Numeric output value.

Settings

  1. Name - Name of the node.
  2. Min - Minimum limit value.  Values less than `min` will not be passed to `output`.  Fallback from wired input value.
  3. Max - Maximum limit value.  Values greater than `max` will not be passed to `output`.  Fallback from wired input value.

Operation

This node filters input ‘value’.  Only values between ‘min’ and ‘max’ are passed to ‘value’ output.

Only-Greater

This node filters `input` values and only allows numeric values greater than configured `threshold` to be passed to `output`. 

Inputs

  1. input - Input value to be filtered.
  2. [threshold] - Minimum limit value.  Values less than `threshold` will not be passed to `output`. 

Outputs

  1. output - Numeric output value.

Settings

  1. Name - Name of the node.
  2. Threshold - Minimum limit value.  Values less than `threshold` will not be passed to `output`.  Fallback from wired input value.

Operation

This node filters ‘input’ values.  Only Numeric ‘input’ values greater than ‘threshold’ are passed to ‘output’.

Only-Lower

This node filters `input` values and only allows numeric values less than configured `threshold` to be passed to `output`. 

Inputs

  1. input - Input value to be filtered.
  2. [threshold] - Maximum limit value.  Values greater than `threshold` will not be passed to `output`. 

Outputs

  1. output - Numeric output value.

Settings

  1. Name - Name of the node.
  2. Threshold - Maximum limit value.  Values greater than `threshold` will not be passed to `output`.  Fallback from wired input value.

Operation

This node filters ‘input’ values.  Only Numeric ‘input’ values less than ‘threshold’ are passed to ‘output’.

Only-Equal

This node filters `input` values and only allows values equal to the configured `match` value to be passed to `output`. 

Inputs

  1. input - Input value to be filtered.
  2. [match] - Value to be compared against.  Only `input` values that are equal to `match` value will be passed to `output`.

Outputs

  1. output - Output value.  `match` value is the only possible output value (other than `null`). 

Settings

  1. Name - Name of the node.
  2. Match Value - Value to be compared against.  Only `input` values that are equal to `match` value will be passed to `output`.  Fallback from wired input value.

Operation

This node filters ‘input’ values.  Only ‘input’ values equal to ‘match’ are passed to ‘output’.

Prevent-Null

This node filters `input` values and does not allow `null` to be passed to `output`.

Inputs

  1. input - Input value to be filtered.

Outputs

  1. output - Output value.  Value will match `input` unless `input` is `null`, then `output` will be the last non-null value.

Settings

  1. Name - Name of the node.

Operation

This node filters ‘input’ values.  All ‘input’ values are passed to ‘output’ except ‘null’.  When `input` is `null`, `output` will be the last non-null value.

Prevent-Equal

This node filters `input` values and does not allow values equal to `match` value to be passed to `output`.

Inputs

  1. input - Input value to be filtered.
  2. [match] - Value to be filtered.  Only `input` values that are NOT EQUAL to `match` value will be passed to `output`. 

Outputs

  1. output - Value will match `input` unless `input` value is equal to `match` value, then `output` will be the last `input` value not equal to `match`.

Settings

  1. Name - Name of the node.
  2. Match Value - Value to be filtered.  Only `input` values that are NOT EQUAL to `match` value will be passed to `output`.  Fallback from wired input value.

Operation

This node filters ‘input’ values.  All ‘input’ values are passed to ‘output’ EXCEPT ‘input’ values which are equal to ‘match’ value.

Prevent-Duplicates

This node filters `input` values, it does not allow repeated values to be passed to `output`.

Inputs

  1. input - Input value to be filtered.

Outputs

  1. output - Value will always match `input`, however if the `input` value is sent multiple times, only the first occurance will be send to `output`.

Settings

  1. Name - Name of the node.

Operation

This node filters ‘input’ values.  All ‘input’ values are passed to ‘output’ EXCEPT ‘input’ values which are equal to the previous ‘input’ value.


Related Articles:

  1. Rubix Wires: Working with Nodes

    • Related Articles

    • Rubix Wires: JSON Nodes

      The `JSON` category contains nodes that are used to parse and manipulate data to and from standardised JSON objects and JSON strings. JSON JSON-Filter-Multiple This node extracts properties/values from JSON data by string key/identifier.  A node ...
    • Rubix Wires: Connection Nodes

      This article describes the Rubix Wires nodes that are in the Connection category. Connection The Connection category contains nodes that can send and receive data values without the need for wire link connections. Link-Transmitter-Single This node is ...
    • Rubix Wires: Point Nodes

      This article describes the Rubix Wires nodes that are in the Point category.   Point The `Point` category contains nodes that produce constant or variable data; there are nodes for each Rubix Wires data type. Bool-Constant This node outputs a fixed ...
    • Rubix Wires: Working with Nodes

      A node is a block of logic in Wires.  There are many nodes representing many functions.  You can connect the inputs and outputs of a node to other nodes to send values between nodes (thus creating logic flows). See Rubix Wires: Node Reference Guide ...
    • Rubix Wires: LoRa Sensor Nodes

      This article describes the Rubix Wires nodes that are in the LoRa category.  Preparation Rubix Wires: Getting Started Guide Rubix Platform: Adding and Editing Wireless LoRa Droplet Sensors Rubix Platform: Adding and Editing Wireless Microedge Sensors ...