forked from matthewwall/weewx-cmon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.py
42 lines (39 loc) · 1.56 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
# installer for cmon
# Copyright 2014 Matthew Wall
# Distributed under the terms of the GNU Public License (GPLv3)
from weecfg.extension import ExtensionInstaller
def loader():
return ComputerMonitorInstaller()
class ComputerMonitorInstaller(ExtensionInstaller):
def __init__(self):
super(ComputerMonitorInstaller, self).__init__(
version="0.20",
name='cmon',
description='Collect and display computer health indicators.',
author="Matthew Wall",
author_email="[email protected]",
process_services='user.cmon.ComputerMonitor',
config={
'ComputerMonitor': {
'data_binding': 'cmon_binding'},
'DataBindings': {
'cmon_binding': {
'database': 'cmon_sqlite',
'table_name': 'archive',
'manager': 'weewx.manager.DaySummaryManager',
'schema': 'user.cmon.schema'}},
'Databases': {
'cmon_sqlite': {
'database_type': 'SQLite',
'database_name': 'cmon.sdb'}},
'StdReport': {
'cmon': {
'skin': 'cmon',
'HTML_ROOT': 'cmon'}}},
files=[('bin/user',
['bin/user/cmon.py']),
('skins/cmon',
['skins/cmon/skin.conf',
'skins/cmon/index.html.tmpl']),
]
)