Dial

The machine's round display inside a web tile: the same tick ring, with one reading in the middle.

HTML
<div class="bm-stage">
  <div class="bm-dial" style="width:240px;margin:0" data-ring='{"full":[0.13,-1,"faint"]}'><div class="bm-dial__center"><span class="bm-eyebrow">Standby</span><span class="bm-dial__value">21°</span><span class="bm-dial__plan">Wakes at 06:30</span></div></div>
  <div class="bm-dial" style="width:240px;margin:0" data-ring='{"left":[0.49,0.58,"heat"],"right":[0,-1,"primary"]}'><div class="bm-dial__center"><span class="bm-eyebrow">Heating</span><span class="bm-dial__value">78°</span><span class="bm-dial__plan">Ready in about 40 s</span></div></div>
  <div class="bm-dial" style="width:240px;margin:0" data-ring='{"left":[0.58,0.58,"heat"],"right":[0.56,0.5625,"primary"]}'><div class="bm-dial__center"><span class="bm-eyebrow">Ramp to 9 bar</span><span class="bm-dial__value">0:15</span><span class="bm-dial__plan">93° · 9.0 bar</span></div></div>
  <div class="bm-dial" style="width:240px;margin:0" data-ring='{"full":[0.63,-1,"ink"]}'><div class="bm-dial__center"><span class="bm-eyebrow">Grinding</span><span class="bm-dial__value">11.4</span><span class="bm-dial__plan">of 18.0 g</span></div></div>
  <div class="bm-dial" style="width:240px;margin:0" data-ring='{"full":[0,-1,"faint"]}'><div class="bm-dial__center"><span class="bm-eyebrow">Offline</span><span class="bm-dial__value">—</span><span class="bm-dial__plan">Last seen 14:41</span></div></div>
</div>
  • The centre holds an eyebrow, one metric-xl reading and one line of body-sm. Nothing else.
  • Follow the table in Web UI for what each machine state shows.
  • Width is 264 px on a phone and up to 300 px on desktop; on a 320 px screen it is the tile's inner width, 256 px. The ring scales; the centre text does not.
  • Ticks recolour in duration-fast. The reading snaps.

States

StateRingCentre
LiveLit ticks in the series tone, an ink notch at the targetThe reading
Offline or no reading yetSingle ring, every tick unlit—, with "Last seen 14:41" on the line below
StandbySingle ring in ink-faintBoiler temperature and the next wake

Content

  • Reading: at most 4 characters (92°, 0:15, 11.4). A fifth does not fit inside the ring at 256 px.
  • The line below: one clause, at most 28 characters, with middle dots between facts: 18.5 g in · 36 g out · 30 s.
  • The eyebrow names what the reading is (BOILER) or the phase (RAMP TO 9 BAR), at most 16 characters.

Screen reader

The ring is aria-hidden: every fact it draws is also text in the centre or in the tiles below. Give the Dial role="group" and an aria-label such as "Machine". Do not make the reading live; send "Heating", "Ready", "Shot started" and "Shot finished, 30.2 seconds, 36.1 grams" to the page's status region instead.

Markup: .bm-dial with data-ring='{"left":[value,target,"heat"],"right":[value,target,"primary"]}' and a .bm-dial__center child; BetterMate.hydrate() draws the ring.