Skip to content

companion-rpc: the hourly forecast - #32

Merged
freethinkel merged 2 commits into
mainfrom
weather-hours
Nov 20, 2026
Merged

freethinkel merged 2 commits into
mainfrom
weather-hours

Conversation

@freethinkel

Copy link
Copy Markdown
Contributor

The crate's side of fmctools/companion#14: `weather` takes `hours` and the phone answers one more record with the next hours.

  • `weather(id, days, hours)`: `hours` 0 sends the one arg byte every companion understands.
  • `Weather::Hours { hour, n, data }` with `hour(i) -> Option` (`temp`, `code`, `precip`, `night`). A cut entry is dropped, more than 24 hours are 24.
  • `Job::Weather { days, hours }`.
  • The vectors file is the companion's, copied; AGENTS.md and docs/companion.md say what an older companion answers.

No app uses `weather` yet; the Weather app comes next, on top of this branch.

`make test`: every app's and crate's host tests pass.

Waits for fmctools/companion#14: the docs describe hours that no released companion sends yet.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CQSU8Mpie8VxG5uXTwzf2a

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8Mpie8VxG5uXTwzf2a
@freethinkel
freethinkel merged commit 70b5e2b into main Nov 20, 2026
2 checks passed
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