# CTAIconTextPlugin

The plugin displays a pixelart CTA logo, along with a message of your choosing.

The text can be set via the REST API.

Default text is "Smoking, gambling, and littering are prohibited on CTA vehicles."

Manually setting the text to nothing will disable the plugin. Icon can not be overridden.

If MQTT is built in and enabled, it will support Home Assistant MQTT discovery.

## REST API

### Get text

    GET {{ORIGIN}}/rest/api/v1/display/uid/<PLUGIN-UID>/text

    GET {{ORIGIN}}/rest/api/v1/display/alias/<PLUGIN-ALIAS>/text

- PLUGIN-UID: The plugin unique id.
- PLUGIN-ALIAS: The plugin alias name.

### Set text

    POST {{ORIGIN}}/rest/api/v1/display/uid/<PLUGIN-UID>/text?text=<TEXT>

    POST {{ORIGIN}}/rest/api/v1/display/alias/<PLUGIN-ALIAS>/text?text=<TEXT>

- PLUGIN-UID: The plugin unique id.
- PLUGIN-ALIAS: The plugin alias name.
- TEXT: The text to show on the display.

## Configuration

### Text

Plugin UID:
Text: