-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.py
25 lines (22 loc) · 923 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
# installer for meteotemplate extension
# Copyright 2016-2020 Matthew Wall
# Distributed under terms of the GPLv3
from weecfg.extension import ExtensionInstaller
def loader():
return MeteotemplateInstaller()
class MeteotemplateInstaller(ExtensionInstaller):
def __init__(self):
super(MeteotemplateInstaller, self).__init__(
version="0.10",
name='meteotemplate',
description='Upload weather data to Meteotemplate.',
author="Matthew Wall",
author_email="[email protected]",
restful_services='user.meteotemplate.Meteotemplate',
config={
'StdRESTful': {
'Meteotemplate': {
'server_url': 'INSERT_SERVER_URL_HERE',
'password': 'INSERT_PASSWORD_HERE'}}},
files=[('bin/user', ['bin/user/meteotemplate.py'])]
)