mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-11-12 02:27:35 +00:00
Location: the web board has CAP_GPS 1. web/platform/WebLocation.* is its SensorManager + LocationProvider, fed by navigator.geolocation (page shell, only while the UI's GPS is on, the prompt deferred to a tap) or WADA_GPS on the host, so the GPS switch, status, map centring, distances and wada.sys.gps (with speed/course) work unchanged. The position reaches a connected node (CMD_SET_ADVERT_LATLON, displaced by the Location privacy radius) only while the node's advert-location setting is "share"; the demo moves its cast to the visitor's location. Map tiles: wadaHttpRequest serves the firmware's default tile server only: a synchronous emscripten_fetch from the tile_fetch pthread to the same-origin tiles/ path (serve.py proxies it; nginx location for the site), plain HTTP natively. WiFi reports connected while the browser is online. Fixes the static-init order of the host VFS (the UI's own tiles LittleFS copied an empty impl). Polish: Lua apps that need the board's own radio carry "radio": "own" in the catalog (baked under CAP_RADIO_TOOLS, greyed in the Store); mouse wheel and trackpad scrolling; Settings > Wi-Fi / Bluetooth explain the page bar (CAP_WIFI_SETUP / CAP_BT_SETUP); no Download mode (CAP_USB_FLASH); no receiver settings on Settings > GPS (CAP_GPS_RECEIVER). Tests: webtest checks the map centres on Playwright's Ghent location and shows tiles; nodetest checks the location privacy rule against the mock node. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
58 lines
1.2 KiB
Plaintext
58 lines
1.2 KiB
Plaintext
# The phase-1 acceptance tour (web/build.sh shots): first boot of a fresh data
|
|
# directory, demo backend. Coordinates are canvas pixels (800x480).
|
|
# Commands: wait MS | tap X Y | hold X Y [MS] | drag X0 Y0 X1 Y1 [MS] | wheel X Y DY | type TEXT | key NAME
|
|
# | shot NAME | quit
|
|
wait 5000
|
|
shot 01-onboarding
|
|
tap 60 283
|
|
wait 3000
|
|
shot 02-home
|
|
# Chats, then a conversation
|
|
tap 80 456
|
|
wait 1500
|
|
shot 03-chats
|
|
tap 400 152
|
|
wait 1500
|
|
shot 04-conversation
|
|
# the on-screen keyboard, then the host keyboard types and Enter sends
|
|
tap 380 447
|
|
wait 1000
|
|
shot 05-keyboard
|
|
type Hello from the browser!
|
|
key enter
|
|
wait 8000
|
|
shot 06-sent
|
|
# back, Contacts, Settings, Device
|
|
tap 18 30
|
|
wait 1200
|
|
tap 240 456
|
|
wait 1500
|
|
shot 07-contacts
|
|
tap 720 456
|
|
wait 1500
|
|
shot 08-settings
|
|
# the mouse wheel scrolls the page under the pointer (and back up for the next tap)
|
|
wheel 200 300 120
|
|
wheel 200 300 120
|
|
wait 600
|
|
shot 08b-settings-wheel
|
|
wheel 200 300 -600
|
|
wait 600
|
|
tap 400 66
|
|
wait 1500
|
|
shot 09-device
|
|
key esc
|
|
wait 1000
|
|
# Home > Apps > Snake (a Lua app baked into the image)
|
|
tap 400 456
|
|
wait 1200
|
|
tap 695 360
|
|
wait 1500
|
|
shot 10-apps
|
|
tap 398 153
|
|
wait 2500
|
|
drag 300 300 520 300 250
|
|
wait 1500
|
|
shot 11-snake
|
|
quit
|