-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.py
56 lines (52 loc) · 2 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
53
54
55
56
# installer PV
# Copyright 2021, 2023 Johanna Roedenbeck
# Distributed under the terms of the GNU Public License (GPLv3)
from weecfg.extension import ExtensionInstaller
def loader():
return PVInstaller()
class PVInstaller(ExtensionInstaller):
def __init__(self):
super(PVInstaller, self).__init__(
version="0.7",
name='Photovoltaics',
description='Service to retrieve data from PV system E3/DC',
author="Johanna Roedenbeck",
author_email="",
prep_services='user.photovoltaics.E3dcUnits',
data_services='user.photovoltaics.E3dcService',
config={
'E3DC':{
'S10EPRO':{
'protocol':'RSCP',
'host':'replace_me',
'username':'replace_me',
'password':'replace_me',
'api_key':'replace_me',
'query_interval':' 1 # optional',
'#mqtt_topic':'e3dc/weewx # normally not required'},
'ACTHOR':{
'protocol':'MyPV',
'host':'replace_me',
'#mqtt_topic:':'acthor/weewx # normally not required'},
'MQTT':{
'protocol':'MQTT',
'enable':True,
'topic':'e3dc/weewx'
}
'DataBindings': {
'pv_binding': {
'database':'pv_sqlite',
'table_name':'archive',
'manager':'weewx.manager.DaySummaryManager',
'schema':'user.photovoltaics.schema'
}
}
'Databases': {
'pv_sqlite':{
'database_name':'photovoltaics.sdb',
'database_type':'SQLite'
}
}
},
files=[('bin/user', ['bin/user/photovoltaics.py',]),]
)