forked from TheThingsNetwork/lorawan-devices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayload.json
156 lines (156 loc) · 4.35 KB
/
payload.json
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schema.thethings.network/devicerepository/1/payload/schema",
"title": "LoRaWAN Device Repository Payload",
"description": "Payload definitions for the LoRaWAN Device Repository",
"definitions": {
"temperature": {
"type": "number",
"description": "Temperature (°C)",
"minimum": -273.15
},
"direction": {
"type": "number",
"description": "Direction (°)",
"minimum": 0,
"exclusiveMaximum": 360
},
"speed": {
"type": "number",
"description": "Speed (m/s)",
"minimum": 0
},
"depth": {
"type": "number",
"description": "Depth from the surface (cm)",
"minimum": 0
},
"pH": {
"type": "number",
"description": "pH level",
"minimum": 0,
"maximum": 14
},
"concentration": {
"type": "number",
"description": "Concentration (ppm)",
"minimum": 0,
"maximum": 1000000
},
"illuminance": {
"type": "number",
"description": "Illuminance (lux)",
"minimum": 0
},
"percentage": {
"type": "number",
"description": "Percentage (%)",
"minimum": 0,
"maximum": 100
},
"measurement": {
"type": "object",
"properties": {
"time": {
"type": "string",
"format": "date-time",
"description": "Date and time of the measurement (RFC3339)"
},
"soil": {
"type": "object",
"properties": {
"depth": {
"description": "Depth of the soil measurement (cm)",
"$ref": "#/definitions/depth"
},
"moisture": {
"description": "Soil moisture (%)",
"$ref": "#/definitions/percentage"
},
"temperature": {
"description": "Soil temperature (°C)",
"$ref": "#/definitions/temperature"
},
"ec": {
"description": "Soil electrical conductivity (dS/m)",
"type": "number",
"minimum": 0,
"maximum": 621
},
"pH": {
"description": "Soil pH level",
"$ref": "#/definitions/pH"
},
"n": {
"description": "Concentration of Nitrogen in the soil (ppm)",
"$ref": "#/definitions/concentration"
},
"p": {
"description": "Concentration of Phosphorus in the soil (ppm)",
"$ref": "#/definitions/concentration"
},
"k": {
"description": "Concentration of Potassium in the soil (ppm)",
"$ref": "#/definitions/concentration"
}
},
"additionalProperties": false
},
"air": {
"type": "object",
"properties": {
"temperature": {
"description": "Air temperature (°C)",
"$ref": "#/definitions/temperature"
},
"relativeHumidity": {
"description": "Relative humidity (%)",
"$ref": "#/definitions/percentage"
},
"pressure": {
"type": "number",
"description": "Atmospheric pressure (hPa)",
"minimum": 900,
"maximum": 1100
},
"co2": {
"description": "Concentration of CO2 in the air (ppm)",
"$ref": "#/definitions/concentration"
},
"lightIntensity": {
"description": "Light intensity (lux)",
"$ref": "#/definitions/illuminance"
}
},
"additionalProperties": false
},
"wind": {
"type": "object",
"properties": {
"speed": {
"description": "Wind speed (m/s)",
"$ref": "#/definitions/speed"
},
"direction": {
"description": "Wind direction (°)",
"$ref": "#/definitions/direction"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"uplinkPayload": {
"type": "array",
"items": {
"$ref": "#/definitions/measurement"
}
}
},
"oneOf": [
{
"$ref": "#/definitions/uplinkPayload"
}
]
}