Rain Drops
An hourly rain strip where every hour is a column of drops, one for each future the forecast ran. One line on top says what to do about it.
Needs: Ensemble members from a weather API, e.g. Open-Meteo's free ensemble endpoint (hourly precipitation for every member, no key). No model in the browser.
Customize
city
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| members | number[][] | required | Rain in mm, members[m][h]: one row per ensemble member (one possible future), one value per hour. |
| hours | Date[] | required | Start of each hour, the same length as a member's row. |
| threshold | number | 0.1 | Less than this many mm in an hour counts as dry. |
| place | string | – | Shown above the strip, like "London". |
| timeZone | string | – | IANA time zone the times are read in, the place's own. The viewer's by default. |
| leaveAt | Date | – | When the trip starts. The start of the strip by default. |
| tripMinutes | number | 30 | How long the trip lasts at first. The stepper changes it from 15 to 180. |
| accent | string | "#2f6fd8" | Colour of the rain, any CSS colour. Left unset, a lighter blue is used in dark mode. |
| className | string | – | Class on the root element. |
| style | CSSProperties | – | Style on the root element. Theme it through the --mlui-* variables. |