Skip to main content

Analog Gauge Widget

👁 Display

An analog-style needle dial with configurable tick marks and labeled color zones. Great for visualizing temperature, speed, pressure, or any value where ranges carry meaning (safe / warning / danger).

Default size: 2 × 2 grid cells


Configuration

PropertyTypeDefaultDescription
minnumber0Minimum scale value
maxnumber100Maximum scale value
unitstring``Unit label below needle
DevicedeviceThe device to read from
PinV0V255The virtual pin to display
LabelstringWidget label

Firmware example

void loop() {
Vwire.run();

float rpm = readRPM(); // e.g. 3500
Vwire.virtualSend(V0, rpm);

delay(500); // fast update for gauges
}

Color Zones

Color zones let you highlight safe, caution, and danger ranges:

ZoneRangeColor
Normal0 – 70%#10B981 green
Caution70 – 90%#F59E0B amber
Danger90 – 100%#EF4444 red

Configure zones in the Widget Settings panel after creation using the Color Zones editor.


Tips

Fast refresh

For real-time gauges (e.g. RPM), push data every 200–500 ms. The server respects burst limits, but values are buffered and the needle updates smoothly.

Out-of-range values

Values below min or above max clamp — the needle stops at either end without error.