-
Notifications
You must be signed in to change notification settings - Fork 3
/
dictionary.py
115 lines (112 loc) · 2.93 KB
/
dictionary.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
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
# Sensor type (make sure it's one word - need to fix this later)
sensorType = {'a':'airtemp',
'b':'battery',
'c':'co2',
'd':'door',
'e':'energy',
'f':'',
'g':'pressure',
'h':'humidity',
'i':'id',
'j':'',
'k':'',
'l':'light',
'm':'motion',
'n':'no2',
'o':'co',
'p':'pm',
'q':'',
'r':'rssi',
's':'sound',
't':'temperature',
'u':'uv',
'v':'voc',
'w':'',
'x':'',
'y':'',
'z':'',
}
# Sensor unit
sensorUnit = {'a':'\u00b0C',
'b':'V',
'c':'ppm',
'd':'',
'e':'W',
'f':'',
'g':'inHg',
'h':'%',
'i':'',
'j':'',
'k':'',
'l':'lux',
'm':'',
'n':'ppm',
'o':'ppm',
'p':'ug/cm3',
'q':'',
'r':'dBm',
's':'dB',
't':'\u00b0C',
'u':'mW/cm2',
'v':'ppb',
'w':'',
'x':'',
'y':'',
'z':'',
}
# sensor icon - this is taken from materialdesignicons.com
sensorIcon = {'a':'mdi:weather-windy',
'b':'mdi:battery',
'c':'mdi:blur',
'd':'mdi:glassdoor',
'e':'mdi:flash',
'f':'',
'g':'mdi:weather-rainy',
'h':'mdi:water',
'i':'mdi:information-outline',
'j':'',
'k':'',
'l':'mdi:white-balance-sunny',
'm':'mdi:run',
'n':'mdi:chart-bubble',
'o':'mdi:factory',
'p':'mdi:chart-bubble',
'q':'',
'r':'mdi:signal',
's':'mdi:volume-high',
't':'mdi:thermometer',
'u':'mdi:white-balance-iridescent',
'v':'mdi:google-circles-communities',
'w':'',
'x':'',
'y':'',
'z':'',
}
# sensor full name
sensorName = {'a':'Air stream temperature',
'b':'Battery Voltage',
'c':'CO2 concentration',
'd':'Door status',
'e':'Energy use',
'f':'',
'g':'Barometric Pressure ',
'h':'Relative Humidity',
'i':'Node ID',
'j':'',
'k':'',
'l':'Light Intensity',
'm':'Motion',
'n':'Nitrogen Dioxide concentration',
'o':'Carbon Monoxide concentration',
'p':'PM2.5 concentration',
'q':'',
'r':'RSSI',
's':'Sound Level',
't':'Temperature',
'u':'UV Intensity',
'v':'TVOC concentration',
'w':'',
'x':'',
'y':'',
'z':'',
}