You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-33Lines changed: 37 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,7 @@ This package can be installed from pip:
30
30
31
31
`pip install pye3dc`
32
32
33
-
## Local Connection
34
-
35
-
### Configuration
33
+
## Configuration
36
34
37
35
There is a great variety of E3/DC implementation configurations, that can't automatically be detected. For example the `index` of the root power meter can be either `0` or `6`, depending how the system was installed. Additional power meter can have an ID of `1-4` and there might be also multiple inverter.
38
36
This library assumes, that there is one inverter installed and the root power meter has an index of `6` for S10 mini and `0` for other systems.
@@ -64,7 +62,9 @@ For any other configurations, there is an optional `configuration` object that c
64
62
65
63
> Note: Not all options need to be configured.
66
64
67
-
### Usage
65
+
## Usage
66
+
67
+
### Local Connection
68
68
69
69
An example script using the library is the following:
# connect to the portal and poll the status. This might raise an exception in case of failed login. This operation is performed with Ajax
104
+
print(e3dc_obj.poll(keepAlive=True))
105
+
print(e3dc_obj.get_pvi_data(keepAlive=True))
106
+
e3dc_obj.disconnect()
86
107
```
87
108
88
-
###poll() return values
109
+
##Example: poll() return values
89
110
90
111
Poll returns a dictionary like the following:
91
112
@@ -108,7 +129,7 @@ Poll returns a dictionary like the following:
108
129
}
109
130
```
110
131
111
-
###Available methods
132
+
## Available methods
112
133
113
134
-`poll()`
114
135
-`get_system_info()`
@@ -117,10 +138,13 @@ Poll returns a dictionary like the following:
117
138
-`get_idle_periods()`
118
139
-`set_idle_periods()`
119
140
-`get_db_data()`
141
+
-`get_batteries()`
120
142
-`get_battery_data()`
121
143
-`get_batteries_data()`
144
+
-`get_pvis()`
122
145
-`get_pvi_data()`
123
146
-`get_pvis_data()`
147
+
-`get_powermeters()`
124
148
-`get_powermeter_data()`
125
149
-`get_powermeters_data()`
126
150
-`get_power_settings()`
@@ -130,34 +154,12 @@ Poll returns a dictionary like the following:
130
154
131
155
See the full documentation on [ReadTheDocs](https://python-e3dc.readthedocs.io/en/latest/)
132
156
133
-
###Note: The RSCP interface
157
+
## Note: The RSCP interface
134
158
135
159
The communication to an E3/DC system has to be implemented via a rather complicated protocol, called by E3/DC RSCP. This protocol is binary and based on websockets. The documentation provided by E3/DC is limited and outdated. It can be found in the E3/DC download portal.
136
160
137
161
If keepAlive is false, the websocket connection is closed after the command. This makes sense because these requests are not meant to be made as often as the status requests, however, if keepAlive is True, the connection is left open and kept alive in the background in a separate thread.
138
162
139
-
## Web connection
140
-
141
-
### Usage
142
-
143
-
An example script using the library is the following:
0 commit comments