Skip to content

met_no: six layouts that are easy to read from a distance - #373

Merged
txoof merged 1 commit into
mainfrom
364-met-no-readable
Nov 9, 2026
Merged

txoof merged 1 commit into
mainfrom
364-met-no-readable

Conversation

@txoof-bot

@txoof-bot txoof-bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #364

What changed

The weather plugin's layouts were hard to read from across the room. Six layouts now follow the v1 style: few items, large text in a narrow bold font (Economica Bold, as in v1), and lines between the parts. txoof picked these from mockups.

  • New: three_rows (now, +3 h and +6 h as rows, with wind barbs), three_columns (the same hours as columns), now_and_today (now, max, min and when the rain starts) and six_hours (every 2 hours, with rain bars).
  • Redrawn, same names: steps_3h (now shows each step's highest temperature and rain, without the summary line or wind) and now (large temperature, with the wind as a plain arrow and its speed). The names stay the same, so configs that already use them keep working.
  • Unchanged: hours_12 (still the default), small, portrait_hours and portrait_now.
  • New setting wind: m/s (default), km/h, mph or knots, for the speed shown by now. Wind barbs stay in knots.
  • New font: paperpi.fonts.ECONOMICA_BOLD, with its OFL license file. This is the file v1 shipped.
  • The plugin README, paperpi.example.toml and the reference pictures are updated.

Area

plugins/met_no. It also touches src/paperpi/fonts/ (one new font, the way other plugins' fonts were added), tests and paperpi.example.toml (regenerated).

Tests

  • New tests: the values of each new layout, wind units, the arrow's direction, three_rows with fewer than 7 hours left, and rain per 2-hour pair. The steps_3h, now, web form and library page tests are updated.
  • Full run on the Pi: 2464 passed and 2 failed, both fixed since. The library page test lists the layout names. The health test failure is not related to this PR; it is fixed in Fix the flaky health report size test #375 (issue Flaky test: health report size check fails when the report is 200 bytes #374).
  • uv run pytest passes
  • uv run ruff check . passes
  • Hardware tests: not needed (no display or driver code changed)

Images

9.7" screen, sample data. Before: steps_3h, now.

three_rows three_columns now_and_today
six_hours steps_3h (after) now (after)

Review

  • Review agents' comments answered

Only txoof approves and merges this PR.

🤖 Generated with Claude Code

New layouts three_rows, three_columns, now_and_today and six_hours; steps_3h and now
redrawn in the same style. Large text in Economica Bold (added to paperpi.fonts), few
items, lines between the parts. hours_12 (still the default), small, portrait_hours and
portrait_now are unchanged. New setting wind (m/s, km/h, mph, knots) for the speed shown
by now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@txoof-bot
txoof-bot requested a review from txoof as a code owner November 9, 2026 06:59
@txoof
txoof merged commit d382eb1 into main Nov 9, 2026
3 of 4 checks passed
@txoof
txoof deleted the 364-met-no-readable branch November 9, 2026 07:04
txoof pushed a commit that referenced this pull request Nov 9, 2026
Applies Dependabot PRs #365 to #371 on today's main: pytest 9.2.0,
tomlkit 0.15.2, ruff 0.17.3, pydantic 2.14.1, httpx2 2.16.0,
actions/upload-artifact 7.0.2, astral-sh/setup-uv 10.3.3.

tomlkit 0.15.2 writes ESC as \u001b, which Python reads, so the read-back
check is now tested directly. Fixes the lint errors on main from #373.
Dependabot now groups each month's updates into one PR per ecosystem.

Co-authored-by: txoof-bot <337660340+txoof-bot@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

met_no: layouts are hard to read from a distance; move closer to the v1 layouts

2 participants