HTML Tile Widget
General Setting
User can change following things in HTML Tile widget:
  • Name for widget which will be used data reference. For Example, if widget name is 'HTML Tile', then data of widget is referenced as HTML Tile.data
  • Show title - User can show/hide widget title
  • Title Color
  • Background Color
Configure HTML Tile Widget
Widget Setting
In Widget Setting option, user can change following parameters:
  • Key - key parameter of JSON Object which will define data of HTML Tile Widget. User can provide multiple comma seprated keys.
  • CSS - User can provide CSS styling
  • HTML - User can write HTMl code here using keys also.
Configure HTML Tile Widget
Configure HTML Tile Widget

Source

User can select a source mode as MQTT or Action.
Using MQTT
Here, to update data on HTML Tile Widget user can publish JSON object on given testData MQTT topic. No need to provide <account_id> while providing the MQTT topic. The JSON object will be as below.
// Example
{
"key1":"Hello World !!!",
"key2":"My name is John"
}
// Here, 'key1' and 'key2' are the keys defined for HTML Tile widget.
Configure HTML Tile Widget
Using Action
Here, to update the data on HTML Tile widget, output of the action should contain JSON object as given in above example. User can also update the widget either onLoad or periodically by providing refresh interval.
Configure HTML Tile Widget

Event Handling

HTML Tile widget does not support any event.

Example

If we write CSS code for widget as:
.tile{ background-color: red; color: white;}
.tile2{ background-color: blue; color: white;}
and write HTML Code for widget as:
<div class="tile">{key1}</div>
<div class="tile2">{key2}</div>
and set source type for widget as MQTT and topic configured is 'data'. And if we publish following JSON Object over 'data' topic then HTML Widget will look as shown in image.
// Data over configured MQTT Topic
{
"key1":"Hello World !!!",
"key2":"My name is John"
}
HTML Tile Widget Example
Copy link
Outline