forked from simcop2387/weewx-bmp3xx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.py
30 lines (27 loc) · 1012 Bytes
/
install.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
# installer for bmp3xx extension
# Based on the Bme280wx extension by WJCarpenter
from setup import ExtensionInstaller
def loader():
return Bmp3xxInstaller()
class Bmp3xxInstaller(ExtensionInstaller):
def __init__(self):
super(Bmp3xxInstaller, self).__init__(
version="1.0",
name='bmp3xx',
description='Add bmp3xx sensor readings to loop packet data',
author="Simcop2387",
author_email="[email protected]",
data_services='user.bmp3xx.Bmp3xx',
config={
'Bmp3xx': {
'i2c_port': '1',
'i2c_address': '0x76',
'usUnits': 'US',
'temperatureKeys': 'inTemp',
'temperature_must_have': '',
'pressureKeys': 'pressure',
'pressure_must_have': 'outTemp',
}
},
files=[('bin/user', ['bin/user/bmp3xx.py'])]
)