-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.py
More file actions
26 lines (23 loc) · 809 Bytes
/
install.py
File metadata and controls
26 lines (23 loc) · 809 Bytes
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
# Installer for BME280 weewx service
from weecfg.extension import ExtensionInstaller
def loader():
return BME280_Installer()
class BME280_Installer(ExtensionInstaller):
def __init__(self):
super(BME280_Installer, self).__init__(
version='0.1',
name='BME280',
description='Collect data from BME280 sensor',
author='StormchaserTech',
data_services='user.BME280.BME280',
config={
'BME280': {
'i2c_port': '1',
'i2c_address': '0x76',
'tempKey': 'inTemp',
'humidKey': 'inHumidity',
'pressureKey': 'pressure'
}
},
files=[('bin/user', ['bin/user/BME280.py'])]
)