-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from teeks99/package-extension
Built into an extension
- Loading branch information
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from setup import ExtensionInstaller | ||
|
||
def loader(): | ||
return JSON_Installer() | ||
|
||
class JSON_Installer(ExtensionInstaller): | ||
def __init__(self): | ||
super(JSON_Installer, self).__init__( | ||
version="1.0", | ||
name='JSON', | ||
description='Add JSON output', | ||
author="Thomas Kent", | ||
author_email="https://github.com/teeks99/weewx-json", | ||
config={ | ||
'StdReport': { | ||
'JSONReport': { | ||
'skin': 'JSON', | ||
'enable': True | ||
} | ||
} | ||
}, | ||
files=[('skins/JSON', [ | ||
'skins/JSON/weewx.json.tmpl', | ||
'skins/JSON/skin.conf' | ||
])] | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[CheetahGenerator] | ||
# This section is used by the generator CheetahGenerator, and specifies | ||
# which files are to be generated from which template. | ||
|
||
# Possible encodings are 'html_entities', 'utf8', or 'strict_ascii' | ||
encoding = utf8 | ||
|
||
[[ToDate]] | ||
template = weewx.json.tmpl | ||
|
||
[Generators] | ||
# The list of generators that are to be run: | ||
generator_list = weewx.cheetahgenerator.CheetahGenerator |