Skip to content

Commit

Permalink
Use percentage for relative humidity
Browse files Browse the repository at this point in the history
  • Loading branch information
johanstokking committed Aug 29, 2022
1 parent c2b287f commit 6f897d6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/payload.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
"description": "Speed (m/s)",
"minimum": 0
},
"percentage": {
"type": "number",
"description": "Percentage (%)",
"minimum": 0,
"maximum": 100
},
"measurement": {
"type": "object",
"properties": {
Expand All @@ -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",
Expand Down

0 comments on commit 6f897d6

Please sign in to comment.