-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.py
36 lines (30 loc) · 1.03 KB
/
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
32
33
34
35
36
from setup import ExtensionInstaller
def loader():
return WLLDriverInstaller()
class WLLDriverInstaller(ExtensionInstaller):
def __init__(self):
super(WLLDriverInstaller, self).__init__(
version='0.4',
name='WLLDriver',
description='Request data to WLL and lost data from Weatherlink.com',
author="Drealine",
config={
'WLLDriver': {
'driver': 'user.WLLDriver',
'max_tries': 10,
'retry_wait': 5,
'poll_interval': 10,
'realtime_enable': 0,
'hostname': 'change_me',
'time_out': 10,
'device_id': 'iss:1',
'wl_archive_enable': 0,
},
'Accumulator': {
'rainRate': {
'extractor': 'max'
}
},
},
files=[('bin/user', ['bin/user/WLLDriver.py'])]
)