Skip to content

Add Weather 0.2.0 with the columns widget card - #48

Merged
freethinkel merged 18 commits into
mainfrom
weather-widget
Nov 23, 2026
Merged

freethinkel merged 18 commits into
mainfrom
weather-widget

Conversation

@freethinkel

@freethinkel freethinkel commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Weather from #33, plus a columns widget card: now and the next three hours, each with its own icon. The branch is rebased onto main after the SDK pin moved to cccaf79 (#47), so it contains all of #33. Once this one is merged, #33 can be closed.

  • Columns card (api.widget_columns): now and +1/+2/+3 h, with temperatures. The ten icons are in widget-icons/ (00-07 are the model::Icon order, 08-09 the night variants for clear and partly cloudy); README describes the order. The card shows night wherever the hour is night.
  • Stub 10 draws the card. Below 10 the loader answers -22: the app writes the plain text card instead (place, temperature with the condition, high and low) and doesn't ask again every tick. Tests check that stub 9 refuses the card and stub 10 accepts it, using the loader's own accepts.
  • Version 0.2.0 (the app isn't in the store yet).

What ran

On a real watch (stub 9, loader 2026-11-22) with the Android companion 0.1.17: permission request, Now, Hours, Days, the cache with no connection, the page and the text card all work. The columns card is not tried on a watch yet: stub 10 has no loader release.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CQSU8MSnXCgDSkexp4s1hy

freethinkel and others added 18 commits November 23, 2026 16:58
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8Mpie8VxG5uXTwzf2a
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8Mpie8VxG5uXTwzf2a
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8Mpie8VxG5uXTwzf2a
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8Mpie8VxG5uXTwzf2a
The watch's clock at the moment the answer came can be on the other side
of an hour or of midnight from the phone's: then "Now" sat one hour off
and "Today" on yesterday until the next answer, and in the cache.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8Mpie8VxG5uXTwzf2a
…w screen centred

The emulator showed the stock fonts have no degree glyph: it drew as a
blank a letter wide, on the screens and on the widget card.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8Mpie8VxG5uXTwzf2a
A day's row and the top of the now screen wrote more records than the room
asked for before them, so with some forecasts the batch filled up mid-view
and the pager stayed hidden. The emulator showed it; the tests built only
uniform forecasts, which happened to fit. They now build every view from
every fill level of the batch.

A failed draw also left its records in the batch, failing every later one.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8Mpie8VxG5uXTwzf2a
The crown stays with the pager, which scrolls a page first and pages at its end;
the bar shows while its page scrolls and hides a second later, as in stock lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8Lx87AsgWNq9fwhXi1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8MqxJbvwdMHDP3yG2s
On -22 (a stub before 9, an older loader) the text card, without a second try in that run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8MqxJbvwdMHDP3yG2s
…he store text

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8MqxJbvwdMHDP3yG2s
The owner's amendment of 2026-11-22. Now takes the night bit of the hour that contains it, through the Now page's own rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8MqxJbvwdMHDP3yG2s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8MqxJbvwdMHDP3yG2s
It outlives the SDK change of widget::card's signature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8MqxJbvwdMHDP3yG2s
Stub 9 is the bootloop guard and draws no columns: there the loader answers -22 and the text card stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8MqxJbvwdMHDP3yG2s
@freethinkel
freethinkel marked this pull request as ready for review November 23, 2026 15:37
@freethinkel
freethinkel merged commit 5e24bf0 into main Nov 23, 2026
2 checks passed
@freethinkel
freethinkel deleted the weather-widget branch November 23, 2026 15:39
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.

1 participant