Skip to content

Add Tech News app - #79

Open
zeezooX wants to merge 3 commits into
fmctools:mainfrom
zeezooX:add-tech-news
Open

zeezooX wants to merge 3 commits into
fmctools:mainfrom
zeezooX:add-tech-news

Conversation

@zeezooX

@zeezooX zeezooX commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

The Hacker News front page on the watch: 8 headlines with points, comments and age, a story view with the full title, a page next to the watch face (top 3) and a widget card (the top headline). Headlines are cached on the watch and refresh every 15 min while the app or page is open.

  • Source: hn.algolia.com (free, no key), ~1.5 KB per refresh through FMC Companion. The URL is 153 bytes, over http.get's 123, so it uses http.request (GET) via crates/companion-rpc.
  • Phone states handled as in Markets: allow on the phone, denied, no phone (retries 3/6/12/24/48 s, then every 60 s), stale.
  • Titles are folded to ASCII (quotes, dashes, accents); anything else is dropped.
  • Widget lines stay within 15 characters (the stock card wraps wider ones).

Requirements: FMC Companion with http:hn.algolia.com allowed in its Apps tab. Its prompt says the app may "read and change data" on that site because of http.request; the app only reads (said in store.md). App Loader 2026-11-15+ for the widget and page.

Testing

  • Host tests (38): parsing real replies incl. truncation at every byte, escapes, ASCII folding, widths, the request state machine, storage, drawing inside the circle, tap areas.
  • Simulator with faked phone replies: list, story, page, allow/denied/no-phone/stale (shots in apps/tech-news/shots).
  • Browser emulator (patched 1.0.0.73-wp2.14, App Loader 2026-11-30): installs and runs, "Updating..." then "No phone" (no phone there).
  • Not yet with a real FMC Companion round trip or on a physical watch.

zeezooX and others added 3 commits December 1, 2026 19:49
…ter font)

cmf-watch-sdk 2018e1a..b1128d6:
- cmf-wp2-ui font: Inter Medium 20 px for canvas apps, baked into the app
  (~10 KiB, any loader, in the simulator), plus text::dots dot-matrix text,
  draw::scroll_bar (the stock lists' round scroll bar), ask and logo
- app files on NAND (file_read/write/delete) and the speaker (audio_*):
  loader of 2026-11-21; the mic (mic_*) and the stock emoji: loader 6
- the loader-7 status bar: the time and GPS bars centred at y = 4 over every
  app
- the Watch 3 Pro loader port (in progress), stub 11 (128 KiB loader budget),
  release tooling

AGENTS.md and the watch-app skill: the new calls and the loaders they need,
canvas apps draw text in cmf_wp2_ui::font, titles stay clear of the status
bar.

All 27 apps build and pass on b1128d6 (host tests, scripts/store build and
check).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Hacker News front page on the watch: the top 8 stories from the public
Algolia HN search API, fetched by FMC Companion's http.request (the 153-byte
URL is past http.get's limit, so it goes as a two-part GET).

- Menu app: a crown-scrolled list, each headline wrapped to up to three lines
  in Inter with a grey "780 pts · 335 comments · 3h" line, the stock scroll
  bar and a Refresh pill. A tap opens a story (whole title, points, comments,
  age; the crown steps through them, a tap or back returns).
- Page next to the face: "Top on HN" and three headlines of two lines; a tap
  shows the next three.
- Widget card: "HN 780 pts" and the top headline on two lines of at most 15
  characters.

One request at a time with a new id, stale ids dropped, recv drained every
loop; every 15 min while shown, ASK again every 10 s, failures and DENIED
after 60 s, a silent phone after 3/6/12/24/48 s then every 60 s. Titles are
unescaped and folded to ASCII. The last headlines are kept in storage (at
most 832 bytes), written once per answer.

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.

1 participant