From 6f897d6eb8b894386e2131aaf74c9a69cbe55c5a Mon Sep 17 00:00:00 2001 From: Johan Stokking Date: Mon, 29 Aug 2022 16:04:11 +0200 Subject: [PATCH] Use percentage for relative humidity --- lib/payload.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/payload.json b/lib/payload.json index b156c93f74..7a8ad7010d 100644 --- a/lib/payload.json +++ b/lib/payload.json @@ -20,6 +20,12 @@ "description": "Speed (m/s)", "minimum": 0 }, + "percentage": { + "type": "number", + "description": "Percentage (%)", + "minimum": 0, + "maximum": 100 + }, "measurement": { "type": "object", "properties": { @@ -36,10 +42,8 @@ "$ref": "#/definitions/temperature" }, "relativeHumidity": { - "type": "number", - "description": "Relative humidity (fraction)", - "minimum": 0, - "maximum": 1 + "description": "Relative humidity (%)", + "$ref": "#/definitions/percentage" }, "pressure": { "type": "number",