Skip to main content

Text Gallery

This article introduces you to our custom Text Gallery app and its core features.

Info

The Text Gallery app is deployed to customer servers per request. To learn more contact our support at sales@wallboard.info!

Please note

This custom app is under active development and any information in this documentation could be inaccurate or outdated! If you have any questions please contact our support at support@wallboard.info

The text gallery presents and animates lines of text, line by line in an infinite loop. These texts can be formated to your liking. The texts could come from different sources: plain text, datasource or from the weather API.

Form img

Settings

Specifies the work mode of the text gallery. Possible work modes are: Plain text, Datasource and Weather.

Work mode specific settings

Plain text work mode settings

This is the field where the texts can be written. Each enter press indicates a new line, that should be treated as such. Empty lines, or lines with only empty space are ignored. This means that no blank / whitespace only lines can be given.

Datasource work mode settings

This is where you can give the Text gallery where to get texts from. The text gallery waits for an array, and it takes the values from that key. The binding should be on the array itself, not the elements inside of it.

Form img

Weather work mode settings

This is where the cities can be defined, to be shown on the text gallery.
The input should be in the form of city code:country code; For example to get the weather data for New York the input should be:
New York:USA;. These inputs can be stacked, for example:

New York:USA;
Berlin:GER;
Budapest:HUN;
Madrid:SPA;
Tokyo:JAP;

Text Formatting

The inputs of the Plain text, the Datasource's texts and the separator text can be formatted and styled by using tags. These tags come in two types, the singular tags, and the modular tags. The singular signs are by themselves, and there isn't a closing tag for them, and the modular tags are the ones that have closing tags. The closing tags indicate where the formatting should end, if not present the formatting will be applied to the rest of the line.

The singular tags, with their meaning are:

  • [br] : Line break tag, inserts a line break, only viable on the in-out animations.
  • [color:{specified color here}] : Background color tag, specifies the lines background color, if there are multiple of these in one line, only the last one will be viable
  • [icon:{specified icon here}] : Icon tag, shows the specified icon specified inside of it, uses the material font icons.

The modular tags with their ending tags are:

  • [bold]{formatted text here}[/bold] : Bold tag, makes the text inside of it, bolder.
  • [italic]{formatted text here}[/italic] : Italic tag, makes the text inside of it, italic.
  • [underline]{formatted text here}[/underline] : Underline tag, makes the text inside of it, underlined.
  • [small]{formatted text here}[/small] : Small text tag, makes the text inside of it, smaller.
  • [large]{formatted text here}[/large] : Large text tag, makes the text inside of it, larger.
  • [fontcolor:{color specified here}]{formatted text here}[/fontcolor] : Font color tag, makes the text inside of it to the color specified in the tag.
  • [fontsize:{font size here}]{formatted text here}[/fontsize] : Font size tag, makes the text inside of it to the size specified in the tag.

Sensor Events

The Text gallery doesn't send any sensor messages.

External Messages

The Text gallery listens to three different external messages:

  • Reset text gallery: resets the text gallery to the default state, that is specified in the editor, also clears the queue.
  • Set text gallery text: sets the lines that are shown, to the ones given with this message. If the length is 0, then the Text gallery ignores this message. Formatting also works on this.
  • Insert line to the queue: inserts a line to the end of the queue. If the maximum amount is reached, then the first line is removed from the beginning, of the queue, and the one specified here is inserted to the end of the line.

Queue

The queue is a dynamic line store, that is shown on the end of the default lines. The queue stores the lines in a first in, first out, work mode. Lines can be inserted to it, and if the maximum amount is reached then the first is removed, and the inserted line will be placed on the end of the queue.