-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver-actions-schema.txt
44 lines (39 loc) · 1.01 KB
/
server-actions-schema.txt
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
Sensor Data -
Sensor Data of spefic sensor (GET, POST, PUT) -
Endpoint - ~/<pid>/block/<block-id>/sensor/<sensor-id>/
data -
{
"sensor_id": "sensor_id",
"value": "value",
"timestamp": "timestamp",
"datatype": "Temp, Humidity, etc."
"Unit": "C, %, etc." (Optional)
}
Sensor Data of All sensors in a block (GET, POST, PUT) -
Endpoint - ~/<pid>/block/<block-id>/sensor/
data - [
{
"sensor_id": "sensor_id",
"value": "value",
so on...
},
]
Actuator Data -
Actuator Data of spefic actuator (GET, POST, PUT) -
Endpoint - ~/<pid>/block/<block-id>/actuator/<actuator-id>/
data -
{
"actuator_id": "actuator_id",
"Status": "on.off",
"mode": "Auto/Manual",
"datatype": "Data that is affected, Temp, Humidity, etc.",
}
Actuator Data of All actuators in a block (GET, POST) -
Endpoint - ~/<pid>/block/<block-id>/actuator/
data - [
{
"actuator_id": "actuator_id",
"Status": "on.off",
more..
},
]