Skip to content

Add Markets app - #74

Merged
freethinkel merged 6 commits into
fmctools:mainfrom
zeezooX:add-markets
Dec 1, 2026
Merged

freethinkel merged 6 commits into
fmctools:mainfrom
zeezooX:add-markets

Conversation

@zeezooX

@zeezooX zeezooX commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Stock indices (S&P 500, Nasdaq, Dow Jones, DAX, FTSE 100, Nikkei 225) and Bitcoin, Ethereum and Solana, fetched through FMC Companion's http.get from Yahoo Finance and CoinGecko. Canvas app with a crown list (tap to pin), a page next to the watch face with the pinned instrument big, and a widget card. Calls go one at a time with fresh ids; ASK, DENIED and a silent phone are shown, the last quotes are cached.

zeezooX and others added 3 commits December 1, 2026 01:07
Stock indices (S&P 500, Nasdaq, Dow Jones, DAX, FTSE 100, Nikkei 225)
and Bitcoin, Ethereum and Solana, fetched through FMC Companion's
http.get from Yahoo Finance and CoinGecko. Canvas app with a crown list
(tap to pin), a page next to the watch face with the pinned instrument
big, and a widget card. Calls go one at a time with fresh ids; ASK,
DENIED and a silent phone are shown, the last quotes are cached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Swiping away from the page starts with a TOUCH_DOWN on a row, which pinned
that row (and rewrote the widget) before the loader took the swipe. A tap
now counts on TOUCH_UP within 600 ms, at the TOUCH_DOWN position (UP's x/y
are unreliable); PAUSE in between drops it.

Checked in the browser emulator (patched 1.0.0.73-wp2.14, App Loader
2026-11-30): a swipe across the Bitcoin row leaves S&P 500 pinned on the
widget card, and a tap on the row still pins Bitcoin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stock card fits about 17 characters per line and wraps and cuts a
wider one (seen in the emulator with another app's card). "BTC 59,105
-0.27%" and "Nikkei 225 +1.23%" were too wide. Every line now stays within
15 characters: the title falls back to the short name (N225, DOW) or drops
the change, the second line keeps the price and drops the change. A test
covers every pinned instrument for prices up to 9,999,999.99.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@freethinkel

Copy link
Copy Markdown
Contributor

@zeezooX thanks for the pr. Maybe it would be better to use native font, wdyt?

@zeezooX

zeezooX commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

@zeezooX thanks for the pr. Maybe it would be better to use native font, wdyt?

I'll work on it. I thought the native fonts won't work on the simulator.

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>
Every text on the menu, the page, the status line, the Refresh pill and the
allow/denied help is now Inter (cmf_wp2_ui::font) instead of the 16 px cell
font. Menu rows put the name and the right-aligned price on line 1 and the
arrow and change, right-aligned under the price, on line 2; an old quote's
time sits on line 2 left. The page's pinned price is dot-matrix
(text::dots, commas and points set tight), pitch 6 or 5 by width, dots two
thirds of the pitch. The app's own scroll track is replaced by
draw::scroll_bar. Title and page name stay clear of the status bar.
Behaviour, touch handling, hit areas and the widget text are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zeezooX

zeezooX commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

All text is now in Inter, including the list, status line, buttons and the allow screen.

@freethinkel
freethinkel merged commit 1817df8 into fmctools:main Dec 1, 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.

2 participants