-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathonem2m.m.relativeHumidity.json
More file actions
44 lines (44 loc) · 1.5 KB
/
onem2m.m.relativeHumidity.json
File metadata and controls
44 lines (44 loc) · 1.5 KB
1
2
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
44
{
"id": "http://openinterconnect.org/onem2mmapping/schemas/onem2m.m.relativeHumidity.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Relative Humidity",
"definitions": {
"onem2m.m.relativeHumidity": {
"type": "object",
"properties": {
"relativeHumidity": {
"type": "number",
"description": "The measurement of the relative humidity value; the unit of measure is percentage",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.humidity",
"x-to-ocf": [
"oic.r.humidity.humidity = int(relativeHumidity)"
],
"x-from-ocf": [
"relativeHumidity = float(oic.r.humidity.humidity)"
]
}
},
"desiredHumidity": {
"type": "number",
"description": "Desired value for humidity. This data point indicates the desired humidity",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.humidity",
"x-to-ocf": [
"oic.r.humidity.desiredhumidity = int(desiredHumidity)"
],
"x-from-ocf": [
"desiredHumidity = float(oic.r.humidity.desiredhumidity)"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/onem2m.m.relativeHumidity"}
],
"required": [ "relativeHumidity" ]
}