signalk-pypilot-newui 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +168 -0
- package/README.md +75 -0
- package/dist/index.js +726 -59
- package/dist/session-recorder.js +253 -0
- package/package.json +1 -1
- package/public/app.js +902 -1
- package/public/index.html +65 -1
- package/public/style.css +48 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,173 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.4.0 — 2026-09-07 — Rev138..Rev145
|
|
4
|
+
|
|
5
|
+
Feature release. The plugin has learnt to behave itself around the
|
|
6
|
+
Pi Zero (following direct advice from Sean D'Epagnier, pypilot author)
|
|
7
|
+
and now speaks the sailor's language instead of pilot-programmer
|
|
8
|
+
jargon.
|
|
9
|
+
|
|
10
|
+
### English
|
|
11
|
+
|
|
12
|
+
**Added**
|
|
13
|
+
|
|
14
|
+
- **Dynamic watch focus (Rev140..Rev141)** — the old policy kept ~170
|
|
15
|
+
pypilot subscriptions pinned to `pypilot_web`, which pressured the
|
|
16
|
+
Pi Zero W and eventually locked its socket buffer. The backend now
|
|
17
|
+
keeps a minimal always-on core (~15 paths, 1-2 Hz) and accepts
|
|
18
|
+
short-lived focus requests from the visor: Tune bumps the gain
|
|
19
|
+
paths only while it is on screen, same for the Calibration
|
|
20
|
+
sliders. TTL expires when the tab closes. New endpoints
|
|
21
|
+
`/watch/focus`, `/watch/release`, `/watch/status`, a live inspector
|
|
22
|
+
in Setup → Remote Control Console, and a `Restart pypilot_web`
|
|
23
|
+
button that runs `sv restart pypilot_web` via SSH.
|
|
24
|
+
- **Navigation session recorder + advice loop (Rev143)** — every
|
|
25
|
+
engaged AP session is now saved as JSONL to
|
|
26
|
+
`~/.signalk/plugin-config-data/signalk-pypilot-newui/nav-sessions/`.
|
|
27
|
+
Users label conditions (wind / sea / motor / point of sail / crew)
|
|
28
|
+
from a modal in Setup → Doctor, share the file via WhatsApp or
|
|
29
|
+
email, receive an "advice" JSON back and upload it - the visor
|
|
30
|
+
renders it as a "Consejos recibidos" card. First step of the
|
|
31
|
+
AI-tuned Doctor roadmap: no AI runs at runtime, learning happens
|
|
32
|
+
off-boat and gets injected as plain heuristics in later Revs.
|
|
33
|
+
- **Pi Zero log capture (Rev138)** — piCore keeps `/var/log` in
|
|
34
|
+
tmpfs, so a hard reset wipes the previous session's logs. New
|
|
35
|
+
opt-in poller SSHes into the Pi Zero on a configurable cadence,
|
|
36
|
+
tails `/var/log/pypilot/*` and appends new lines to a persistent
|
|
37
|
+
daily file on the Pi 5. Toggle + downloader live in the Remote
|
|
38
|
+
Control Console.
|
|
39
|
+
- **Plain-language help for every gain (Rev139)** — every P / I / D
|
|
40
|
+
/ DD / PR / FF slider in Tune and every documented RangeSetting in
|
|
41
|
+
Setup → Calibration now carries a short "what it does" line plus a
|
|
42
|
+
`?` button that expands into "when to raise, when to lower". EN /
|
|
43
|
+
ES / DE / FR. Aligned with Sean's own forum suggestion.
|
|
44
|
+
- **Doctor findings and summary translated (Rev136)** — backend now
|
|
45
|
+
emits i18n keys with args so the whole Doctor panel reads in the
|
|
46
|
+
active language instead of half English / half Spanish.
|
|
47
|
+
- **Alarm engine i18n (Rev135..Rev136)** — the seven built-in rules
|
|
48
|
+
(heading-deviation, unable-to-steer, servo-overcurrent,
|
|
49
|
+
servo-temp-high, low-voltage, sensor-lost, pypilot-disconnected)
|
|
50
|
+
render banners and speak in the active language. The backend still
|
|
51
|
+
ships English strings on `notifications.autopilot.*` for
|
|
52
|
+
KIP / WilhelmSK compatibility.
|
|
53
|
+
- **Mode selector proper i18n + uppercase tabs (Rev142, Rev144)** —
|
|
54
|
+
`compass`, `wind`, `true wind`, `nav` and the plugin's own
|
|
55
|
+
`aproado` render as translated UPPERCASE labels ("COMPAS", "VIENTO
|
|
56
|
+
APARENTE", "APROADO"). Tab labels are UPPERCASE too so accents
|
|
57
|
+
become optional (RAE convention). Language switch now refreshes
|
|
58
|
+
the mode selector and gain help lines immediately.
|
|
59
|
+
- **Doctor - persistent Hide button (Rev135..Rev136)** — the discard
|
|
60
|
+
action stays visible even after a suggestion has been applied,
|
|
61
|
+
the tile chip mirrors the count.
|
|
62
|
+
- **Setup launcher - live status chips (Rev130..Rev135)** — pypilot
|
|
63
|
+
host+port, active language, calibration last-adjust timestamp
|
|
64
|
+
(with a Reset button), count of active SK sentences vs the plugin
|
|
65
|
+
catalogue total, and an SSH-configured pill on Remote Control
|
|
66
|
+
Console. Sensor Quality gains a per-row Ignore / Restore button so
|
|
67
|
+
a sensor absent from the boat (rudder feedback missing, ...)
|
|
68
|
+
stops turning the chip red.
|
|
69
|
+
- **Chart hover freeze + per-band Y axis (Rev129)** — touch or hover
|
|
70
|
+
to freeze the auto-refresh and read the exact value at that point
|
|
71
|
+
for every band. Min / mid / max ticks in the right gutter.
|
|
72
|
+
- **Tune - per-slider ↺ restore + profile-fork prompt (Rev129,
|
|
73
|
+
Rev132..Rev134)** — snap back to the frozen "was:" baseline, or
|
|
74
|
+
save the change in a new `tune-YYYYMMDD-HHMM` fork on first
|
|
75
|
+
unlock, or Cancel and revert.
|
|
76
|
+
- **Nav bar slide-down gesture (Rev129)** — swipe from the top to
|
|
77
|
+
bring the tab bar back, counterpart to the existing slide-up hide.
|
|
78
|
+
|
|
79
|
+
**Changed**
|
|
80
|
+
|
|
81
|
+
- The `RESERVED_PYPILOT_KEYS` set now only blocks publish, not
|
|
82
|
+
subscribe. Rev141 regression fix: `ap.mode`, `ap.enabled`,
|
|
83
|
+
`ap.heading_command` are needed internally to sync with the SK
|
|
84
|
+
Autopilot API v2.
|
|
85
|
+
- All six screenshots refreshed to match the current UI.
|
|
86
|
+
|
|
87
|
+
### Español
|
|
88
|
+
|
|
89
|
+
**Añadido**
|
|
90
|
+
|
|
91
|
+
- **Watch focus dinámico** — el plugin mantiene un núcleo mínimo
|
|
92
|
+
suscrito (~15 keys, 1-2 Hz) y sube el rate solo mientras haya una
|
|
93
|
+
pestaña que necesite ver esos valores. Sigue la recomendación de
|
|
94
|
+
Sean D'Epagnier: pypilot_web se satura si le mandas ~170
|
|
95
|
+
suscripciones constantes. Nuevos endpoints, inspector en vivo y
|
|
96
|
+
botón "Reiniciar pypilot_web" en la consola remota.
|
|
97
|
+
- **Grabador de sesiones + loop de consejos** — cada sesión con el
|
|
98
|
+
AP enganchado se guarda como JSONL. Etiquetas por condiciones
|
|
99
|
+
(viento / mar / propulsión / rumbo / tripulación), botón compartir
|
|
100
|
+
por WhatsApp, y subida del JSON de consejos que se recibe de
|
|
101
|
+
vuelta. Primer paso del "Doctor afinado por IA": la IA no corre
|
|
102
|
+
en tiempo real, aprende offline y sus heurísticas se inyectan
|
|
103
|
+
como código en las próximas Revs.
|
|
104
|
+
- **Captura de logs Pi Zero** — piCore guarda `/var/log` solo en
|
|
105
|
+
RAM, un hard reset borra el historial. Toggle en la consola
|
|
106
|
+
remota que hace SSH cada N segundos y guarda los logs en un
|
|
107
|
+
archivo persistente del Pi 5.
|
|
108
|
+
- **Explicaciones "en cristiano" para cada ganancia** — P / I / D /
|
|
109
|
+
DD / PR / FF más los sliders principales de Calibration llevan
|
|
110
|
+
una línea corta con qué hace y un `?` que expande "cuándo subir,
|
|
111
|
+
cuándo bajar". EN / ES / DE / FR.
|
|
112
|
+
- **Doctor + alarmas en tu idioma** — findings, summary y las siete
|
|
113
|
+
reglas de alarma ahora se traducen en el visor. El backend sigue
|
|
114
|
+
enviando inglés al SK para KIP / WilhelmSK.
|
|
115
|
+
- **Selector de modo traducido en MAYÚSCULAS** — "COMPAS", "VIENTO
|
|
116
|
+
APARENTE", "VIENTO REAL", "APROADO", ... con jerga marinera. Las
|
|
117
|
+
pestañas también en MAYÚSCULAS para que la tilde sea opcional.
|
|
118
|
+
- **Doctor - botón Ocultar siempre visible** — no se atasca la
|
|
119
|
+
lista de sugerencias aunque ya las hayas aplicado.
|
|
120
|
+
- **Setup - chips vivos en cada tile** — host + puerto TinyPilot,
|
|
121
|
+
idioma activo, fecha del último ajuste de calibración, sentencias
|
|
122
|
+
SK activas y SSH configurado.
|
|
123
|
+
- **Sensor Quality con Ignorar / Restaurar por fila** — para
|
|
124
|
+
sensores que no existen en el barco (por ejemplo el timón sin
|
|
125
|
+
feedback).
|
|
126
|
+
- **Chart con freeze al pasar el cursor + escala Y por banda**.
|
|
127
|
+
- **Tune con ↺ por slider + fork de perfil al primer cambio**.
|
|
128
|
+
- **Slide desde arriba para mostrar la barra de pestañas**.
|
|
129
|
+
|
|
130
|
+
**Cambiado**
|
|
131
|
+
|
|
132
|
+
- Regresión Rev141 corregida: `RESERVED_PYPILOT_KEYS` bloquea
|
|
133
|
+
solo publish, no subscribe. El selector de modo del AP vuelve
|
|
134
|
+
a poblarse correctamente.
|
|
135
|
+
- 6 screenshots actualizados a la UI actual.
|
|
136
|
+
|
|
137
|
+
### Deutsch
|
|
138
|
+
|
|
139
|
+
**Neu**
|
|
140
|
+
|
|
141
|
+
- Dynamischer Watch-Fokus, entlastet pypilot_web auf dem Pi Zero.
|
|
142
|
+
- Sitzungs-Rekorder + Ratschlag-Loop (JSONL pro Engage).
|
|
143
|
+
- Pi Zero Log-Capture (persistiert /var/log auf dem Pi 5).
|
|
144
|
+
- Klartext-Hilfe pro Gain-Slider.
|
|
145
|
+
- Doctor + Alarme in aktiver Sprache.
|
|
146
|
+
- Modus-Auswahl uebersetzt in GROSSBUCHSTABEN.
|
|
147
|
+
- Doctor: Verwerfen bleibt sichtbar.
|
|
148
|
+
- Setup-Kacheln zeigen Live-Status.
|
|
149
|
+
- Sensor Quality: Ignorieren pro Zeile.
|
|
150
|
+
- Chart: Hover-Freeze + Y-Achse pro Band.
|
|
151
|
+
- Tune: ↺ pro Slider + Fork-Dialog.
|
|
152
|
+
- Wisch-von-oben blendet Tab-Leiste ein.
|
|
153
|
+
|
|
154
|
+
### Français
|
|
155
|
+
|
|
156
|
+
**Nouveautés**
|
|
157
|
+
|
|
158
|
+
- Focus d'abonnements dynamique, allege pypilot_web sur le Pi Zero.
|
|
159
|
+
- Enregistreur de sessions + boucle de conseils (JSONL par engage).
|
|
160
|
+
- Capture des logs Pi Zero sur le Pi 5.
|
|
161
|
+
- Aide en clair par slider de gain.
|
|
162
|
+
- Doctor et alarmes dans la langue active.
|
|
163
|
+
- Selecteur de mode traduit en MAJUSCULES.
|
|
164
|
+
- Doctor: bouton Masquer toujours visible.
|
|
165
|
+
- Puces de statut vivantes sur chaque tuile Setup.
|
|
166
|
+
- Sensor Quality avec Ignorer / Restaurer par ligne.
|
|
167
|
+
- Chart: figeage au survol + graduation Y par bande.
|
|
168
|
+
- Tune: ↺ par slider + modal de fork de profil.
|
|
169
|
+
- Glissement du haut vers le bas pour reafficher la barre d'onglets.
|
|
170
|
+
|
|
3
171
|
## 2.3.0 — 2026-08-31 — Rev130..Rev137
|
|
4
172
|
|
|
5
173
|
Feature batch on top of 2.2.x. Themes: make the visor speak the user's
|
package/README.md
CHANGED
|
@@ -23,6 +23,81 @@ by Panaaj — see [Working alongside pypilot-autopilot-provider](#working-alongs
|
|
|
23
23
|
|---|---|
|
|
24
24
|
|  |  |
|
|
25
25
|
|
|
26
|
+
## What's new in 2.4.0
|
|
27
|
+
|
|
28
|
+
Feature release. The plugin has learnt to behave itself around the Pi
|
|
29
|
+
Zero and now speaks the sailor's language instead of pilot-programmer
|
|
30
|
+
jargon. The rework was driven by direct feedback from **Sean D'Epagnier**
|
|
31
|
+
(pypilot author) on how his `pypilot_web` handles a firehose of
|
|
32
|
+
subscriptions, and by field observations from Carlos on Tunatunes.
|
|
33
|
+
|
|
34
|
+
- **Dynamic watch focus (per Sean D'Epagnier's advice)** — before, the
|
|
35
|
+
plugin permanently subscribed ~170 pypilot values, which pressured
|
|
36
|
+
`pypilot_web` on the Pi Zero W and eventually locked its socket
|
|
37
|
+
buffer. Now the backend keeps a minimal always-on "core" set (~15
|
|
38
|
+
paths) and accepts short-lived `focus` requests from the visor: the
|
|
39
|
+
Tune tab bumps its gain paths to 2 Hz only while it is on screen,
|
|
40
|
+
same for the Calibration sliders in Setup. When the tab closes the
|
|
41
|
+
TTL expires and the rate drops back. New endpoints
|
|
42
|
+
`/watch/focus`, `/watch/release` and `/watch/status`, a live
|
|
43
|
+
inspector in Setup → Remote Control Console, plus a `Restart
|
|
44
|
+
pypilot_web` button that runs `sv restart pypilot_web` via SSH.
|
|
45
|
+
- **Navigation session recorder + shared-advice loop** — every engaged
|
|
46
|
+
AP session is now saved as JSONL to
|
|
47
|
+
`~/.signalk/plugin-config-data/signalk-pypilot-newui/nav-sessions/`.
|
|
48
|
+
Users label conditions (wind, sea state, propulsion, point of sail,
|
|
49
|
+
crew) from a modal in Setup → Doctor, share the file via WhatsApp
|
|
50
|
+
or email, receive an "advice" JSON back and upload it to the visor,
|
|
51
|
+
where it renders as "Consejos recibidos". First step towards an
|
|
52
|
+
AI-tuned Doctor: the plugin does not run any AI at runtime - all
|
|
53
|
+
the learning happens off-boat and gets injected into future Revs as
|
|
54
|
+
plain heuristics.
|
|
55
|
+
- **Pi Zero log capture** — piCore keeps `/var/log` in tmpfs, so a
|
|
56
|
+
hang wipes the logs the moment the user hits the hard reset relay.
|
|
57
|
+
A new opt-in poller SSHes into the Pi Zero on a configurable
|
|
58
|
+
cadence, tails `/var/log/pypilot/*` and appends the new lines to a
|
|
59
|
+
persistent daily file on the Pi 5. Toggle + downloader live in the
|
|
60
|
+
Remote Control Console.
|
|
61
|
+
- **Plain-language help for every gain** — every P / I / D / DD / PR
|
|
62
|
+
/ FF slider in Tune and every documented RangeSetting slider in
|
|
63
|
+
Setup → Calibration now carries a short "what it does" line plus a
|
|
64
|
+
`?` button that expands into "when to raise, when to lower". EN /
|
|
65
|
+
ES / DE / FR. Directly inspired by Sean's own suggestion in the
|
|
66
|
+
pypilot forum.
|
|
67
|
+
- **Alarm engine and Doctor speak the user's language** — the seven
|
|
68
|
+
built-in alarm rules and the Doctor findings + summary now render
|
|
69
|
+
in the active language (EN / ES / DE / FR); the backend still ships
|
|
70
|
+
English strings on `notifications.autopilot.*` for KIP / WilhelmSK
|
|
71
|
+
compatibility.
|
|
72
|
+
- **Mode selector proper i18n and uppercase tabs** — pypilot mode
|
|
73
|
+
strings (`compass`, `wind`, `true wind`, `nav`) plus the plugin's
|
|
74
|
+
own `aproado` pseudo-mode all render as translated UPPERCASE labels
|
|
75
|
+
("COMPAS", "VIENTO APARENTE", "APROADO", ...). Sailing tab labels
|
|
76
|
+
are UPPERCASE too so accents remain optional per RAE convention.
|
|
77
|
+
- **Doctor UX polish** — every suggestion carries a Hide/Discard
|
|
78
|
+
button that stays visible even after the suggestion has been
|
|
79
|
+
applied, so stale advice never sticks in the list; the Setup tile
|
|
80
|
+
chip mirrors the visible count.
|
|
81
|
+
- **Setup launcher — live status chips on every tile** — pypilot
|
|
82
|
+
host+port, active language, last calibration adjustment timestamp
|
|
83
|
+
(with a Reset button), count of active SK sentences vs the total
|
|
84
|
+
catalogue (all 181 keys), and an SSH-configured pill on Remote
|
|
85
|
+
Control Console. Sensor Quality gains a per-row Ignore / Restore
|
|
86
|
+
button so a rudder feedback that does not exist on this boat stops
|
|
87
|
+
turning the chip red.
|
|
88
|
+
- **Chart tab — hover freeze + per-band Y-axis** — touch or hover
|
|
89
|
+
over the timeline to freeze the auto-refresh and read the exact
|
|
90
|
+
value at that point for every band. Min / mid / max ticks appear
|
|
91
|
+
inside the right gutter of each band.
|
|
92
|
+
- **Tune — per-slider ↺ restore and profile-fork prompt** — every
|
|
93
|
+
gain gets a ↺ that snaps back to the frozen "was:" baseline. The
|
|
94
|
+
first change per unlock triggers a Doctor-style modal to keep the
|
|
95
|
+
tweaks in the current profile, save them in a new
|
|
96
|
+
`tune-YYYYMMDD-HHMM` fork, or Cancel and revert.
|
|
97
|
+
- **Nav bar slide-down gesture** — swipe from the top of the visor
|
|
98
|
+
to bring the tab bar back (counterpart to the existing slide-up
|
|
99
|
+
hide).
|
|
100
|
+
|
|
26
101
|
## What's new in 2.3.0
|
|
27
102
|
|
|
28
103
|
Feature batch on top of 2.2.x:
|