-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathasa.environment.currentairquality.json
More file actions
93 lines (93 loc) · 2.82 KB
/
asa.environment.currentairquality.json
File metadata and controls
93 lines (93 loc) · 2.82 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"id": "http://openinterconnect.org/asamapping/schemas/asa.environment.currentairquality.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2017 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Current Air Quality",
"definitions": {
"asa.environment.currentairquality": {
"type": "object",
"properties": {
"contaminanttype": {
"type": "integer",
"description": "The contaminant type",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.airquality",
"x-to-ocf": [
"valuetype = Measured",
"contaminanttypearray = [CH2O,CO2,CO,PM2_5,PM10,VOC]",
"ocf.contaminanttype = contaminanttypearray[contaminanttype]"
],
"x-from-ocf": [
"contaminanttype = indexof contaminanttypearray[ocf.contaminanttype]"
]
}
},
"currentvalue": {
"type": "number",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.airquality",
"x-to-ocf": [
"contaminantvalue = currentvalue"
],
"x-from-ocf": [
"currentvalue = contaminantvalue"
]
}
},
"minvalue": {
"type": "number",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.airquality",
"x-to-ocf": [
"range[0] = minvalue"
],
"x-from-ocf": [
"minvalue = range[0]"
]
}
},
"maxvalue": {
"type": "number",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.airquality",
"x-to-ocf": [
"range[1] = maxvalue"
],
"x-from-ocf": [
"maxvalue = range[1]"
]
}
},
"precision": {
"type": "number",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.airquality",
"x-to-ocf": [
"ocf.precision = precision"
],
"x-from-ocf": [
"precision = ocf.precision"
]
}
},
"updatemintime": {
"type": "integer",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.value.conditional",
"x-to-ocf": [
"ocf.minnotifyperiod = updatemintime"
],
"x-from-ocf": [
"updatemintime = ocf.minnotifyperiod"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/asa.environment.currentairquality"}
],
"required": ["contaminanttype","currentvalue","minvalue","maxvalue","precision","updatemintime"]
}