signalk-mareas-ihm 1.2.0 → 1.3.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/NOTICE +5 -0
- package/README.md +79 -0
- package/dist/boat-cenital.svg +865 -0
- package/dist/icon.svg +15 -0
- package/dist/index.js +813 -58
- package/dist/mapafondeo.html +1443 -0
- package/package.json +6 -4
- package/public/assets/index-Bx9W9sDs.css +1 -0
- package/public/assets/index-Cm--h3qP.js +9 -0
- package/public/index.html +11 -3
- package/public/assets/icon-lHzmZl-p.svg +0 -27
- package/public/assets/index-B0nMEXpF.css +0 -1
- package/public/assets/index-CYYVgrlr.js +0 -9
package/NOTICE
CHANGED
|
@@ -6,3 +6,8 @@ Attribution:
|
|
|
6
6
|
This project was originally derived from the Signal K community plugin "signalk-tides"
|
|
7
7
|
and has since been significantly modified and extended to support official data from
|
|
8
8
|
the Spanish Hydrographic Institute (IHM), advanced caching, alarms, and a custom web interface.
|
|
9
|
+
|
|
10
|
+
Map Tile Attribution:
|
|
11
|
+
- OpenStreetMap contributors (© OpenStreetMap, ODbL) — https://www.openstreetmap.org/copyright
|
|
12
|
+
- OpenSeaMap (© OpenSeaMap contributors) — https://www.openseamap.org
|
|
13
|
+
- Leaflet (BSD-2-Clause) — https://leafletjs.com
|
package/README.md
CHANGED
|
@@ -74,6 +74,35 @@ El calado del barco se lee automáticamente de Signal K (`design.draft`) o se pu
|
|
|
74
74
|
|
|
75
75
|
### Changelog
|
|
76
76
|
|
|
77
|
+
#### v1.3.0
|
|
78
|
+
- **Visor de Fondeo**: nueva página independiente `/mapafondeo` con mapa Leaflet a pantalla completa.
|
|
79
|
+
- Icono de barco SVG cenital con escala real según `design.length` / `design.beam` y rotación por heading/COG. A zoom bajo se sustituye por diana roja.
|
|
80
|
+
- Línea cadena proa→ancla con rumbo y distancia en tiempo real.
|
|
81
|
+
- Círculos dinámicos: borneo (azul) y alarma (rojo) con etiquetas de metros permanentes.
|
|
82
|
+
- Sliders de radio borneo y alarma ajustables en caliente.
|
|
83
|
+
- Marcador de ancla ⚓ arrastrable con actualización inmediata de círculos.
|
|
84
|
+
- Track GPS con historial de 3000 puntos.
|
|
85
|
+
- Targets AIS cercanos (diferencia estáticos vs dinámicos).
|
|
86
|
+
- Detección de `@signalk/tracks-plugin` con popup recomendación.
|
|
87
|
+
- Botón meteo → Open-Meteo con temperatura, viento, presión, precipitación.
|
|
88
|
+
- Capas: OSM, OpenSeaMap, MBTiles con slider de transparencia individual.
|
|
89
|
+
- Historial últimas 5 posiciones del ancla con fecha/hora.
|
|
90
|
+
- Favicon, botón volver a Mareas IHM, copyright OSM/OpenSeaMap.
|
|
91
|
+
- Escala gráfica dinámica (metros).
|
|
92
|
+
- **Cartas MBTiles**: servidor de tiles integrado (better-sqlite3) para cartas raster. Selector de carpeta (default `/home/pi/charts`), checkboxes + opacidad por carta.
|
|
93
|
+
- **Alarma de Garreo**: evaluación cada 5s distancia barco-ancla. Radio alarma = swingRadiusMax + margen ajustable (slider 1-50m). Notificación Signal K estándar.
|
|
94
|
+
- **Cadena editable**: clic en caja Cadena para introducir metros reales largados, persiste en backend, sincroniza con Visor.
|
|
95
|
+
- **Paths Signal K nuevos**: `watchEnabled`, `anchorLat`, `anchorLon`, `distanceToAnchor`, `alarmRadius`, `dragging`.
|
|
96
|
+
- **Layout mejorado**: grid auto-fill sin scroll, cajas expandidas al espacio disponible.
|
|
97
|
+
|
|
98
|
+
#### v1.2.1
|
|
99
|
+
- **UI Fondeo renovada**: cajas resultado con títulos uniformes 14px, Cadena y Profundidad en naranja, Estado Marea muestra resumen, Status Profundidad con estado varada, Publicar SK en barra verde.
|
|
100
|
+
- **Config overlay**: panel configuración se superpone sin scroll, con botón Calcular naranja.
|
|
101
|
+
- **Botones 170px**: todos los botones de la barra principal ampliados.
|
|
102
|
+
- **Fix alarma**: notificaciones OpenPlotter se limpian correctamente (state:normal).
|
|
103
|
+
- **Fix hBow**: corregido borrado de altura de roldana.
|
|
104
|
+
- **Fix Publicar SK**: estado persistente entre reinicios.
|
|
105
|
+
|
|
77
106
|
#### v1.2.0
|
|
78
107
|
- ⚓ **Calculadora de fondeo**: nueva pestaña FONDEO con modelo de scope náutico. Cadena recomendada, radio de borneo, publicación opcional en Signal K (`environment.anchor.mareasIhm.*`).
|
|
79
108
|
- 🔇 **Fix notificaciones**: la alarma de varada suena una sola vez (antes se repetía cada 60s).
|
|
@@ -174,6 +203,32 @@ Vessel draft is read automatically from Signal K (`design.draft`) or can be conf
|
|
|
174
203
|
|
|
175
204
|
### Changelog
|
|
176
205
|
|
|
206
|
+
#### v1.3.0
|
|
207
|
+
- **Anchor Map Viewer**: new standalone `/mapafondeo` page with full-screen Leaflet map.
|
|
208
|
+
- Cenital sailboat SVG icon scaled to real `design.length`/`design.beam`, heading rotation. Falls back to red target at low zoom.
|
|
209
|
+
- Chain line bow→anchor with bearing and real-time distance.
|
|
210
|
+
- Dynamic circles: swing (blue) and alarm (red) with permanent meter labels.
|
|
211
|
+
- Adjustable sliders for swing and alarm radius.
|
|
212
|
+
- Draggable anchor ⚓ marker with instant circle update.
|
|
213
|
+
- GPS track (3000 points), AIS targets, OpenSeaMap overlay.
|
|
214
|
+
- Tracks-plugin detection with install recommendation popup.
|
|
215
|
+
- Meteo button → Open-Meteo (temperature, wind, pressure, rain).
|
|
216
|
+
- MBTiles charts with per-layer opacity slider.
|
|
217
|
+
- Last 5 anchor positions history with timestamps.
|
|
218
|
+
- **MBTiles Charts**: integrated tile server (better-sqlite3) for raster charts. Folder selector, per-chart opacity control.
|
|
219
|
+
- **Anchor Drag Alarm**: 5-second evaluation. Alarm radius = swingRadiusMax + adjustable margin (1-50m slider). Standard Signal K notification.
|
|
220
|
+
- **Editable Chain**: click chain box to enter actual deployed meters, persisted in backend, synced to Viewer.
|
|
221
|
+
- **New Signal K paths**: `watchEnabled`, `anchorLat`, `anchorLon`, `distanceToAnchor`, `alarmRadius`, `dragging`.
|
|
222
|
+
- **Improved layout**: auto-fill grid, no scroll, boxes expand to fill available space.
|
|
223
|
+
|
|
224
|
+
#### v1.2.1
|
|
225
|
+
- **UI Fondeo renovada**: cajas resultado con títulos uniformes 14px, Cadena y Profundidad en naranja, Estado Marea muestra resumen, Status Profundidad con estado varada, Publicar SK en barra verde.
|
|
226
|
+
- **Config overlay**: panel configuración se superpone sin scroll, con botón Calcular naranja.
|
|
227
|
+
- **Botones 170px**: todos los botones de la barra principal ampliados.
|
|
228
|
+
- **Fix alarma**: notificaciones OpenPlotter se limpian correctamente (state:normal).
|
|
229
|
+
- **Fix hBow**: corregido borrado de altura de roldana.
|
|
230
|
+
- **Fix Publicar SK**: estado persistente entre reinicios.
|
|
231
|
+
|
|
177
232
|
#### v1.2.0
|
|
178
233
|
- ⚓ **Anchoring calculator**: new ANCHOR tab with nautical scope model. Recommended chain, swing radius, optional Signal K publication (`environment.anchor.mareasIhm.*`).
|
|
179
234
|
- 🔇 **Notification fix**: grounding alarm sounds once (previously repeated every 60s).
|
|
@@ -201,3 +256,27 @@ Vessel draft is read automatically from Signal K (`design.draft`) or can be conf
|
|
|
201
256
|
Apache 2.0 License. Originally derived from `signalk-tides` (Brandon Keepers, Joachim Bakke, Scott Bender and contributors). See `NOTICE` for attribution details.
|
|
202
257
|
|
|
203
258
|
📧 Contact: **tradesolutions@gmail.com** (include "MAREAS (IHM)" in the subject)
|
|
259
|
+
|
|
260
|
+
### v1.3.0 — Visor de Fondeo + Alarma de Garreo
|
|
261
|
+
|
|
262
|
+
**ES:**
|
|
263
|
+
- **Visor de Fondeo** (`/signalk-mareas-ihm/mapafondeo`): Página standalone Leaflet a pantalla completa.
|
|
264
|
+
- Icono SVG cenital velero escalado a `design.length`/`design.beam` con rotación heading. Diana roja a zoom bajo.
|
|
265
|
+
- Línea cadena proa→ancla, círculos borneo (azul) y alarma (rojo) con etiquetas metros.
|
|
266
|
+
- Sliders ajustables, ancla arrastrable, track GPS, targets AIS, OpenSeaMap.
|
|
267
|
+
- Cartas MBTiles con slider opacidad por capa. Botón meteo → Open-Meteo.
|
|
268
|
+
- Historial 5 últimas posiciones ancla. Favicon, botón volver, copyright.
|
|
269
|
+
- **Alarma de Garreo**: Detección cada 5s. Radio = swingRadiusMax + margen slider (1-50m). Notificación SK `notifications.signalk-mareas-ihm.anchorDrag`.
|
|
270
|
+
- **Servidor MBTiles** (better-sqlite3): Carga cartas `.mbtiles` desde `/home/pi/charts/` (configurable).
|
|
271
|
+
- **Cadena editable**: Clic caja Cadena → introducir metros reales largados, persiste backend.
|
|
272
|
+
- **Paths SK nuevos**: `watchEnabled`, `anchorLat`, `anchorLon`, `distanceToAnchor`, `alarmRadius`, `dragging`.
|
|
273
|
+
- **Layout**: Grid auto-fill sin scroll, cajas expandidas.
|
|
274
|
+
|
|
275
|
+
**EN:**
|
|
276
|
+
- **Anchor Map** (`/signalk-mareas-ihm/mapafondeo`): New standalone Leaflet page showing position, anchor, and swing radius. Mobile accessible.
|
|
277
|
+
- **Anchor Drag Alarm**: Continuous drag detection. Alarm radius = swingRadiusMax + 5m. Signal K notification `notifications.signalk-mareas-ihm.anchorDrag`.
|
|
278
|
+
- **MBTiles Server**: Auto-loads nautical chart `.mbtiles` files (SAS Planet) from `/home/pi/charts/` (configurable). Checkboxes to switch between charts without reloading.
|
|
279
|
+
- **Layers**: OpenSeaMap overlay, OSM CartoDB Dark fallback when no local MBTiles.
|
|
280
|
+
- **Map Button**: Box 9 in anchor grid (double width), opens map in new tab.
|
|
281
|
+
- **Search**: Search across Instructions and Changelog with highlighting and auto-scroll.
|
|
282
|
+
- **New Signal K paths**: `environment.anchor.mareasIhm.watchEnabled`, `.anchorLat`, `.anchorLon`, `.distanceToAnchor`, `.alarmRadius`, `.dragging`.
|