Boolean Widget

The Boolean Widget in Datacake is a simple yet powerful tool designed to display binary data, where the value can be either true or false. This widget is ideal for representing data points such as device status, switch states, or any other binary indicators. By offering customizable settings, the Boolean Widget allows you to clearly and visually present the status of your devices or systems on your dashboard.

You will find a quick guide to our boolean widget here:

Configuring the Boolean Widget

1. Basics

Title

  • Purpose: The title helps you identify the widget on your dashboard.

  • How to Configure: Enter the desired title in the "Title" field during the widget setup. This title will be displayed above the widget on the dashboard.

Icon

  • Purpose: Customize the widget’s appearance to match your dashboard’s theme or to emphasize the use case.

  • How to Configure: In the basic settings, you can choose different icons.

2. Data Source Selection

You can select the device and field. You will notice that only Boolean Fields are available in the selector. This restriction ensures that the widget functions correctly by displaying either true or false values.

3. Appearance Settings

Display On Text & Display Off Text

"On" can be understood as when the boolean value is on a "True" state (1). "Off" can be understoos as when the boolean value is on a "False" state (0). For each case, it might mean different things (In some cases "False" can mean a positive thing, e.g. Open door = False, being positive). You may want to personalise the text displayed on the widget.

Widget color based on state

When enabling, the whole widget appears in the colour set below.

Display On Color & Display Off Color

You can set specific colours for when the value is true and different colours for when the value is false. This is helpful for making important states more noticeable (e.g., green for true, red for false).

Example Use Cases

  • Device Status Monitoring: Display whether a device is online (true) or offline (false).

  • System Alarms: Indicate whether a system alarm is active (true) or inactive (false).

  • Switch State Representation: Show the state of a physical or virtual switch as on (true) or off (false).

  • Door status

  • Parking spot availability

Last updated