-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.py
52 lines (49 loc) · 1.78 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# installer SQLupload
# Copyright 2024 Johanna Roedenbeck
# Distributed under the terms of the GNU Public License (GPLv3)
from weecfg.extension import ExtensionInstaller
def loader():
return SQLuploadInstaller()
class SQLuploadInstaller(ExtensionInstaller):
def __init__(self):
super(SQLuploadInstaller, self).__init__(
version="0.4",
name='SQLupload',
description='upload to database',
author="Johanna Roedenbeck",
author_email="",
config={
'StdReport':{
'SQLupload':{
'enable':'false',
'skin':'SQLupload',
'host':'replace_me',
'username':'replace_me',
'password':'replace_me',
'database_name':'replace_me',
'table_name':'replace_me'
}
},
'StdRESTful': {
'SQLupload': {
'enable':'false',
'binding':['LOOP','ARCHIVE'],
'unit_system':'METRIC',
'host':'replace_me',
'username':'replace_me',
'password':'replace_me',
'database_name':'replace_me',
'table_name':'replace_me'
}
},
'Engine': {
'Services': {
'restful_services':'user.sqlupload.SQLRESTful'
}
}
},
files=[
('bin/user', ['bin/user/sqlupload.py']),
('skins/SQLupload', ['skins/SQLupload/skin.conf']),
]
)