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
- Complete the @tetherto/mdk-react-devkit installation and add the dependency
- A
Devicerecord of typemicrobt
Components
| Component | Description |
|---|---|
MicroBTWidgetBox | MicroBT 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
| Prop | Status | Type | Default | Description |
|---|---|---|---|---|
data | Optional | Device | none | MicroBT 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: greenRunningwhencdu.circulation_pump_running_statusequalsCONTAINER_STATUS.RUNNING, grayOffotherwiseCooling Fan: greenRunningwhencdu.cooling_fan_controlis truthy, redErrorotherwise
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