Skip to Content
You're viewing documentation of an outdated version. Check the latest documentation for v5.x.x
CardsHumidity

Humidity Card

Preview

A card that displays humidity with a distinctive humidity icon. Supports numeric and string values with optional units/symbols, perfect for showing humidity.

Initializer

/* Humidity Card Valid Arguments: (ESPDash dashboard, Card Type, const char* name, const char* symbol (optional) ) */ Card card1(&dashboard, HUMIDITY_CARD, "Humidity1", "%");

Callback

💡

Humidity card doesn’t require any callback.


Updater

card1.update(int value);
card1.update(float value);
card1.update(String value);

Or you can also update the symbol along with the value like this:

card1.update(value, "RH");

Reference

This is a reference sketch showing positions for intializer and updater.

... /* Humidity card initializer */ Card humidity(&dashboard, HUMIDITY_CARD, "Humidity1"); void setup() { ... /* Humidity card updater - can be used anywhere (apart from global scope) */ humidity.update(100); } void loop() { ... }
Last updated on
Copyright © 2025 Softt. All rights reserved.