openmeteo-signalk 0.1.0 → 0.1.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 +18 -15
- package/LICENSE +21 -21
- package/README.md +79 -77
- package/index.js +187 -187
- package/openApi.json +88 -88
- package/openmeteo.js +851 -851
- package/package.json +35 -35
- package/skunits.js +435 -435
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
## [0.1]
|
|
4
|
-
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## [0.1.1]
|
|
4
|
+
- README: replaces `squid-sailing-signalk` (archived) - new configuration options, settings are not migrated.
|
|
5
|
+
|
|
6
|
+
## [0.1]
|
|
7
|
+
- Initial Release.
|
|
8
|
+
- Forecast for the full hour `<offset>` ahead from a selectable Open-Meteo weather model, published with `$source` `openmeteo-signalk.<model>`.
|
|
9
|
+
- Optional second model, published in parallel on the same paths with its own `$source` and ranked as source priority group (first model wins, second fills gaps).
|
|
10
|
+
- Optional today's forecast (min / max temperature, humidity, pressure, precipitation, gusts, weather) on `environment.forecast.today.*`.
|
|
11
|
+
- Hourly refresh, optional in-between refresh after a configurable distance (nm).
|
|
12
|
+
- Resilient to long offline periods: single error report, back-off up to 15 min, no request backlog.
|
|
13
|
+
- Readable debug log: configuration summary, forecast received with next update, connectivity and recovery - no request URLs or API keys.
|
|
14
|
+
- Measurement groups on par with the OpenWeather and SquidSailing plugins, incl. storm indices, snow depth and marine data (waves, current, water temperature).
|
|
15
|
+
- Optional current conditions on `environment.outside.*`.
|
|
16
|
+
- Forecast series endpoint `/plugins/openmeteo-signalk/forecast` (OpenAPI): one measurement up to 48 hours ahead in 15 minute or hourly steps for the vessel position and model of the plugin, cached for 15 minutes - used by the barograph app for its forecast trace.
|
|
17
|
+
- SignalK Plugin CI and automated tests.
|
|
18
|
+
- Plugin logo, shown in the App Store of the SignalK server (`signalk.appIcon`).
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Inspired Technologies
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Inspired Technologies
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,77 +1,79 @@
|
|
|
1
|
-
# signalk-openmeteo-plugin
|
|
2
|
-
SignalK Plugin to inject current conditions and forecast data from the __[Open-Meteo](https://open-meteo.com/)__ weather service - with a choice of weather models from national weather services (ECMWF, DWD ICON, NOAA GFS, Météo-France, UK Met Office, ...).
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- **
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
|
42
|
-
|
|
43
|
-
| `environment.forecast.
|
|
44
|
-
| `environment.forecast.
|
|
45
|
-
| `environment.forecast.
|
|
46
|
-
| `environment.forecast.
|
|
47
|
-
| `environment.
|
|
48
|
-
| `environment.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
|
58
|
-
|
|
59
|
-
| `
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
# signalk-openmeteo-plugin
|
|
2
|
+
SignalK Plugin to inject current conditions and forecast data from the __[Open-Meteo](https://open-meteo.com/)__ weather service - with a choice of weather models from national weather services (ECMWF, DWD ICON, NOAA GFS, Météo-France, UK Met Office, ...).
|
|
3
|
+
|
|
4
|
+
> **Replaces `squid-sailing-signalk`** - squid-sailing-signalk is archived and replaced by openmeteo-signalk with new configuration options. Settings are not migrated: configure this plugin anew and disable or uninstall squid-sailing-signalk.
|
|
5
|
+
|
|
6
|
+
## Install & Use
|
|
7
|
+
Install the plugin through the SignalK App Store. After installation 'Activate' it through the SignalK Plugin Config interface and select:
|
|
8
|
+
- **Weather model** (required) - `best_match` lets Open-Meteo combine the most suitable models for your location, or pick a specific model
|
|
9
|
+
- **Second weather model** (optional) - published in parallel on the same paths with its own `$source` (see [Sources](#sources))
|
|
10
|
+
- **Forecast offset** - the forecast is published for the full hour `<offset>` hours ahead (default 1)
|
|
11
|
+
- **Forecast horizon** - hours ahead used for minimum / maximum / accumulated values (default 24)
|
|
12
|
+
- **Refresh distance** (optional, nm) - refresh in between when the vessel moved this distance since the last update; leave empty for the hourly refresh only
|
|
13
|
+
- **Today's forecast** - publish today's values on `environment.forecast.today.*` (all or nothing, default on)
|
|
14
|
+
- **Measurements** - groups of values to publish:
|
|
15
|
+
- Temperature at 2 m, incl. apparent temperature and dew point
|
|
16
|
+
- Relative humidity at 2 m
|
|
17
|
+
- Atmospheric pressure at station elevation
|
|
18
|
+
- Wind at 10 m incl. gusts
|
|
19
|
+
- Precipitation - probability, rain, snow, accumulated
|
|
20
|
+
- Weather condition - WMO code, description and icon
|
|
21
|
+
- Cloud cover, visibility and UV index
|
|
22
|
+
- Convective potential energy and lifted index
|
|
23
|
+
- Snow depth
|
|
24
|
+
- Waves, ocean current and water temperature (Open-Meteo Marine API)
|
|
25
|
+
- **Current conditions** - optionally publish on `environment.outside.*`; turn this on only if no other sensors (e.g. BME280, RuuviTag) provide outside conditions.
|
|
26
|
+
|
|
27
|
+
### API key
|
|
28
|
+
Open-Meteo is free for non-commercial use within its fair-use limits and needs no API key - the plugin works out of the box. **The plugin does not come with an API key.** Commercial or heavy users have to acquire their own key from Open-Meteo (see [pricing](https://open-meteo.com/en/pricing)) and enter it in the plugin configuration; the plugin then uses the customer API servers.
|
|
29
|
+
|
|
30
|
+
## Forecast Data
|
|
31
|
+
Forecast data is purely based on position - hence `navigation.position` needs to be present. Data is requested on the first position, then one hour after the last update and - if a refresh distance is configured - in between as soon as the vessel moved that distance since the last update. `navigation.gnss.antennaAltitude` is used, if present, as elevation for the forecast, so that pressure and temperature apply to the station elevation; otherwise sea level (or the terrain elevation ashore) is assumed. No information will be stored or tracked.
|
|
32
|
+
|
|
33
|
+
### Offline operation
|
|
34
|
+
Without internet connection (e.g. at sea) the plugin keeps running quietly: the failure is reported once in the plugin status, retries back off from 1 up to 15 minutes and are only noted in the debug log. Requests are not queued - the next successful request publishes the latest forecast for the current position. Published values expire after one hour (meta `timeout`), so outdated forecasts are not shown as current.
|
|
35
|
+
|
|
36
|
+
### Logging
|
|
37
|
+
Enable *Debug log* in the plugin configuration (debug namespace `openmeteo-signalk`) for a readable summary in the server log: the configured models and what is published on start, each received forecast with the number of values per model and the time of the next update, and connectivity problems with retry and recovery. Request URLs and the API key are never logged.
|
|
38
|
+
|
|
39
|
+
The plugin publishes, depending on the selected measurements:
|
|
40
|
+
|
|
41
|
+
| Path | Content |
|
|
42
|
+
|---|---|
|
|
43
|
+
| `environment.forecast.time` | time the forecast values are valid for |
|
|
44
|
+
| `environment.forecast.*` | forecast for the full hour `<offset>` hours ahead, e.g. `temperature`, `relativeHumidity`, `pressure`, `wind.*`, `precipitation.*`, `weather.*`, `description` |
|
|
45
|
+
| `environment.forecast.temperature.minimum/maximum` | over the forecast horizon |
|
|
46
|
+
| `environment.forecast.precipitation.accumulated` | over the forecast horizon |
|
|
47
|
+
| `environment.forecast.today.*` | today's (local day) min / max temperature, humidity and pressure, rain, snow, precipitation probability, maximum gusts and weather (optional) |
|
|
48
|
+
| `environment.forecast.waves.*`, `current.*`, `water.temperature` | marine forecast at `<offset>` |
|
|
49
|
+
| `environment.outside.*` | current conditions (optional) |
|
|
50
|
+
| `environment.sunlight.times.sunrise/sunset` | together with current conditions |
|
|
51
|
+
|
|
52
|
+
All values follow the SignalK units (K, Pa, ratio, m/s, rad, m) - precipitation is published in mm/h (mm for sums), as in the OpenWeather plugin. Meta data incl. units, description and a timeout is published at start.
|
|
53
|
+
|
|
54
|
+
### Forecast series endpoint
|
|
55
|
+
`GET /plugins/openmeteo-signalk/forecast?measure=pressure&hours=3&resolution=15m` returns the values of one measurement from now on - eg. for the forecast trace of the barograph app:
|
|
56
|
+
|
|
57
|
+
| Parameter | Values |
|
|
58
|
+
|---|---|
|
|
59
|
+
| `measure` | path below `environment.forecast`, eg. `pressure`, `temperature`, `wind.speed`, `wind.gust`, `precipitation.rain` (all numeric measurements, whether selected for publishing or not) |
|
|
60
|
+
| `hours` | 1-48 hours ahead, default 3 |
|
|
61
|
+
| `resolution` | `15m` (native for DWD ICON-D2 and NOAA HRRR regions, interpolated from hourly data elsewhere) or `1h`, default `15m` |
|
|
62
|
+
|
|
63
|
+
The series always applies to the vessel position, station elevation and first model of the running plugin; the response names the `$source` of the published values (eg. to select the past forecasts in a history), units and time step, values are `[time in ms, value]` in SignalK units. Clients that need other positions or models use the Open-Meteo API directly. Open-Meteo responses are cached for 15 minutes, so several viewers share one request. The endpoint is described under *Documentation → OpenAPI* of the server; it is readable by every logged-in user on SignalK Server 2.31 and later, by administrators only on earlier versions.
|
|
64
|
+
|
|
65
|
+
### Sources
|
|
66
|
+
Values are published with the `$source` `openmeteo-signalk.<model>` (marine data: `openmeteo-signalk.marine`), so the model a value is based on is always visible. With a second model both models publish on the same paths, each with its own `$source` (e.g. `openmeteo-signalk.icon_seamless` and `openmeteo-signalk.ecmwf_ifs025`). A model only publishes the values it provides - e.g. ECMWF provides no visibility.
|
|
67
|
+
|
|
68
|
+
On servers with source priority groups (*Data → Priorities*) the plugin ranks both models as group `openmeteo-signalk` on every start: consumers receive the first model, the second one fills only the paths the first does not provide. The group is kept in memory and saved only when priorities are saved in the admin UI; the configured model order always wins on the next start. Models ranked by the user in another group are left untouched.
|
|
69
|
+
|
|
70
|
+
Other plugins publishing the same paths more often than hourly (e.g. the OpenWeather plugin) take over a path shortly after each hourly update - priorities fail over after a few seconds without data. Disable that source for the shared paths in *Data → Priorities*, or do not run both plugins for the same paths.
|
|
71
|
+
|
|
72
|
+
### Weather codes
|
|
73
|
+
`weather.code` is a [WMO weather interpretation code](https://open-meteo.com/en/docs#weather_variable_documentation). `weather`, `description` and `weather.icon` are derived from it following the conventions of the OpenWeather plugin (e.g. `Clouds`, `overcast`, `04d`).
|
|
74
|
+
|
|
75
|
+
## Attribution
|
|
76
|
+
Weather data by [Open-Meteo.com](https://open-meteo.com/), licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
|
|
77
|
+
|
|
78
|
+
## Release Notes
|
|
79
|
+
See [Changelog](CHANGELOG.md).
|