signalk-weather-router-plus 0.1.0-beta.1
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 +170 -0
- package/LICENSE +202 -0
- package/NOTICE +89 -0
- package/README.md +2047 -0
- package/WHATSNEW.md +73 -0
- package/data/water-grid-0.02.bin.gz +0 -0
- package/dist/cli.d.ts +22 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +241 -0
- package/dist/cli.js.map +1 -0
- package/dist/currents/coastfill.d.ts +79 -0
- package/dist/currents/coastfill.d.ts.map +1 -0
- package/dist/currents/coastfill.js +250 -0
- package/dist/currents/coastfill.js.map +1 -0
- package/dist/currents/doodson.d.ts +3 -0
- package/dist/currents/doodson.d.ts.map +1 -0
- package/dist/currents/doodson.js +495 -0
- package/dist/currents/doodson.js.map +1 -0
- package/dist/currents/harmonic.d.ts +112 -0
- package/dist/currents/harmonic.d.ts.map +1 -0
- package/dist/currents/harmonic.js +334 -0
- package/dist/currents/harmonic.js.map +1 -0
- package/dist/currents/rtofs.d.ts +133 -0
- package/dist/currents/rtofs.d.ts.map +1 -0
- package/dist/currents/rtofs.js +415 -0
- package/dist/currents/rtofs.js.map +1 -0
- package/dist/currents/smoc.d.ts +231 -0
- package/dist/currents/smoc.d.ts.map +1 -0
- package/dist/currents/smoc.js +300 -0
- package/dist/currents/smoc.js.map +1 -0
- package/dist/currents/stack.d.ts +29 -0
- package/dist/currents/stack.d.ts.map +1 -0
- package/dist/currents/stack.js +92 -0
- package/dist/currents/stack.js.map +1 -0
- package/dist/currents/tidal_arguments.d.ts +81 -0
- package/dist/currents/tidal_arguments.d.ts.map +1 -0
- package/dist/currents/tidal_arguments.js +617 -0
- package/dist/currents/tidal_arguments.js.map +1 -0
- package/dist/currents/types.d.ts +37 -0
- package/dist/currents/types.d.ts.map +1 -0
- package/dist/currents/types.js +13 -0
- package/dist/currents/types.js.map +1 -0
- package/dist/data/arco.d.ts +451 -0
- package/dist/data/arco.d.ts.map +1 -0
- package/dist/data/arco.js +1159 -0
- package/dist/data/arco.js.map +1 -0
- package/dist/data/blosc.d.ts +67 -0
- package/dist/data/blosc.d.ts.map +1 -0
- package/dist/data/blosc.js +287 -0
- package/dist/data/blosc.js.map +1 -0
- package/dist/data/decoded.d.ts +181 -0
- package/dist/data/decoded.d.ts.map +1 -0
- package/dist/data/decoded.js +484 -0
- package/dist/data/decoded.js.map +1 -0
- package/dist/data/ecmwf.d.ts +139 -0
- package/dist/data/ecmwf.d.ts.map +1 -0
- package/dist/data/ecmwf.js +376 -0
- package/dist/data/ecmwf.js.map +1 -0
- package/dist/data/forecast.d.ts +244 -0
- package/dist/data/forecast.d.ts.map +1 -0
- package/dist/data/forecast.js +748 -0
- package/dist/data/forecast.js.map +1 -0
- package/dist/data/loader.d.ts +92 -0
- package/dist/data/loader.d.ts.map +1 -0
- package/dist/data/loader.js +188 -0
- package/dist/data/loader.js.map +1 -0
- package/dist/data/npz.d.ts +43 -0
- package/dist/data/npz.d.ts.map +1 -0
- package/dist/data/npz.js +179 -0
- package/dist/data/npz.js.map +1 -0
- package/dist/data/zarr.d.ts +115 -0
- package/dist/data/zarr.d.ts.map +1 -0
- package/dist/data/zarr.js +318 -0
- package/dist/data/zarr.js.map +1 -0
- package/dist/engine/astar.d.ts +47 -0
- package/dist/engine/astar.d.ts.map +1 -0
- package/dist/engine/astar.js +380 -0
- package/dist/engine/astar.js.map +1 -0
- package/dist/engine/conditions.d.ts +65 -0
- package/dist/engine/conditions.d.ts.map +1 -0
- package/dist/engine/conditions.js +251 -0
- package/dist/engine/conditions.js.map +1 -0
- package/dist/engine/corridor.d.ts +168 -0
- package/dist/engine/corridor.d.ts.map +1 -0
- package/dist/engine/corridor.js +1178 -0
- package/dist/engine/corridor.js.map +1 -0
- package/dist/engine/environment.d.ts +57 -0
- package/dist/engine/environment.d.ts.map +1 -0
- package/dist/engine/environment.js +47 -0
- package/dist/engine/environment.js.map +1 -0
- package/dist/engine/gridastar.d.ts +84 -0
- package/dist/engine/gridastar.d.ts.map +1 -0
- package/dist/engine/gridastar.js +368 -0
- package/dist/engine/gridastar.js.map +1 -0
- package/dist/engine/isobars.d.ts +49 -0
- package/dist/engine/isobars.d.ts.map +1 -0
- package/dist/engine/isobars.js +340 -0
- package/dist/engine/isobars.js.map +1 -0
- package/dist/engine/legsim.d.ts +53 -0
- package/dist/engine/legsim.d.ts.map +1 -0
- package/dist/engine/legsim.js +187 -0
- package/dist/engine/legsim.js.map +1 -0
- package/dist/engine/multileg.d.ts +119 -0
- package/dist/engine/multileg.d.ts.map +1 -0
- package/dist/engine/multileg.js +270 -0
- package/dist/engine/multileg.js.map +1 -0
- package/dist/engine/propagator.d.ts +152 -0
- package/dist/engine/propagator.d.ts.map +1 -0
- package/dist/engine/propagator.js +864 -0
- package/dist/engine/propagator.js.map +1 -0
- package/dist/engine/route.d.ts +90 -0
- package/dist/engine/route.d.ts.map +1 -0
- package/dist/engine/route.js +184 -0
- package/dist/engine/route.js.map +1 -0
- package/dist/engine/smoother.d.ts +54 -0
- package/dist/engine/smoother.d.ts.map +1 -0
- package/dist/engine/smoother.js +214 -0
- package/dist/engine/smoother.js.map +1 -0
- package/dist/geo/geodesy.d.ts +66 -0
- package/dist/geo/geodesy.d.ts.map +1 -0
- package/dist/geo/geodesy.js +231 -0
- package/dist/geo/geodesy.js.map +1 -0
- package/dist/geo/grid.d.ts +36 -0
- package/dist/geo/grid.d.ts.map +1 -0
- package/dist/geo/grid.js +83 -0
- package/dist/geo/grid.js.map +1 -0
- package/dist/geo/gshhg.d.ts +59 -0
- package/dist/geo/gshhg.d.ts.map +1 -0
- package/dist/geo/gshhg.js +292 -0
- package/dist/geo/gshhg.js.map +1 -0
- package/dist/geo/landcache.d.ts +112 -0
- package/dist/geo/landcache.d.ts.map +1 -0
- package/dist/geo/landcache.js +349 -0
- package/dist/geo/landcache.js.map +1 -0
- package/dist/geo/landmask.d.ts +171 -0
- package/dist/geo/landmask.d.ts.map +1 -0
- package/dist/geo/landmask.js +720 -0
- package/dist/geo/landmask.js.map +1 -0
- package/dist/geo/shapefile.d.ts +89 -0
- package/dist/geo/shapefile.d.ts.map +1 -0
- package/dist/geo/shapefile.js +465 -0
- package/dist/geo/shapefile.js.map +1 -0
- package/dist/geo/straits.d.ts +19 -0
- package/dist/geo/straits.d.ts.map +1 -0
- package/dist/geo/straits.js +79 -0
- package/dist/geo/straits.js.map +1 -0
- package/dist/geo/watergrid.d.ts +194 -0
- package/dist/geo/watergrid.d.ts.map +1 -0
- package/dist/geo/watergrid.js +548 -0
- package/dist/geo/watergrid.js.map +1 -0
- package/dist/geo/watergrid_build.d.ts +124 -0
- package/dist/geo/watergrid_build.d.ts.map +1 -0
- package/dist/geo/watergrid_build.js +736 -0
- package/dist/geo/watergrid_build.js.map +1 -0
- package/dist/geo/watergrid_canals.d.ts +20 -0
- package/dist/geo/watergrid_canals.d.ts.map +1 -0
- package/dist/geo/watergrid_canals.js +83 -0
- package/dist/geo/watergrid_canals.js.map +1 -0
- package/dist/geo/watergrid_store.d.ts +26 -0
- package/dist/geo/watergrid_store.d.ts.map +1 -0
- package/dist/geo/watergrid_store.js +100 -0
- package/dist/geo/watergrid_store.js.map +1 -0
- package/dist/grib/ccsds.d.ts +54 -0
- package/dist/grib/ccsds.d.ts.map +1 -0
- package/dist/grib/ccsds.js +339 -0
- package/dist/grib/ccsds.js.map +1 -0
- package/dist/grib/grib2.d.ts +105 -0
- package/dist/grib/grib2.d.ts.map +1 -0
- package/dist/grib/grib2.js +368 -0
- package/dist/grib/grib2.js.map +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +980 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin/api.d.ts +89 -0
- package/dist/plugin/api.d.ts.map +1 -0
- package/dist/plugin/api.js +695 -0
- package/dist/plugin/api.js.map +1 -0
- package/dist/plugin/config.d.ts +287 -0
- package/dist/plugin/config.d.ts.map +1 -0
- package/dist/plugin/config.js +259 -0
- package/dist/plugin/config.js.map +1 -0
- package/dist/plugin/gridbuilder.d.ts +27 -0
- package/dist/plugin/gridbuilder.d.ts.map +1 -0
- package/dist/plugin/gridbuilder.js +39 -0
- package/dist/plugin/gridbuilder.js.map +1 -0
- package/dist/plugin/jobs.d.ts +80 -0
- package/dist/plugin/jobs.d.ts.map +1 -0
- package/dist/plugin/jobs.js +273 -0
- package/dist/plugin/jobs.js.map +1 -0
- package/dist/plugin/legends.d.ts +39 -0
- package/dist/plugin/legends.d.ts.map +1 -0
- package/dist/plugin/legends.js +173 -0
- package/dist/plugin/legends.js.map +1 -0
- package/dist/plugin/memguard.d.ts +85 -0
- package/dist/plugin/memguard.d.ts.map +1 -0
- package/dist/plugin/memguard.js +232 -0
- package/dist/plugin/memguard.js.map +1 -0
- package/dist/plugin/openapi.d.ts +3 -0
- package/dist/plugin/openapi.d.ts.map +1 -0
- package/dist/plugin/openapi.js +672 -0
- package/dist/plugin/openapi.js.map +1 -0
- package/dist/plugin/overlays.d.ts +139 -0
- package/dist/plugin/overlays.d.ts.map +1 -0
- package/dist/plugin/overlays.js +500 -0
- package/dist/plugin/overlays.js.map +1 -0
- package/dist/plugin/polars.d.ts +62 -0
- package/dist/plugin/polars.d.ts.map +1 -0
- package/dist/plugin/polars.js +324 -0
- package/dist/plugin/polars.js.map +1 -0
- package/dist/plugin/prebuild.d.ts +143 -0
- package/dist/plugin/prebuild.d.ts.map +1 -0
- package/dist/plugin/prebuild.js +463 -0
- package/dist/plugin/prebuild.js.map +1 -0
- package/dist/plugin/protocol.d.ts +411 -0
- package/dist/plugin/protocol.d.ts.map +1 -0
- package/dist/plugin/protocol.js +18 -0
- package/dist/plugin/protocol.js.map +1 -0
- package/dist/plugin/settings.d.ts +189 -0
- package/dist/plugin/settings.d.ts.map +1 -0
- package/dist/plugin/settings.js +899 -0
- package/dist/plugin/settings.js.map +1 -0
- package/dist/plugin/tilejoin.d.ts +55 -0
- package/dist/plugin/tilejoin.d.ts.map +1 -0
- package/dist/plugin/tilejoin.js +282 -0
- package/dist/plugin/tilejoin.js.map +1 -0
- package/dist/plugin/tiles.d.ts +180 -0
- package/dist/plugin/tiles.d.ts.map +1 -0
- package/dist/plugin/tiles.js +580 -0
- package/dist/plugin/tiles.js.map +1 -0
- package/dist/plugin/weather.d.ts +97 -0
- package/dist/plugin/weather.d.ts.map +1 -0
- package/dist/plugin/weather.js +159 -0
- package/dist/plugin/weather.js.map +1 -0
- package/dist/plugin/worker.d.ts +31 -0
- package/dist/plugin/worker.d.ts.map +1 -0
- package/dist/plugin/worker.js +1690 -0
- package/dist/plugin/worker.js.map +1 -0
- package/dist/tides/sealevel.d.ts +324 -0
- package/dist/tides/sealevel.d.ts.map +1 -0
- package/dist/tides/sealevel.js +475 -0
- package/dist/tides/sealevel.js.map +1 -0
- package/dist/tides/tidecalc.d.ts +88 -0
- package/dist/tides/tidecalc.d.ts.map +1 -0
- package/dist/tides/tidecalc.js +202 -0
- package/dist/tides/tidecalc.js.map +1 -0
- package/dist/util/gc.d.ts +17 -0
- package/dist/util/gc.d.ts.map +1 -0
- package/dist/util/gc.js +82 -0
- package/dist/util/gc.js.map +1 -0
- package/dist/vessel/polar.d.ts +43 -0
- package/dist/vessel/polar.d.ts.map +1 -0
- package/dist/vessel/polar.js +238 -0
- package/dist/vessel/polar.js.map +1 -0
- package/dist/vessel/vessel.d.ts +33 -0
- package/dist/vessel/vessel.d.ts.map +1 -0
- package/dist/vessel/vessel.js +57 -0
- package/dist/vessel/vessel.js.map +1 -0
- package/dist/vessel/vpp.d.ts +79 -0
- package/dist/vessel/vpp.d.ts.map +1 -0
- package/dist/vessel/vpp.js +161 -0
- package/dist/vessel/vpp.js.map +1 -0
- package/dist/vessel/vpp_empirical.d.ts +60 -0
- package/dist/vessel/vpp_empirical.d.ts.map +1 -0
- package/dist/vessel/vpp_empirical.js +197 -0
- package/dist/vessel/vpp_empirical.js.map +1 -0
- package/dist/vessel/vpp_physics.d.ts +106 -0
- package/dist/vessel/vpp_physics.d.ts.map +1 -0
- package/dist/vessel/vpp_physics.js +292 -0
- package/dist/vessel/vpp_physics.js.map +1 -0
- package/licenses/GPL-3.0.txt +674 -0
- package/licenses/GSHHG-LICENSE.txt +23 -0
- package/licenses/LGPL-3.0.txt +165 -0
- package/package.json +90 -0
- package/public/favicon.png +0 -0
- package/public/icon.png +0 -0
- package/public/icon.svg +9 -0
- package/public/index.html +904 -0
- package/public/ol.css +350 -0
- package/public/ol.js +4 -0
- package/public/remoteEntry.js +293 -0
- package/public/rp-core.js +1465 -0
- package/public/rp-layers.js +1541 -0
- package/public/rp-plan.js +2361 -0
- package/public/rp-settings.js +275 -0
- package/public/screenshots/01-route.jpg +0 -0
- package/public/screenshots/02-planning.jpg +0 -0
- package/public/screenshots/03-layers.jpg +0 -0
- package/public/screenshots/04-conditions.jpg +0 -0
- package/public/screenshots/05-waypoints.jpg +0 -0
- package/public/screenshots/06-polars.jpg +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project
|
|
5
|
+
uses [Semantic Versioning](https://semver.org/).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **Centre on the boat:** a button under the map's zoom buttons centres
|
|
12
|
+
the map on the boat's Signal K position, keeping the zoom.
|
|
13
|
+
- The route summary (distance, time, arrival, sail and motor time,
|
|
14
|
+
waypoints, highest waves, validation badge) is also shown at the top of
|
|
15
|
+
the Itinerary tab.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- **A route could cross a narrow point of land.** Candidate legs were
|
|
20
|
+
checked for land at points 200 m apart, so a spit narrower than that
|
|
21
|
+
could fall between two of them (job `b0d324f7`: a leg across the tip of
|
|
22
|
+
Point Judith, RI; the final check flagged it but could only warn).
|
|
23
|
+
Legs are now checked against every land-raster cell their path
|
|
24
|
+
crosses, and the final validation tests each leg against the coastline
|
|
25
|
+
polygon edges instead of points every 100 m, so land of any width is
|
|
26
|
+
found. Checked on nine routes (Gibraltar, Messina, the Dardanelles and
|
|
27
|
+
Bosphorus, Singapore, Øresund and Dover, Newport → Horta, Point
|
|
28
|
+
Judith): all succeed with no land crossing and none is slower; the
|
|
29
|
+
Aegean → Black Sea route keeps further off the shore in the straits
|
|
30
|
+
(3.8% longer).
|
|
31
|
+
- The polar diagram's "180°" label overlapped its caption; the caption
|
|
32
|
+
now has its own strip below the diagram.
|
|
33
|
+
- **The conditions popup showed 0.0 kn of current where no current model
|
|
34
|
+
has data** (e.g. the Narrows, New York: no source resolves it), which
|
|
35
|
+
read as slack water. `/api/conditions` now returns `current_ms` and
|
|
36
|
+
`current_dir_deg` as null there, and the popup says there is no current
|
|
37
|
+
data instead of drawing a zero line. Answers saved before this change
|
|
38
|
+
are not served again.
|
|
39
|
+
|
|
40
|
+
## [0.1.0-beta.1] - 2026-09-30
|
|
41
|
+
|
|
42
|
+
First public beta: weather routing that runs entirely inside the Signal K
|
|
43
|
+
server, with no outside routing service. The history of the development
|
|
44
|
+
builds before this release, with their measurements, is in
|
|
45
|
+
[docs/development-notes.md](https://github.com/motamman/signalk-weather-router-plus/blob/main/docs/development-notes.md).
|
|
46
|
+
|
|
47
|
+
### Added
|
|
48
|
+
|
|
49
|
+
#### Routing
|
|
50
|
+
|
|
51
|
+
- Isochrone router (a TypeScript port of the routePlanning subsector
|
|
52
|
+
router) in a worker thread, against the vessel's polar. Modes
|
|
53
|
+
`sail_max` (sail when the polar speed reaches the sail threshold,
|
|
54
|
+
motor otherwise), `fastest` and `motor`. Tack penalty, motor speed,
|
|
55
|
+
under-keel and overhead margins, maximum wave height.
|
|
56
|
+
- **Routes through straits anywhere:** a global water grid shipped with
|
|
57
|
+
the plugin (0.02°, built from GSHHG full-resolution level 1, with 4,987
|
|
58
|
+
narrow passages) gives each route a corridor; routes such as Lisbon →
|
|
59
|
+
Palma through Gibraltar or the Aegean → Black Sea through the
|
|
60
|
+
Dardanelles and the Bosphorus need no waypoints. Where the corridor
|
|
61
|
+
crosses a passage narrower than a stage step, an automatic
|
|
62
|
+
pass-through point is placed at its narrowest point and steps shorten
|
|
63
|
+
there. Known canals are closed unless **Allow canals** is on.
|
|
64
|
+
- **Waypoints as legs:** each waypoint ends a leg; the next departs at
|
|
65
|
+
the arrival time. **Precise** (exactly through the waypoint) or
|
|
66
|
+
**Approximate** (through a circle of 50–2000 m, one search across
|
|
67
|
+
consecutive approximate waypoints). The destination is always exact.
|
|
68
|
+
- **Route simplification:** waypoints within 10 m of a straight line are
|
|
69
|
+
dropped, and runs of waypoints become one straight leg when it stays
|
|
70
|
+
clear of land and is at most 5% slower. Your own waypoints are kept.
|
|
71
|
+
- **Polar performance** (default 100%, 30–120%): the share of the
|
|
72
|
+
polar's speeds the boat actually makes under sail.
|
|
73
|
+
- Every leg is checked against the exact coastline polygons.
|
|
74
|
+
- Route jobs with progress over Server-Sent Events; results as GeoJSON,
|
|
75
|
+
saved to the Signal K Resources API, with a notification on completion
|
|
76
|
+
or failure. **Live mode** re-plans from the boat's position.
|
|
77
|
+
- `wrp-route` command-line tool (no Signal K needed).
|
|
78
|
+
|
|
79
|
+
#### Weather, currents and tides
|
|
80
|
+
|
|
81
|
+
- **ECMWF open data**, global at 0.25°: wind, pressure and waves;
|
|
82
|
+
optional air and sea temperature, precipitation, dew point and
|
|
83
|
+
precipitation type. Every cycle (00z/12z to 360 h, 06z/18z to 144 h),
|
|
84
|
+
horizon 3–360 h (default 72 h). Fetched by byte range and decoded in
|
|
85
|
+
the plugin.
|
|
86
|
+
- **The forecast is decoded once to disk**, not held in memory: about
|
|
87
|
+
1.1 GB for 72 h with the extra fields, 3.9 GB at 360 h. The forecast
|
|
88
|
+
is ready 1.3 s after a restart when the current run is already decoded
|
|
89
|
+
(Raspberry Pi 5, measured). On that Pi (8 GB), the whole Signal K
|
|
90
|
+
process, with this plugin, its two tile build workers and the server's
|
|
91
|
+
other plugins, used 1.9 GB after 7 hours (measured 30 September).
|
|
92
|
+
- A resource guard refuses a forecast, a route or a setting the device
|
|
93
|
+
cannot hold (memory kept free, default 1 GB; 1 GB of disk kept free)
|
|
94
|
+
and says what to change.
|
|
95
|
+
- **Currents:** Copernicus Marine SMOC (worldwide, hourly, including
|
|
96
|
+
tidal currents), NOAA Global RTOFS as a backup, and tidal-harmonic
|
|
97
|
+
files you install (FES2014, NECOFS) taking priority where they cover.
|
|
98
|
+
- **Tides and water level:** Copernicus Marine hourly sea level: tide
|
|
99
|
+
height, total water level and surge, high and low waters.
|
|
100
|
+
|
|
101
|
+
#### Web app
|
|
102
|
+
|
|
103
|
+
- Plan on the map: click menu, draggable start, destination and
|
|
104
|
+
waypoints, course extension, itinerary cards per leg with the tack,
|
|
105
|
+
saved routes, run log.
|
|
106
|
+
- Map layers named for the quantity shown: wind speed (colour) and flow
|
|
107
|
+
lines, wind barbs, wave height and direction lines, current speed and
|
|
108
|
+
arrows, sea state, precipitation, air and sea temperature, pressure
|
|
109
|
+
isobars with highs and lows, tide height, OpenSeaMap seamarks and your
|
|
110
|
+
own vessel. Colour layers stop at the coastline; water the current and
|
|
111
|
+
tide models cannot resolve is hatched "no model data".
|
|
112
|
+
- **Map tiles saved on disk and built ahead of time:** colour layers,
|
|
113
|
+
barbs and arrows load as fixed tiles on the hour, answered from disk
|
|
114
|
+
(11–27 ms per tile measured on the Pi against a 10 s median before
|
|
115
|
+
caching). Worker threads build the tiles around the boat and the area
|
|
116
|
+
the map shows for every hour of the forecast (zoom 6–15, 250 km radius
|
|
117
|
+
to zoom 8, half of it at each deeper zoom). Disk cap 20 GB by default.
|
|
118
|
+
- **Conditions popup** (shift-click): 72-hour charts of wind, waves, sea
|
|
119
|
+
state, tide and current, pressure, temperature and precipitation, and
|
|
120
|
+
a raw table.
|
|
121
|
+
- **Units from your Signal K unit preferences**; values are SI
|
|
122
|
+
everywhere else.
|
|
123
|
+
- **Settings tab** for vessel, forecast, currents, tides, routing and
|
|
124
|
+
publishing, shared by every client.
|
|
125
|
+
|
|
126
|
+
#### Polars
|
|
127
|
+
|
|
128
|
+
- Polar library (default polar plus a polars directory), polar diagram
|
|
129
|
+
and point-of-sail angles, polar per route.
|
|
130
|
+
- **Create polar from boat specs:** a physics model (ORC VPP 2026 sail
|
|
131
|
+
forces, Delft hull series resistance, heeling limit with crew on the
|
|
132
|
+
rail). Checked against 441 ORC 2026 non-spinnaker certificates: median
|
|
133
|
+
error 3.3% upwind, 3.2% reaching, 3.3% running. No spinnaker assumed.
|
|
134
|
+
|
|
135
|
+
#### Signal K integration
|
|
136
|
+
|
|
137
|
+
- **Configuration panel** in the Admin UI: coastline with a Download
|
|
138
|
+
button and progress, the map cache settings in your units, and the
|
|
139
|
+
other plugin options.
|
|
140
|
+
- **Coastline downloaded on first start** when none is configured: GSHHG
|
|
141
|
+
2.3.7 full-resolution level 1 (149 MB, once) from the authors' site,
|
|
142
|
+
or an identical copy on router.zeddisplay.com, checked by SHA-256.
|
|
143
|
+
- **Weather API provider:** point forecasts anywhere, including
|
|
144
|
+
temperature, dew point, humidity, water temperature, water level and
|
|
145
|
+
its tendency.
|
|
146
|
+
- REST API with an OpenAPI document; every map and point answer is shared
|
|
147
|
+
by all clients through the same disk cache.
|
|
148
|
+
|
|
149
|
+
### Known issues
|
|
150
|
+
|
|
151
|
+
- Tide heights and water level are relative to **mean sea level, not
|
|
152
|
+
chart datum**. Do not use them for under-keel clearance.
|
|
153
|
+
- Currents and tides come from ~9 km models: fine along coasts, not
|
|
154
|
+
inside small harbours or narrow channels.
|
|
155
|
+
- Open water only; no depths, fairways or bridges. Passages narrower than
|
|
156
|
+
about 150 m are not navigable for the router. A start or end deep
|
|
157
|
+
inside a harbour can fail; start from the approach.
|
|
158
|
+
- One route computes at a time; others queue. Routes beyond the forecast
|
|
159
|
+
horizon use the last forecast step.
|
|
160
|
+
- Map layers show the forecast on the hour; latitudes beyond ±85° have no
|
|
161
|
+
map tiles.
|
|
162
|
+
- Behind a caching proxy (e.g. Cloudflare), the web app at
|
|
163
|
+
`/signalk-weather-router-plus/` can run the previous version's scripts
|
|
164
|
+
for a few hours after an update; reload without cache, or open
|
|
165
|
+
`/plugins/signalk-weather-router-plus/ui`, which always loads the
|
|
166
|
+
current scripts.
|
|
167
|
+
- The configuration panel has been tested on Signal K server 2.33.0.
|
|
168
|
+
|
|
169
|
+
[Unreleased]: https://github.com/motamman/signalk-weather-router-plus/compare/v0.1.0-beta.1...HEAD
|
|
170
|
+
[0.1.0-beta.1]: https://github.com/motamman/signalk-weather-router-plus/releases/tag/v0.1.0-beta.1
|
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
Weather Router Plus (signalk-weather-router-plus)
|
|
2
|
+
Copyright 2026 Maurice Tamman
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
The Apache License does not grant permission to use the names
|
|
7
|
+
"Weather Router Plus" or "signalk-weather-router-plus", or the project's
|
|
8
|
+
icons, for a modified or forked version (Apache License 2.0, section 6).
|
|
9
|
+
See CONTRIBUTING.md.
|
|
10
|
+
|
|
11
|
+
===========================================================================
|
|
12
|
+
Third-party material included in this distribution
|
|
13
|
+
===========================================================================
|
|
14
|
+
|
|
15
|
+
OpenLayers 9.1.0 (public/ol.js, public/ol.css)
|
|
16
|
+
https://openlayers.org/
|
|
17
|
+
|
|
18
|
+
BSD 2-Clause License
|
|
19
|
+
|
|
20
|
+
Copyright 2005-present, OpenLayers Contributors
|
|
21
|
+
All rights reserved.
|
|
22
|
+
|
|
23
|
+
Redistribution and use in source and binary forms, with or without
|
|
24
|
+
modification, are permitted provided that the following conditions are met:
|
|
25
|
+
|
|
26
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
27
|
+
list of conditions and the following disclaimer.
|
|
28
|
+
|
|
29
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
30
|
+
this list of conditions and the following disclaimer in the documentation
|
|
31
|
+
and/or other materials provided with the distribution.
|
|
32
|
+
|
|
33
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
34
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
35
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
36
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
37
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
38
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
39
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
40
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
41
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
42
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
+
|
|
44
|
+
Global water grid (data/water-grid-0.02.bin.gz)
|
|
45
|
+
|
|
46
|
+
Built from the GSHHG 2.3.7 full-resolution level-1 shoreline
|
|
47
|
+
(GSHHS_f_L1.shp): Wessel, P., and W. H. F. Smith, A Global
|
|
48
|
+
Self-consistent, Hierarchical, High-resolution Shoreline Database,
|
|
49
|
+
J. Geophys. Res., 101, 8741-8743, 1996.
|
|
50
|
+
|
|
51
|
+
GSHHG is distributed under the GNU Lesser General Public License,
|
|
52
|
+
version 3 or later, with the permission notice in
|
|
53
|
+
licenses/GSHHG-LICENSE.txt. This file, as a work derived from GSHHG, is
|
|
54
|
+
provided under the same terms: licenses/LGPL-3.0.txt, which
|
|
55
|
+
supplements licenses/GPL-3.0.txt. The GSHHG data it was built from is
|
|
56
|
+
available from https://www.soest.hawaii.edu/pwessel/gshhg/ (and
|
|
57
|
+
https://router.zeddisplay.com/downloads/gshhg-shp-2.3.7.zip); the
|
|
58
|
+
program that builds this file from it is tools/build_water_grid.ts in
|
|
59
|
+
the source repository (npm run build:water-grid). The rest of this
|
|
60
|
+
package is licensed under the Apache License 2.0; the LGPL applies to
|
|
61
|
+
this data file only.
|
|
62
|
+
|
|
63
|
+
===========================================================================
|
|
64
|
+
Data the plugin downloads at run time (not included in this distribution)
|
|
65
|
+
===========================================================================
|
|
66
|
+
|
|
67
|
+
GSHHG 2.3.7 shoreline (when no coastline is configured)
|
|
68
|
+
Wessel & Smith, GNU Lesser General Public License.
|
|
69
|
+
https://www.soest.hawaii.edu/pwessel/gshhg/ (an identical copy is served
|
|
70
|
+
at https://router.zeddisplay.com/downloads/gshhg-shp-2.3.7.zip).
|
|
71
|
+
|
|
72
|
+
Weather forecasts: ECMWF open data
|
|
73
|
+
Source: European Centre for Medium-Range Weather Forecasts (ECMWF),
|
|
74
|
+
https://www.ecmwf.int/en/forecasts/datasets/open-data . Licensed under
|
|
75
|
+
Creative Commons Attribution 4.0 International (CC BY 4.0,
|
|
76
|
+
https://creativecommons.org/licenses/by/4.0/) and the ECMWF Terms of Use
|
|
77
|
+
(https://apps.ecmwf.int/datasets/licences/general/).
|
|
78
|
+
|
|
79
|
+
Ocean currents and sea level: Copernicus Marine Service
|
|
80
|
+
Generated using E.U. Copernicus Marine Service Information;
|
|
81
|
+
https://doi.org/10.48670/moi-00016 . Licence:
|
|
82
|
+
https://marine.copernicus.eu/user-corner/service-commitments-and-licence
|
|
83
|
+
|
|
84
|
+
Ocean currents: NOAA Global RTOFS
|
|
85
|
+
U.S. National Oceanic and Atmospheric Administration, National Centers
|
|
86
|
+
for Environmental Prediction. A work of the U.S. Government.
|
|
87
|
+
|
|
88
|
+
Tidal harmonics (FES2014, NECOFS) and polar files are supplied by the user
|
|
89
|
+
and remain under their own terms.
|