forked from bakerkj/weewx-purpleair
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.py
34 lines (31 loc) · 1.27 KB
/
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
31
32
33
34
# Copyright 2018 Ken Baker
from setup import ExtensionInstaller
def loader():
return PurpleAirMonitorInstaller()
class PurpleAirMonitorInstaller(ExtensionInstaller):
def __init__(self):
super(PurpleAirMonitorInstaller, self).__init__(
version="0.1",
name='purpleair',
description='Collect Purple Air air quality data.',
author="Kenneth Baker",
author_email="[email protected]",
process_services='user.purpleair.PurpleAirMonitor',
config={
'PurpleAirMonitor': {
'data_binding': 'purpleair_binding',
'hostname': 'purple-air',
'port': '80'},
'DataBindings': {
'purpleair_binding': {
'database': 'purpleair_sqlite',
'table_name': 'archive',
'manager': 'weewx.manager.DaySummaryManager',
'schema': 'user.purpleair.schema'}},
'Databases': {
'purpleair_sqlite': {
'database_name': 'purpleair.sdb',
'driver': 'weedb.sqlite'}},
},
files=[('bin/user', ['bin/user/purpleair.py']), ]
)