Files
weewx/examples/xstats/install.py
Tom Keffer 5595f8e4a8 Import ExtensionInstaller from weecfg.extension
...instead of setup
2019-02-04 08:51:59 -08:00

28 lines
850 B
Python

# installer for xstats
# Copyright 2014 Matthew Wall
from weecfg.extension import ExtensionInstaller
def loader():
return XStatsInstaller()
class XStatsInstaller(ExtensionInstaller):
def __init__(self):
super(XStatsInstaller, self).__init__(
version="0.2",
name='xstats',
description='Extended statistics for weewx reports',
author="Matthew Wall",
author_email="mwall@users.sourceforge.net",
config={
'StdReport': {
'xstats': {
'skin': 'xstats',
'HTML_ROOT': 'xstats'}}},
files=[('bin/user', ['bin/user/xstats.py']),
('skins/xstats', ['skins/xstats/skin.conf',
'skins/xstats/index.html.tmpl'])]
)