Skip to main content

Displaying the Current Value of a Variable (Metric)

This widget allows you to display a single numerical value — such as temperature, humidity, or any sensor reading — in a clear and simple format. It’s ideal for showing the latest or average reading at a glance.


Step-by-Step Instructions

  1. Open Dashboards

    In the top navigation bar, click on Data, then select Dashboards. This will open the dashboard management area.

    Ubidots Data menu open in the top bar with the Dashboards option highlighted


  1. Add a New Widget

    Click the Add new Widget button (marked with a + icon).

    Empty Ubidots dashboard with the dashed Add new Widget tile and + button


  1. Choose a Widget Type

    From the list of available widgets, choose one of the Metric types (used to display numerical values).

    Add new widget panel showing the Metrics section with Metric, Thermometer, Gauge, and other types


  1. Add a Variable

    Click on + ADD VARIABLES, then:
    • Select your device
    • Choose the desired variable
    • Confirm the selection by clicking SELECT

    Widget SETTINGS tab with the + ADD VARIABLES link for selecting a device variable


  1. Configure Aggregation and Time Span

    Set the Aggregation Method (e.g. average, last value) and Span (time range).

    SETTINGS tab for the selected variable with Aggregation method set to Last and Span set by dashboard


  1. Edit Widget Appearance

    Switch to the APPEARANCE tab to customize display options such as:
    • Label
    • Color
    • Font
    • Date format
    • ...

    APPEARANCE tab with widget name, font, decimal points, date format, and color options


  1. Save the Widget

    Click SAVE to add the widget to your dashboard.

    Saved Metric widget on the dashboard showing the last temperature value with update time


Video Tutorial

tip

If you need further assistance or a visual demonstration of the process described in this guide, consult the Video Guide.