Speedometer¶
Click the picture to drive it in a marimo notebook, in your browser.
Vehicle speed on a dial, with a digital readout.
aa.Speedometer(87.3, max=220, limit=90)
aa.Speedometer(87.3, unit_system="us") # 55 mph: km/h in, mph shown
- The unit of the unit system — km/h in
metric, mph inimperialandus— or a unit of its own (SPD-002). - Never rounds down (SPD-001): 87.3 km/h reads 88, not 87, and the rounding comes after the conversion (UNIT-015) — in the direction UN Regulation No. 39 asks of a real speedometer.
limit— a mark across the scale; above it, the readout turns red and is underlined (SPD-003).
Not the vehicle's speedometer (SPD-004)
The widget cannot guarantee the accuracy of the value it is given — a speed read over OBD-II is late and may be wrong — and it does not replace the vehicle's own speedometer. See the safety notice.
Dials · Widget catalog · Specification · Safety notice



