MDK Logo

MicroBT

Dashboard summary widget for MicroBT containers

Summary widget for MicroBT containers. For other vendor widgets see Bitmain. For vendor-agnostic cards see Generic widgets.

Prerequisites

Components

ComponentDescription
MicroBTWidgetBoxMicroBT cycle pump and cooling fan widget

MicroBTWidgetBox

Compact widget showing MicroBT cycle pump and cooling fan running/off indicators, with a red error state when the cooling fan is not running.

Import

import { MicroBTWidgetBox } from '@tetherto/mdk-react-devkit/foundation'

Props

PropStatusTypeDefaultDescription
dataOptionalDevicenoneMicroBT container device record; returns null when omitted
import type { Device } from '@tetherto/mdk-react-devkit/foundation'

const microbtContainer: Device = {
  id: 'microbt-1',
  type: 'microbt',
  last: {
    snap: {
      stats: {
        status: 'running',
        container_specific: {
          cdu: {
            circulation_pump_running_status: 'running',
            cooling_fan_control: true,
          },
        },
      },
    },
  },
}

Basic usage

<MicroBTWidgetBox data={microbtContainer} />

Indicators rendered

The label Cicle Pump matches the rendered UI and foundation source (typo for "Cycle Pump"); keep documentation aligned until the component string is corrected in code.

  • Cicle Pump: green Running when cdu.circulation_pump_running_status equals CONTAINER_STATUS.RUNNING, gray Off otherwise
  • Cooling Fan: green Running when cdu.cooling_fan_control is truthy, red Error otherwise

Styling

  • .mdk-micro-bt-widget-box: Root grid element
  • .mdk-micro-bt-widget-box__item: Single indicator cell
  • .mdk-micro-bt-widget-box__title: Indicator label text

On this page