From 7dc6b1528a5b6b77f40c194c52b4975fa4803950 Mon Sep 17 00:00:00 2001 From: panaaj <38519157+panaaj@users.noreply.github.com> Date: Sun, 17 Mar 2024 17:08:05 +1030 Subject: [PATCH 1/4] add meteo schema --- schemas/meteo.json | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 schemas/meteo.json diff --git a/schemas/meteo.json b/schemas/meteo.json new file mode 100644 index 00000000..a55b0a14 --- /dev/null +++ b/schemas/meteo.json @@ -0,0 +1,43 @@ +{ + "type": "object", + "$schema": "http://json-schema.org/draft-04/schema#", + "id": "https://signalk.org/specification/1.5.1/schemas/meteo.json#", + "description": "An object describing a weather station. It should be an object in meteo, named using MMSI or a UUID", + "title": "Weather Stations", + "anyOf": [ + { + "required": [ + "mmsi" + ] + }, + { + "required": [ + "url" + ] + }, + { + "required": [ + "uuid" + ] + } + ], + "properties": { + "url": { + "description": "URL based identity of the weather station, if available.", + "$ref": "definitions.json#/definitions/url" + }, + "mmsi": { + "description": "MMSI number of the weather station, if available.", + "$ref": "definitions.json#/definitions/sarMmsi" + }, + "uuid": { + "description": "A unique Signal K flavoured maritime resource identifier, assigned by the server.", + "$ref": "definitions.json#/definitions/uuid", + "example": "urn:mrn:signalk:uuid:b7590868-1d62-47d9-989c-32321b349fb9" + }, + "environment": { + "description": "Environment data.", + "$ref": "groups/environment.json#" + } + } +} \ No newline at end of file From 4138ef155179d97d68031618c99152dc38fe945f Mon Sep 17 00:00:00 2001 From: panaaj <38519157+panaaj@users.noreply.github.com> Date: Sun, 17 Mar 2024 17:54:06 +1030 Subject: [PATCH 2/4] add attributes for weather station observation / forecasts. --- schemas/groups/environment.json | 131 ++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) diff --git a/schemas/groups/environment.json b/schemas/groups/environment.json index 70fb38e9..2d6b2306 100644 --- a/schemas/groups/environment.json +++ b/schemas/groups/environment.json @@ -66,6 +66,11 @@ "$ref": "../definitions.json#/definitions/numberValue", "units": "K" }, + "feelsLikeTemperature": { + "description": "Current outside feels like temperature", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "K" + }, "apparentWindChillTemperature": { "description": "Current outside apparent wind chill temperature", "$ref": "../definitions.json#/definitions/numberValue", @@ -86,6 +91,15 @@ "$ref": "../definitions.json#/definitions/numberValue", "units": "Pa" }, + "pressureTendency": { + "description": "Integer value indicating barometric pressure value tendency e.g. 0 = steady, etc.", + "$ref": "../definitions.json#/definitions/numberValue" + }, + "pressureTendencyType": { + "description": "Description for the value of pressureTendency e.g. steady, increasing, decreasing.", + "type": "string", + "enum": ["steady", "increasing", "decreasing"] + }, "humidity": { "description": "DEPRECATED: use relativeHumidity", "$ref": "../definitions.json#/definitions/numberValue", @@ -96,6 +110,11 @@ "$ref": "../definitions.json#/definitions/numberValue", "units": "ratio" }, + "absoluteHumidity": { + "description": "Current outside air absolute humidity", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "ratio" + }, "airDensity": { "description": "Current outside air density", "units": "kg/m3", @@ -105,9 +124,50 @@ "description": "Current outside ambient light flux.", "$ref": "../definitions.json#/definitions/numberValue", "units": "Lux" + }, + "uvIndex" : { + "description": "Level of UV radiation. 1 UVI = 25mW/sqm.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "UVI" + }, + "cloudCover" : { + "description": "Level of cloud clover.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "ratio" + }, + "horizontalVisibility" : { + "description": "Visibility distance at ground level.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "m" + }, + "horizontalVisibilityOverRange" : { + "description": "True if visibilty distance is greater than the range of the measuring equipment.", + "type": "boolean" } + + + } }, + "date" : { + "description": "Date and time of the observation.", + "$ref": "../definitions.json#/definitions/datetimeValue" + }, + "sun": { + "type": "object", + "description": "Times of sun related events.", + "properties": { + "sunrise" : { + "description": "Time at which sun rises at location.", + "$ref": "../definitions.json#/definitions/datetimeValue" + }, + "sunset" : { + "description": "Time at which sun sets at location.", + "$ref": "../definitions.json#/definitions/datetimeValue" + } + } + + }, "inside": { "type": "object", "description": "Environmental conditions inside the vessel's hull", @@ -138,6 +198,62 @@ "description": "Water salinity", "$ref": "../definitions.json#/definitions/numberValue", "units": "ratio" + }, + "level": { + "description": "Water level.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "m" + }, + "levelTendency": { + "description": "Integer value indicating water level tendency e.g. 0 = steady, etc", + "$ref": "../definitions.json#/definitions/numberValue" + }, + "levelTendencyType": { + "description": "Description for the value of levelTendency e.g. steady, increasing, decreasing.", + "type": "string", + "enum": ["steady", "increasing", "decreasing"] + }, + "waves": { + "type": "object", + "description": "Wave conditions of the water that the vessel is sailing in", + "properties": { + "significantHeight": { + "description": "Estimated height of significant waves.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "m" + }, + "period": { + "description": "Estimated wave period.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "ms" + }, + "directon": { + "description": "Estimated wave direction.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "rad" + } + } + }, + "swell": { + "type": "object", + "description": "Swell conditions of the water that the vessel is sailing in", + "properties": { + "significantHeight": { + "description": "Estimated height of swell.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "m" + }, + "period": { + "description": "Estimated swell period.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "ms" + }, + "directon": { + "description": "Estimated swell direction.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "rad" + } + } } } }, @@ -336,6 +452,21 @@ "description": "Apparent wind speed", "$ref": "../definitions.json#/definitions/numberValue", "units": "m/s" + }, + "averageSpeed": { + "description": "Average wind speed.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "m/s" + }, + "gust": { + "description": "Maximum wind gust.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "m/s" + }, + "gustDirectionTrue": { + "description": "Maximum wind gust direction relative to true north.", + "$ref": "../definitions.json#/definitions/numberValue", + "units": "rad" } } }, From b10133ba8eeffb113452d2dea4ad266641d83f0a Mon Sep 17 00:00:00 2001 From: panaaj <38519157+panaaj@users.noreply.github.com> Date: Sun, 17 Mar 2024 18:11:55 +1030 Subject: [PATCH 3/4] add attributes. --- schemas/meteo.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/schemas/meteo.json b/schemas/meteo.json index a55b0a14..ee1595a6 100644 --- a/schemas/meteo.json +++ b/schemas/meteo.json @@ -35,6 +35,15 @@ "$ref": "definitions.json#/definitions/uuid", "example": "urn:mrn:signalk:uuid:b7590868-1d62-47d9-989c-32321b349fb9" }, + "name": { + "type": "string", + "description": "The common name of the weather station.", + "example": "Motu" + }, + "navigation": { + "description": "Navigation data including Position, Course to next WP information, etc.", + "$ref": "groups/navigation.json#" + }, "environment": { "description": "Environment data.", "$ref": "groups/environment.json#" From 5e77432485d36a2a9717833152f465417b3aa6b1 Mon Sep 17 00:00:00 2001 From: panaaj <38519157+panaaj@users.noreply.github.com> Date: Mon, 30 Jun 2025 10:47:52 +0930 Subject: [PATCH 4/4] remove meteo context --- schemas/meteo.json | 52 ---------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 schemas/meteo.json diff --git a/schemas/meteo.json b/schemas/meteo.json deleted file mode 100644 index ee1595a6..00000000 --- a/schemas/meteo.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "type": "object", - "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://signalk.org/specification/1.5.1/schemas/meteo.json#", - "description": "An object describing a weather station. It should be an object in meteo, named using MMSI or a UUID", - "title": "Weather Stations", - "anyOf": [ - { - "required": [ - "mmsi" - ] - }, - { - "required": [ - "url" - ] - }, - { - "required": [ - "uuid" - ] - } - ], - "properties": { - "url": { - "description": "URL based identity of the weather station, if available.", - "$ref": "definitions.json#/definitions/url" - }, - "mmsi": { - "description": "MMSI number of the weather station, if available.", - "$ref": "definitions.json#/definitions/sarMmsi" - }, - "uuid": { - "description": "A unique Signal K flavoured maritime resource identifier, assigned by the server.", - "$ref": "definitions.json#/definitions/uuid", - "example": "urn:mrn:signalk:uuid:b7590868-1d62-47d9-989c-32321b349fb9" - }, - "name": { - "type": "string", - "description": "The common name of the weather station.", - "example": "Motu" - }, - "navigation": { - "description": "Navigation data including Position, Course to next WP information, etc.", - "$ref": "groups/navigation.json#" - }, - "environment": { - "description": "Environment data.", - "$ref": "groups/environment.json#" - } - } -} \ No newline at end of file