Value

Docs / Widgets / Displays / Value
Display widget

Value

A Value widget shows a reading from your device as a number: temperature, voltage, tank level. Pick how it looks from nine display modes.

Device → dashboard9 display modesUNITS and DECIMALS1 Telemetry Point

Try it

Turn the sensor knob on the NuttyFi board. The board writes the reading and the dashboard shows it. Try the Value Display Mode, UNITS and DECIMALS settings.

SimulationLIVE
Dashboard
This is the real widget from the dashboard.
Your device
NuttyFiMCU · Wi-FiONLINENUTTYFI0writes TP0Temperature
Sensor knob (0–100)
The board measures and writes the Telemetry Point.
Value Display Mode
Widget Color
Show
UNITS and DECIMALS live on the Telemetry PointSet them once on the point and every widget using it shows the same unit and rounding.

How to add and set up

  1. Open the dashboard in edit modeOpen the device and turn on editing.
  2. Add a ValuePress + on the right edge of the canvas and pick Value. Drag it into place.
  3. Open its settingsClick the gear icon on the widget. The window title shows the widget's name.
  4. Link a Telemetry PointUnder Linked Telemetry Points, pick the point your device writes, and set its UNITS, MIN, MAX and DECIMALS.
  5. Pick a display modeChoose a Value Display Mode and a colour. Save, then press DONE.

Settings

SettingWhat it does
Widget NameThe title shown on the widget.
Label ColorColour of the title.
Linked Telemetry PointsThe Telemetry Point (TP0, TP1…) the widget uses. Your device code uses the same point.
Value Display ModePie Ring · Value Card (big value, change, last update) · Needle · Trend Card (value + sparkline) · Target Meter (now vs max) · Recent Bars (avg / min / max) · Digital · Compact Pill · Status Badge (Low / Normal / High). Try all nine in the simulation above. Trend Card, Target Meter, Recent Bars, Digital, Compact Pill and Status Badge need Starter or above.
Telemetry Point settingsThe linked point carries the DATA TYPE (integer or double), UNITS, MIN, MAX, DECIMALS and DEFAULT the widget uses.
Widget ColorAccent colour of the ring, bars or badge.
Hide widget Name / Telemetry Point / Widget BorderHide the title, the TP badge or the outline around the tile.

What it reads

The widget shows the latest number written to the Telemetry Point, rounded to its DECIMALS and followed by its UNITS. Ring and meter modes use MIN and MAX to work out how full to draw. Status Badge says Low below 25 % of the range, High above 75 % and Normal in between.

Send data from your device

A Value widget shows the number your board writes with SME.publish(). The examples use TP0.

C++ · Arduino
SME.publish(TP0, reading);
Send when something changesDon't publish on every pass of loop(). Send when the value changes, or on a timer, for example every one or two seconds.

These are snippets. Your sketch also needs #include <SMEIoT.h>, SME.begin(...) in setup() and SME.run() in loop(). The full sketch tab shows a complete example; see the SDK quick start for more.

Was this page helpful?