-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathinstall.py
executable file
·44 lines (41 loc) · 1.59 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
35
36
37
38
39
40
41
42
43
44
# installer for klimalogg
# Copyright 2015 Luc Heijst
from weecfg.extension import ExtensionInstaller
def loader():
return KlimaLoggInstaller()
class KlimaLoggInstaller(ExtensionInstaller):
def __init__(self):
super(KlimaLoggInstaller, self).__init__(
version="1.4.2",
name='klimalogg',
description='Collect and display KlimaLogg Pro sensor data',
author="Luc Heijst",
author_email="[email protected]",
config={
'StdReport': {
'data_binding': 'kl_binding',
'kl': {
'HTML_ROOT': 'kl',
'skin': 'kl'}},
'StdArchive': {
'data_binding': 'kl_binding'},
'DataBindings': {
'kl_binding': {
'manager': 'weewx.wxmanager.WXDaySummaryManager',
'schema': 'user.kl.schema',
'table_name': 'archive',
'database': 'kl_sqlite'}},
'Databases': {
'kl_sqlite': {
'database_name': 'weewx-kl.sdb',
'database_type': 'SQLite'},
'kl_mysql': {
'database_name': 'weewx-kl',
'database_type': 'MySQL'}}},
files=[('bin/user',
['bin/user/kl.py']),
('skins/kl',
['skins/kl/skin.conf',
'skins/kl/index.html.tmpl']),
]
)