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 CHANGED
@@ -1,15 +1,18 @@
1
- # Change Log
2
-
3
- ## [0.1]
4
- - Initial Release.
5
- - Forecast for the full hour `<offset>` ahead from a selectable Open-Meteo weather model, published with `$source` `openmeteo-signalk.<model>`.
6
- - 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).
7
- - Optional today's forecast (min / max temperature, humidity, pressure, precipitation, gusts, weather) on `environment.forecast.today.*`.
8
- - Hourly refresh, optional in-between refresh after a configurable distance (nm).
9
- - Resilient to long offline periods: single error report, back-off up to 15 min, no request backlog.
10
- - Readable debug log: configuration summary, forecast received with next update, connectivity and recovery - no request URLs or API keys.
11
- - Measurement groups on par with the OpenWeather and SquidSailing plugins, incl. storm indices, snow depth and marine data (waves, current, water temperature).
12
- - Optional current conditions on `environment.outside.*`.
13
- - 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.
14
- - SignalK Plugin CI and automated tests.
15
- - Plugin logo, shown in the App Store of the SignalK server (`signalk.appIcon`).
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
- ## Install & Use
5
- Install the plugin through the SignalK App Store. After installation 'Activate' it through the SignalK Plugin Config interface and select:
6
- - **Weather model** (required) - `best_match` lets Open-Meteo combine the most suitable models for your location, or pick a specific model
7
- - **Second weather model** (optional) - published in parallel on the same paths with its own `$source` (see [Sources](#sources))
8
- - **Forecast offset** - the forecast is published for the full hour `<offset>` hours ahead (default 1)
9
- - **Forecast horizon** - hours ahead used for minimum / maximum / accumulated values (default 24)
10
- - **Refresh distance** (optional, nm) - refresh in between when the vessel moved this distance since the last update; leave empty for the hourly refresh only
11
- - **Today's forecast** - publish today's values on `environment.forecast.today.*` (all or nothing, default on)
12
- - **Measurements** - groups of values to publish:
13
- - Temperature at 2 m, incl. apparent temperature and dew point
14
- - Relative humidity at 2 m
15
- - Atmospheric pressure at station elevation
16
- - Wind at 10 m incl. gusts
17
- - Precipitation - probability, rain, snow, accumulated
18
- - Weather condition - WMO code, description and icon
19
- - Cloud cover, visibility and UV index
20
- - Convective potential energy and lifted index
21
- - Snow depth
22
- - Waves, ocean current and water temperature (Open-Meteo Marine API)
23
- - **Current conditions** - optionally publish on `environment.outside.*`; turn this on only if no other sensors (e.g. BME280, RuuviTag) provide outside conditions.
24
-
25
- ### API key
26
- 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.
27
-
28
- ## Forecast Data
29
- 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.
30
-
31
- ### Offline operation
32
- 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.
33
-
34
- ### Logging
35
- 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.
36
-
37
- The plugin publishes, depending on the selected measurements:
38
-
39
- | Path | Content |
40
- |---|---|
41
- | `environment.forecast.time` | time the forecast values are valid for |
42
- | `environment.forecast.*` | forecast for the full hour `<offset>` hours ahead, e.g. `temperature`, `relativeHumidity`, `pressure`, `wind.*`, `precipitation.*`, `weather.*`, `description` |
43
- | `environment.forecast.temperature.minimum/maximum` | over the forecast horizon |
44
- | `environment.forecast.precipitation.accumulated` | over the forecast horizon |
45
- | `environment.forecast.today.*` | today's (local day) min / max temperature, humidity and pressure, rain, snow, precipitation probability, maximum gusts and weather (optional) |
46
- | `environment.forecast.waves.*`, `current.*`, `water.temperature` | marine forecast at `<offset>` |
47
- | `environment.outside.*` | current conditions (optional) |
48
- | `environment.sunlight.times.sunrise/sunset` | together with current conditions |
49
-
50
- 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.
51
-
52
- ### Forecast series endpoint
53
- `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:
54
-
55
- | Parameter | Values |
56
- |---|---|
57
- | `measure` | path below `environment.forecast`, eg. `pressure`, `temperature`, `wind.speed`, `wind.gust`, `precipitation.rain` (all numeric measurements, whether selected for publishing or not) |
58
- | `hours` | 1-48 hours ahead, default 3 |
59
- | `resolution` | `15m` (native for DWD ICON-D2 and NOAA HRRR regions, interpolated from hourly data elsewhere) or `1h`, default `15m` |
60
-
61
- 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.
62
-
63
- ### Sources
64
- 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.
65
-
66
- 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.
67
-
68
- 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.
69
-
70
- ### Weather codes
71
- `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`).
72
-
73
- ## Attribution
74
- Weather data by [Open-Meteo.com](https://open-meteo.com/), licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
75
-
76
- ## Release Notes
77
- See [Changelog](CHANGELOG.md).
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).