-
Notifications
You must be signed in to change notification settings - Fork 1
/
readme.txt
369 lines (289 loc) · 16.9 KB
/
readme.txt
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
Aurora driver extension
A WeeWX driver for Power One Aurora inverters.
Description
The Aurora driver extension allows WeeWX to interact with a Power One Aurora
inverter to obtain and archive solar PV data from the inverter. The driver
interacts with the inverter over a serial connection using the Power One Aurora
Inverter Series Communications Protocol to query the inverter state. The driver
maps various inverter readings to WeeWX loop packet fields and emits loop
packets at a user configurable rate.
The Aurora driver extension consists of:
- a WeeWX driver for the Power One Aurora inverter
- a custom WeeWX database schema to support the Aurora inverter
Pre-Requisites
The Aurora driver requires:
- WeeWX v4.0.0 or greater, and
- the python-serial package
Installation Instructions
Installation using the wee_extension utility
Note: Symbolic names are used below to refer to some file location on the
WeeWX system. These symbolic names allow a common name to be used to refer to
a directory that may be different from system to system. The following symbolic
names are used below:
- $DOWNLOAD_ROOT. The path to the directory containing the downloaded
Aurora driver extension.
1. Download the latest Aurora driver extension from the Aurora driver releases
page (https://github.com/gjr80/weewx-aurora/releases) into a directory
accessible from the WeeWX machine.
$ wget -P $DOWNLOAD_ROOT https://github.com/gjr80/weewx-aurora/releases/download/v0.7.3/aurora-0.7.3.tar.gz
where $DOWNLOAD_ROOT is the path to the directory where the Aurora driver
extension is to be downloaded.
2. Stop WeeWX if it is running:
$ sudo /etc/init.d/weewx stop
or
$ sudo service weewx stop
3. Install the Aurora driver extension downloaded at step 1 using the
wee_extension utility:
$ wee_extension --install=$DOWNLOAD_ROOT/aurora-0.7.3.tar.gz
This will result in output similar to the following:
Request to install '/var/tmp/aurora-0.7.3.tar.gz'
Extracting from tar archive /var/tmp/aurora-0.7.3.tar.gz
Saving installer file to /home/weewx/bin/user/installer/aurora
Saved configuration dictionary. Backup copy at /home/weewx/weewx.conf.20180128124410
Finished installing extension '/var/tmp/aurora-0.7.3.tar.gz'
4. Select and configure the driver:
$ sudo wee_config --reconfigure
5. Run WeeWX directly (http://weewx.com/docs/usersguide.htm#Running_directly)
and confirm that loop packets and archive records are being generated and the
data is appears valid:
$ sudo weewxd weewx.conf
Note: Depending on the present working directory and your WeeWX
installation type it may be necessary to prefix weewxd and weewx.conf with
appropriate paths.
You should now see something like below with a series of loop packets
(indicated by LOOP: preceding each line) every 10 seconds and archive
records (indicated by REC: preceding each line) every archive interval
seconds:
LOOP: 2018-02-03 15:54:50 AEST (1517637290) boosterTemp:
96.5233505249, bulkdcVoltage: 381.726715088, bulkmidVoltage:
199.653121948, bulkVoltage: 382.354553223, dateTime: 1517637290,
dayEnergy: 8636, energy: 2, gridavgVoltage: 243.444396973, gridCurrent:
2.02972531319, griddcFrequency: 50.0600738525, griddcVoltage:
243.019439697, gridFrequency: 50.0600738525, gridnVoltage:
305.367279053, gridPower: 494.799346924, gridVoltage: 242.946365356,
inverterTemp: 95.6759544373, isoResistance: 6.53649520874, leakCurrent:
0.00441941944882, leakdcCurrent: 0.0, string1Current: 0.758069634438,
string1Power: 253.94921875, string1Voltage: 359.214996338,
string2Current: 0.767736792564, string2Power: 258.066558838,
string2Voltage: 357.547058105, timeDate: 1517637291, usUnits: 1
LOOP: 2018-02-03 15:55:00 AEST (1517637300) boosterTemp:
96.5189491272, bulkdcVoltage: 381.098876953, bulkmidVoltage:
199.653121948, bulkVoltage: 382.354553223, dateTime: 1517637300,
dayEnergy: 8637, energy: 1, gridavgVoltage: 243.432281494,
gridCurrent: 2.02972531319, griddcFrequency: 50.0841407776,
griddcVoltage: 242.313354492, gridFrequency: 50.0831375122,
gridnVoltage: 305.144683838, gridPower: 496.422271729, gridVoltage:
242.982879639, inverterTemp: 95.6770530701, isoResistance:
6.53649520874, leakCurrent: 0.00441941944882, leakdcCurrent: 0.0,
string1Current: 0.757264018059, string1Power: 253.298355103,
string1Voltage: 358.233856201, string2Current: 0.772570431232,
string2Power: 257.640594482, string2Voltage: 359.038391113,
timeDate: 1517637301, usUnits: 1
LOOP: 2018-02-03 15:55:10 AEST (1517637310) boosterTemp:
96.5321601868, bulkdcVoltage: 381.098876953, bulkmidVoltage:
199.025268555, bulkVoltage: 382.354553223, dateTime: 1517637310,
dayEnergy: 8639, energy: 2, gridavgVoltage: 243.395889282, gridCurrent:
2.0580675602, griddcFrequency: 50.1042175293, griddcVoltage:
242.240203857, gridFrequency: 50.1042175293, gridnVoltage:
306.149841309, gridPower: 497.233734131, gridVoltage: 242.970703125,
inverterTemp: 95.6792640686, isoResistance: 6.53649520874, leakCurrent:
0.00441941944882, leakdcCurrent: 0.0, string1Current: 0.757264018059,
string1Power: 255.268432617, string1Voltage: 359.882171631,
string2Current: 0.775792837143, string2Power: 258.421295166,
string2Voltage: 357.488189697, timeDate: 1517637311, usUnits: 1
LOOP: 2018-02-03 15:55:20 AEST (1517637320) boosterTemp:
96.5244491577, bulkdcVoltage: 381.726715088, bulkmidVoltage:
199.653121948, bulkVoltage: 386.749420166, dateTime: 1517637320,
dayEnergy: 8640, energy: 1, gridavgVoltage: 243.347320557,
gridCurrent: 2.0580675602, griddcFrequency: 50.1132545471,
griddcVoltage: 242.873519897, gridFrequency: 50.1122512817,
gridnVoltage: 305.666992188, gridPower: 499.668151855,
gridVoltage: 243.116577148, inverterTemp: 95.6946929932,
isoResistance: 6.53649520874, leakCurrent: 0.00441941944882,
leakdcCurrent: 0.0, string1Current: 0.758069634438, string1Power:
255.205551147, string1Voltage: 360.176513672, string2Current:
0.774987220764, string2Power: 258.839141846, string2Voltage:
357.174224854, timeDate: 1517637321, usUnits: 1
REC: 2018-02-03 15:55:00 AEST (1517637300) boosterTemp:
96.5136605835, bulkdcVoltage: 381.475579834, bulkmidVoltage:
199.52755127, bulkVoltage: 382.982391357, dateTime: 1517637300.0,
dayEnergy: 8634.4, energy: 5.0, gridavgVoltage: 243.495370483,
gridCurrent: 2.02964129448, griddcFrequency: 50.0747131348,
griddcVoltage: 242.812478638, gridFrequency: 50.0753143311,
gridnVoltage: 305.237585449, gridPower: 493.501000977, gridVoltage:
242.841641235, interval: 5, inverterTemp: 95.6761741638, isoResistance:
6.53649520874, leakCurrent: 0.00441941944882, leakdcCurrent: 0.0,
string1Current: 0.755330586433, string1Power: 252.531326294,
string1Voltage: 358.532122803, string2Current: 0.767897939682,
string2Power: 256.399765015, string2Voltage: 359.328808594,
timeDate: 1517637281.0, usUnits: 1
LOOP: 2018-02-03 15:55:30 AEST (1517637330) boosterTemp:
96.5409767151, bulkdcVoltage: 382.354553223, bulkmidVoltage:
199.025268555, bulkVoltage: 382.982391357, dateTime: 1517637330,
dayEnergy: 8641, energy: 1, gridavgVoltage: 243.310913086,
gridCurrent: 2.0580675602, griddcFrequency: 50.1152648926,
griddcVoltage: 242.471786499, gridFrequency: 50.1152648926,
gridnVoltage: 305.666992188, gridPower: 500.479614258, gridVoltage:
242.81262207, inverterTemp: 95.7321769714, isoResistance:
6.53649520874, leakCurrent: 0.00441941944882, leakdcCurrent:
0.00441941944882, string1Current: 0.758875250816, string1Power:
255.55909729, string1Voltage: 358.920654297, string2Current:
0.778209626675, string2Power: 260.399230957, string2Voltage:
358.547821045, timeDate: 1517637331, usUnits: 1
The above indicates that the inverter is being interrogated, valid data
being received and WeeWX is constructing archive records from the
accumulated loop data.
6. If all appears correct when run directly you can stop WeeWX by entering
Ctl-Z in the terminal and you can now start WeeWX as a daemon:
$ sudo /etc/init.d/weewx start
or
$ sudo service weewx start
7. The WeeWX log should be monitored to verify archive records are being
saved.
Manual installation
1. Download the latest Aurora driver extension from the Aurora driver releases
page (https://github.com/gjr80/weewx-aurora/releases) into a directory
accessible from the WeeWX machine.
$ wget -P $DOWNLOAD_ROOT https://github.com/gjr80/weewx-aurora/releases/download/v0.7.3/aurora-0.7.3.tar.gz
where $DOWNLOAD_ROOT is the path to the directory where the Aurora driver
extension is to be downloaded.
2. Stop WeeWX if it is running:
$ sudo /etc/init.d/weewx stop
or
$ sudo service weewx stop
3. Unpack the extension as follows:
$ tar xvfz aurora-0.7.3.tar.gz
4. Copy files from within the resulting directory as follows:
$ cp aurora/bin/user/*.py $BIN_ROOT/user
replacing the symbolic name $BIN_ROOT with the nominal locations for your
installation.
5. Edit weewx.conf:
$ vi weewx.conf
6. Add a new stanza [Aurora] as follows entering an appropriate values for
model, port and address:
[Aurora]
# This section is for the Power One Aurora series of inverters.
# The inverter model, e.g., Aurora PVI-6000, Aurora PVI-5000
model = INSERT_MODEL_HERE
# Serial port such as /dev/ttyS0, /dev/ttyUSB0, or /dev/cua0
port = /dev/ttyUSB0
# inverter address, usually 2
address = 2
# The driver to use:
driver = user.aurora
7. Add a new stanza [Accumulator] as follows:
[Accumulator]
[[energy]]
extractor = sum
8. Confirm/change as required the following settings:
- [Station]:
station_type = Aurora
- [StdArchive]:
record_generation = software
9. Save weewx.conf.
10. Run WeeWX directly (http://weewx.com/docs/usersguide.htm#Running_directly)
and confirm that loop packets and archive records are being generated and the
data is appears valid:
$ sudo weewxd weewx.conf
Note: Depending on the present working directory and your WeeWX
installation type it may be necessary to prefix weewxd and weewx.conf with
appropriate paths.
You should now see something like below with a series of loop packets
(indicated by LOOP: preceding each line) every 10 seconds and archive
records (indicated by REC: preceding each line) every archive interval
seconds:
LOOP: 2018-02-03 15:54:50 AEST (1517637290) boosterTemp:
96.5233505249, bulkdcVoltage: 381.726715088, bulkmidVoltage:
199.653121948, bulkVoltage: 382.354553223, dateTime: 1517637290,
dayEnergy: 8636, energy: 2, gridavgVoltage: 243.444396973, gridCurrent:
2.02972531319, griddcFrequency: 50.0600738525, griddcVoltage:
243.019439697, gridFrequency: 50.0600738525, gridnVoltage:
305.367279053, gridPower: 494.799346924, gridVoltage: 242.946365356,
inverterTemp: 95.6759544373, isoResistance: 6.53649520874, leakCurrent:
0.00441941944882, leakdcCurrent: 0.0, string1Current: 0.758069634438,
string1Power: 253.94921875, string1Voltage: 359.214996338,
string2Current: 0.767736792564, string2Power: 258.066558838,
string2Voltage: 357.547058105, timeDate: 1517637291, usUnits: 1
LOOP: 2018-02-03 15:55:00 AEST (1517637300) boosterTemp:
96.5189491272, bulkdcVoltage: 381.098876953, bulkmidVoltage:
199.653121948, bulkVoltage: 382.354553223, dateTime: 1517637300,
dayEnergy: 8637, energy: 1, gridavgVoltage: 243.432281494,
gridCurrent: 2.02972531319, griddcFrequency: 50.0841407776,
griddcVoltage: 242.313354492, gridFrequency: 50.0831375122,
gridnVoltage: 305.144683838, gridPower: 496.422271729, gridVoltage:
242.982879639, inverterTemp: 95.6770530701, isoResistance:
6.53649520874, leakCurrent: 0.00441941944882, leakdcCurrent: 0.0,
string1Current: 0.757264018059, string1Power: 253.298355103,
string1Voltage: 358.233856201, string2Current: 0.772570431232,
string2Power: 257.640594482, string2Voltage: 359.038391113,
timeDate: 1517637301, usUnits: 1
LOOP: 2018-02-03 15:55:10 AEST (1517637310) boosterTemp:
96.5321601868, bulkdcVoltage: 381.098876953, bulkmidVoltage:
199.025268555, bulkVoltage: 382.354553223, dateTime: 1517637310,
dayEnergy: 8639, energy: 2, gridavgVoltage: 243.395889282, gridCurrent:
2.0580675602, griddcFrequency: 50.1042175293, griddcVoltage:
242.240203857, gridFrequency: 50.1042175293, gridnVoltage:
306.149841309, gridPower: 497.233734131, gridVoltage: 242.970703125,
inverterTemp: 95.6792640686, isoResistance: 6.53649520874, leakCurrent:
0.00441941944882, leakdcCurrent: 0.0, string1Current: 0.757264018059,
string1Power: 255.268432617, string1Voltage: 359.882171631,
string2Current: 0.775792837143, string2Power: 258.421295166,
string2Voltage: 357.488189697, timeDate: 1517637311, usUnits: 1
LOOP: 2018-02-03 15:55:20 AEST (1517637320) boosterTemp:
96.5244491577, bulkdcVoltage: 381.726715088, bulkmidVoltage:
199.653121948, bulkVoltage: 386.749420166, dateTime: 1517637320,
dayEnergy: 8640, energy: 1, gridavgVoltage: 243.347320557,
gridCurrent: 2.0580675602, griddcFrequency: 50.1132545471,
griddcVoltage: 242.873519897, gridFrequency: 50.1122512817,
gridnVoltage: 305.666992188, gridPower: 499.668151855,
gridVoltage: 243.116577148, inverterTemp: 95.6946929932,
isoResistance: 6.53649520874, leakCurrent: 0.00441941944882,
leakdcCurrent: 0.0, string1Current: 0.758069634438, string1Power:
255.205551147, string1Voltage: 360.176513672, string2Current:
0.774987220764, string2Power: 258.839141846, string2Voltage:
357.174224854, timeDate: 1517637321, usUnits: 1
REC: 2018-02-03 15:55:00 AEST (1517637300) boosterTemp:
96.5136605835, bulkdcVoltage: 381.475579834, bulkmidVoltage:
199.52755127, bulkVoltage: 382.982391357, dateTime: 1517637300.0,
dayEnergy: 8634.4, energy: 5.0, gridavgVoltage: 243.495370483,
gridCurrent: 2.02964129448, griddcFrequency: 50.0747131348,
griddcVoltage: 242.812478638, gridFrequency: 50.0753143311,
gridnVoltage: 305.237585449, gridPower: 493.501000977, gridVoltage:
242.841641235, interval: 5, inverterTemp: 95.6761741638, isoResistance:
6.53649520874, leakCurrent: 0.00441941944882, leakdcCurrent: 0.0,
string1Current: 0.755330586433, string1Power: 252.531326294,
string1Voltage: 358.532122803, string2Current: 0.767897939682,
string2Power: 256.399765015, string2Voltage: 359.328808594,
timeDate: 1517637281.0, usUnits: 1
LOOP: 2018-02-03 15:55:30 AEST (1517637330) boosterTemp:
96.5409767151, bulkdcVoltage: 382.354553223, bulkmidVoltage:
199.025268555, bulkVoltage: 382.982391357, dateTime: 1517637330,
dayEnergy: 8641, energy: 1, gridavgVoltage: 243.310913086,
gridCurrent: 2.0580675602, griddcFrequency: 50.1152648926,
griddcVoltage: 242.471786499, gridFrequency: 50.1152648926,
gridnVoltage: 305.666992188, gridPower: 500.479614258, gridVoltage:
242.81262207, inverterTemp: 95.7321769714, isoResistance:
6.53649520874, leakCurrent: 0.00441941944882, leakdcCurrent:
0.00441941944882, string1Current: 0.758875250816, string1Power:
255.55909729, string1Voltage: 358.920654297, string2Current:
0.778209626675, string2Power: 260.399230957, string2Voltage:
358.547821045, timeDate: 1517637331, usUnits: 1
The above indicates that the inverter is being interrogated, valid data
being received and WeeWX is constructing archive records from the
accumulated loop data.
11. If all appears correct when run directly you can stop WeeWX by entering
Ctl-Z in the terminal and you can now start WeeWX as a daemon:
$ sudo /etc/init.d/weewx start
or
$ sudo service weewx start
12. The WeeWX log should be monitored to verify archive records are being
saved.
Support
General support issues may be raised in the Google Groups weewx-user forum
(https://groups.google.com/group/weewx-user . Specific bugs in the PVOutput
Uploader extension code should be the subject of a new issue raised via the
PVOutput Uploader extension issues page
https://github.com/gjr80/weewx-aurora/issues.
Licensing
The PVOutput Uploader extension is licensed under the GNU Public License v3
(https://github.com/gjr80/weewx-aurora/blob/master/LICENSE.