Subversion Repositories yaws

Rev

Rev 15 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15 Rev 16
Line 1... Line 1...
1
#!/usr/bin/env python3
1
#!/usr/bin/python3
2
# -*- coding: utf-8 -*-
2
# -*- coding: utf-8 -*-
3
#
3
#
4
#  sensors/wind.py
4
#  sensors/wind.py
5
#  
5
#  
6
#  Copyright 2020 Ron Wellsted <ron@wellsted.org.uk>
6
#  Copyright 2020 Ron Wellsted <ron@wellsted.org.uk>
Line 19... Line 19...
19
#  along with this program; if not, write to the Free Software
19
#  along with this program; if not, write to the Free Software
20
#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
#  MA 02110-1301, USA.
21
#  MA 02110-1301, USA.
22
#
22
#
23
#
23
#
-
 
24
from sensors import i2cbus, pcf8574_address
Line 24... Line 25...
24
 
25
 
25
direction = {
26
direction = {
26
     0:None,    1:121.6,  2:182.4,  3:114.0,  4:243.2,  5:129.2,
27
     0:None,    1:121.6,  2:182.4,  3:114.0,  4:243.2,  5:129.2,
27
     6:174.8,   7:167.2,  8:304.0,  9:None,  10:190.0,  11:197.6,
28
     6:174.8,   7:167.2,  8:304.0,  9:None,  10:190.0,  11:197.6,