feat: viewer detection with an axis gizmo, a desktop marker page, and the watch app #1
Loading…
Reference in a new issue
No description provided.
Delete branch "viewer-detection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Milestone 2, apart from compiling the watch app, which waits for the Connect IQ SDK on the runner (HomeLab #122).
Viewer (
viewer/public)index.html:?fov=,?size=);docs/decisions/003-pose.md.markers.html: the watch's markers on screen, for testing without a watch (arrow keys,?id=).Watch app (
watch/, not compiled yet; seedocs/watch.md)Attention.backlightuntil the burn-in protection throwsBacklightOnTooLongException(API reference). Any input starts a new session.docs/watch.mdexplains why).Tests (new CI job
e2e, inmcr.microsoft.com/playwright:v1.64.1-noble, under the production CSP read fromnginx.conf)MarkerViewdraws it, mirrored in the test) is detected for every ID.Renovate updates the npm
playwrightpackage and the image together. The smoke test also checks three.js and the marker page.Not verified
Update: the watch app compiles and runs in the simulator (milestone 2 done)
watch(runs-on: ubuntu-latest, the runner containerciwith the SDK read-only at/opt/connectiq, from HomeLab #122–#124):tools/build-watch.shcompiles for every device in the manifest. It uses the strict type check (--typecheck 3), shows warnings, and signs with a throwaway key made and deleted in each run. It's green.default.junglenext to the real path ofmonkeybrains.jar. I traced that withstraceon a read-only copy of the SDK on studio. So on the read-only mount, the script builds writable directories of links and copies the jar (23 MB).$HOME, so the script redirects it withJAVA_TOOL_OPTIONS=-Duser.home=…, on Linux only.compiler.json), generated from the marker table bytools/generate-icon.mjsand checked in thechecksjob.tools/simulate.shruns the app in an Ubuntu 22.04 container, because the simulator needs WebKitGTK 4.0. It uses Xvfb, mounts the SDK read-only and saves a screenshot. Marker 0 shows on the D2 Mach 1, and js-aruco2 detects ID 0 in the screenshot, with a side of 233 px. The app used 7.6 of 763.6 kB. The screenshot indocs/watch.mdmasks out Garmin's picture of the watch, which is part of the SDK.--include-fonts). Without them, text fails with "Invalid Font Specified".docs/watch.mdnow plans for as many devices as possible: icon sizes, display types, API levels, one.iqbuild for all.Still not verified: anything on the real watch or a phone. That's milestone 4, in #3.