-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuom.py
104 lines (93 loc) · 2.09 KB
/
uom.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
# Unit of Measure map
#
# Map the editor ID to the ISY UOM number
UOM = {
'I_TEMP_C': 4,
'I_TEMP_F': 17,
'I_HUMIDITY': 51,
'I_MB': 117,
'I_INHG': 23,
'I_TREND': 25,
'I_KPH': 32,
'I_MPH': 48,
'I_DEGREE': 14,
'I_MMHR': 46,
'I_INHR': 24,
'I_MM': 82,
'I_INCHES': 105,
'I_UV': 71,
'I_LUX': 36,
'I_RADIATION': 74,
'I_STRIKES': 56,
'I_KM': 83,
'I_MILE': 116,
'I_MPS' : 49,
}
TEMP_DRVS = {
'main' : 'ST',
'dewpoint' : 'GV0',
'windchill' : 'GV1',
'heatindex' : 'GV2',
'apparent' : 'GV3',
'inside' : 'GV4',
'extra1' : 'GV5',
'extra2' : 'GV6',
'extra3' : 'GV7',
'extra4' : 'GV8',
'extra5' : 'GV9',
'extra6' : 'GV10',
'extra7' : 'GV11',
'extra8' : 'GV12',
'extra9' : 'GV13',
'extra10' : 'GV14',
'max' : 'GV15',
'min' : 'GV16',
'soil' : 'GV17',
}
HUMD_DRVS = {
'main' : 'ST',
'inside' : 'GV0',
'extra1' : 'GV1',
'extra2' : 'GV2',
'extra3' : 'GV3',
'extra4' : 'GV4',
'extra5' : 'GV5',
}
PRES_DRVS = {
'station' : 'ST',
'sealevel' : 'GV0',
'trend' : 'GV1'
}
WIND_DRVS = {
'windspeed' : 'ST',
'winddir' : 'GV0',
'gustspeed' : 'GV1',
'gustdir' : 'GV2',
'lullspeed' : 'GV3',
'avgwindspeed' : 'GV4',
}
RAIN_DRVS = {
'rate' : 'ST',
'hourly' : 'GV0',
'daily' : 'GV1',
'weekly' : 'GV2',
'monthly' : 'GV3',
'yearly' : 'GV4',
'maxrate' : 'GV5',
'yesterday' : 'GV6',
'total' : 'GV7',
}
LITE_DRVS = {
'uv' : 'ST',
'solar_radiation' : 'GV0',
'illuminace' : 'GV1'
}
LITE_EDIT = {
'uv' : 'I_UV',
'solar_radiation' : 'I_RADIATION',
'illuminace' : 'I_LUX'
}
LTNG_DRVS = {
'strikes' : 'ST',
'distance' : 'GV0'
}