-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
63 lines (58 loc) · 1.67 KB
/
config.py
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
sensorDict = {
"iot/sensor/temperature":{
"topic":"iot/sensor/temperature",
"value":40,
"lower_bound":22,
"upper_bound":25
},
"iot/sensor/airquality":{
"topic":"iot/sensor/airquality",
"value":10,
"lower_bound":300,
"upper_bound":400
},
"iot/sensor/presence":{
"topic":"iot/sensor/presence",
"value":1,
"lower_bound":0,
"upper_bound":1
},
"iot/sensor/luminosity":{
"topic":"iot/sensor/luminosity",
"value":100,
"lower_bound":500,
"upper_bound":1000
},
"iot/actuator/heater":{
"topic":"iot/actuator/heater",
"value":"heater-off"
},
"iot/actuator/light":{
"topic":"iot/actuator/light",
"value":"light-off"
},
"iot/actuator/window":{
"topic":"iot/actuator/window",
"value":"open-window"
}
}
db_topics = ['iot/sensor/temperature',
'iot/sensor/airquality',
'iot/sensor/presence',
"iot/sensor/luminosity"]
topics = ['iot/sensor/temperature',
'iot/sensor/airquality',
'iot/sensor/presence',
'iot/sensor/luminosity',
'iot/actuator/heater',
'iot/actuator/light',
'iot/actuator/window']
sensor_topics = ['iot/sensor/temperature',
'iot/sensor/airquality',
'iot/sensor/presence',
'iot/sensor/luminosity']
actuator_topics = ['iot/actuator/heater',
'iot/actuator/light',
'iot/actuator/window']
planning_topics = ['iot/aiplanning/problem',
'iot/aiplanning/solution']