Energy Card - Pro

# Preview:


Energy Card Preview

This feature is included in ESPDASH Pro

Know more

This card adds a distinctive energy/power icon, and just like generic card you can add a symbol which will be appended to your data. This card can be used to show something related to power consumption and usage etc.


# Type:

ENERGY_CARD


# Valid Data Types:

  • int
  • float
  • String

# Initializer:

/* 
  Energy Card
  Valid Arguments: (ESPDash dashboard, Card Type, const char* name, const char* symbol (optional) )
*/
Card card1(&dashboard, ENERGY_CARD, "Power Consumption", "kWh");

# Updaters:

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, "kWh");