-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsensorData.schema.json
93 lines (93 loc) · 2.86 KB
/
sensorData.schema.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://connectproject.github.io/schemas/sensorData.schema.json",
"title": "Sensor Data",
"description": "Sending any sensor data to the Connect platform. Each sensor object contains the timestamp, the type of sensor, output of the sensor, and the unit of the sensor data.",
"type": "object",
"properties": {
"applicationId": {
"type": "string",
"description": "Unique Connect identifier of the app originating the event. Read-only (added by Connect)"
},
"userId": {
"type": "string",
"description": "Unique Connect identifier of the user originating the event. Read-only (added by Connect)"
},
"sessionId": {
"type": "string",
"description": "Identifier of the session originating the event"
},
"sensor": {
"type": "array",
"items": {
"type": "object",
"properties": {
"timeStamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the sensor data was recorded. Format: date-time (ISO 8601)"
},
"location": {
"type": "integer",
"description": "Unique identifier given to the location of the sensor by user"
},
"sensorType": {
"type": "string",
"enum": [
"other",
"test",
"temperature",
"humidity",
"pressure",
"light",
"acceleration",
"gyro",
"magneticField",
"airQuality",
"noiseLevel",
"vibration",
"proximity",
"ultrasound",
"co2",
"o3",
"voc",
"heartRate",
"bloodPressure",
"spo2",
"ecg",
"emg",
"hallEffect"
],
"description": "Type of sensor data"
},
"value": {
"type": "number",
"description": "Value of the sensor data"
},
"unit": {
"type": "string",
"enum": [
"other", "test", "celsius", "fahrenheit", "kelvin", "percentage",
"pascal", "lux", "m/s^2", "rad/s", "tesla", "ppm", "dB",
"Hz", "cm", "mm", "inch", "ft", "m", "km", "mile", "yard",
"nautical mile", "knot", "km/h", "m/s", "mph", "ft/s",
"g", "rad/s^2", "ppb", "bpm", "mmHg", "percent", "mV", "ms"
],
"description": "Unit of the sensor data"
}
},
"required": [
"timeStamp",
"sensorType",
"value"
],
"additionalProperties": false
}
}
},
"required": [
"sessionId",
"sensor"
],
"additionalProperties": false
}