Temporary PKJS watchPosition() speed feed #13

Open
opened 2026-08-31 17:14:38 +02:00 by robert · 0 comments
robert commented 2026-08-31 17:14:38 +02:00 (Migrated from git.butzei.de)

Goal

Give the watchapp real speed immediately, so it is genuinely useful before any Android work exists.

Acceptance criteria

  • PKJS navigator.geolocation.watchPosition() with enableHighAccuracy: true, maximumAge: 0
  • Error handler and timeout present on every geolocation call
  • Speed and position forwarded to the watch using the shared message keys
  • Distance and average accumulated on the JS side for now
  • Known limitations documented (background reliability, no BLE sensors)

Files

  • watchapp/src/pkjs/index.js

Notes

This is scaffolding, replaced by the companion app in Phase 2 and kept only behind a fallback flag.

## Goal Give the watchapp real speed immediately, so it is genuinely useful before any Android work exists. ## Acceptance criteria - [ ] PKJS `navigator.geolocation.watchPosition()` with `enableHighAccuracy: true`, `maximumAge: 0` - [ ] Error handler and timeout present on every geolocation call - [ ] Speed and position forwarded to the watch using the shared message keys - [ ] Distance and average accumulated on the JS side for now - [ ] Known limitations documented (background reliability, no BLE sensors) ## Files - `watchapp/src/pkjs/index.js` ## Notes This is scaffolding, replaced by the companion app in Phase 2 and kept only behind a fallback flag.
Sign in to join this conversation.
No description provided.