-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.py
25 lines (22 loc) · 885 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
# $Id: install.py 1799 2019-03-08 11:43:00Z tkeffer $
# installer for WeatherCloud
# Copyright 2014 Matthew Wall
from weecfg.extension import ExtensionInstaller
def loader():
return WeatherCloudInstaller()
class WeatherCloudInstaller(ExtensionInstaller):
def __init__(self):
super(WeatherCloudInstaller, self).__init__(
version="0.12",
name='wcloud',
description='Upload weather data to WeatherCloud.',
author="Matthew Wall",
author_email="[email protected]",
restful_services='user.wcloud.WeatherCloud',
config={
'StdRESTful': {
'WeatherCloud': {
'id': 'INSERT_WEATHERCLOUD_ID',
'key': 'INSERT_WEATHERCLOUD_KEY'}}},
files=[('bin/user', ['bin/user/wcloud.py'])]
)