forked from roe-dl/weewx-wns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.py
31 lines (28 loc) · 1021 Bytes
/
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
# installer WNS
# Copyright 2020 Johanna Roedenbeck
# Distributed under the terms of the GNU Public License (GPLv3)
# derived from Windy
from weecfg.extension import ExtensionInstaller
def loader():
return WnsInstaller()
class WnsInstaller(ExtensionInstaller):
def __init__(self):
super(WnsInstaller, self).__init__(
version="0.6",
name='WNS',
description='Upload weather data to WNS.',
author="Johanna Roedenbeck",
author_email="",
restful_services='user.wns.Wns',
config={
'StdRESTful': {
'Wns': {
'enable':'true',
'station': 'replace_me',
'api_key': 'replace_me',
'T5AKT_':'None',
'SOD1D_':'None',
'skip_upload':'false',
'log_url':'false'}}},
files=[('bin/user', ['bin/user/wns.py'])]
)