# Blinker - Priority

The priority module is used to select one of several streams. The selection is done on a priority basis. Among all streams providing a frame, the one with the highest priority is chosen.

## Configuration

The configuration of the priority module with name `NAME` is located in the `priorities/NAME` subdirectory.

### Input List

The inputs to be possibly selected are configured in the `inputs` subdirectory. Each input is configured in an own subdirectory in `inputs`. E.g. the configurations for inputs with names `000lowprio` and `999highprio` reside in subdirectories `inputs/000lowprio` and `inputs/999highprio` respectively. All inputs are assigned a priority according to their alphanumerical order, i.e. `999highprio` is selected over `000lowprio` if both provide a frame.

The configuration inside an input subdirectory consists of the following settings:

#### Input Stream

The file `instream` contains the name of the stream to read for this input.

### Output Stream

The file `outstream` contains the name of the stream to send the frames to.