-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCWeatherTraits.py
49 lines (33 loc) · 1.15 KB
/
CWeatherTraits.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
#!/usr/bin/python
## This driver is based is based on reverse engineering of HeavyWeather 2800 v 1.54
## All copyright goes to La Crosse Technology (c) 2008
## Python port by Eddi De Pieri <[email protected]>
## Use this software as your own risk.
## Me and La Crosse Technology is not responsable for any damage using this software
class CWeatherTraits(object):
windDirMap = { 0:"N", 1:"NNE", 2:"NE", 3:"ENE", 4:"E", 5:"ESE", 6:"SE", 7:"SSE",
8:"S", 9:"SSW", 10:"SW", 11:"WSW", 12:"W", 13:"WNW", 14:"NW", 15:"NWN", 16:"err", 17:"inv" }
forecastMap = { 0:"Rainy(Bad)", 1:"Cloudy(Neutral)", 2:"Sunny(Good)", 3:"Error" }
trends = { 0:"Stable(Neutral)", 1:"Rising(Up)", 2:"Falling(Down)", 3:"Error" }
def TemperatureNP(self):
return 81.099998
def TemperatureOFL(self):
return 136.0
def PressureNP(self):
return 10101010.0
def PressureOFL(self):
return 16666.5
def HumidityNP(self):
return 110.0
def HumidityOFL(self):
return 121.0
def RainNP(self):
return -0.2
def RainOFL(self):
return 16666.664
def WindNP(self):
return 51.0
def WindOFL(self):
return 51.099998
def TemperatureOffset(self):
return 40.0