./classes/objects/Device.php:
69:
$communicationService = new CommunicationService();
$communication = $communicationService->load($this->communicationId);
if ($this->deviceApi == "DeltaSolivia") {
new DeltaSolivia($config->aurorapath, $this->comAddress, $config->comDebug);
$api->setCommunication($communication, $this);
return $api;
}
./classes/objects/Device.php:
69:
if ($this->deviceApi == "DeltaSolivia") {
return new DeltaSolivia($config->aurorapath, $this->comAddress, $config->comDebug);
}#Send it all off to PVOutput.org
cmd = ['/usr/bin/curl',
'-d', t_date,
'-d', t_time,
'-d', t_energy,
'-d', t_power,
'-d', t_volts,
'-d', t_temp,
'-d', t_volts1,
'-d', t_dcPavg,
'-d', t_acPavg,
'-d', t_dcPmax,
'-d', t_acPmax,
'-H', 'X-Pvoutput-Apikey: ' + APIKey,
'-H', 'X-Pvoutput-SystemId: ' + str(SystemID),
'http://pvoutput.org/service/r1/addstatus.jsp']
print cmd
ret = subprocess.call (cmd)
['/usr/bin/curl', '-d', 'd=20140116', '-d', 't=09:05', '-d', 'v1=441', '-d', 'v2=850', '-d', 'v6=236', '-d', 'v5=42', '-d', 'v7=274', '-d', 'v8=864', '-d', 'v9=830', '-d', 'v10=3654', '-d', 'v11=850', '-H', 'X-Pvoutput-Apikey: 0000000000000000000000000000000000000000
', '-H', 'X-Pvoutput-SystemId: 00000', 'http://pvoutput.org/service/r1/addstatus.jsp']
#Send it all off to PVOutput.org
cmd = ['/usr/bin/curl',
'-d', t_date,
'-d', t_time,
'-d', t_energy,
'-d', t_power,
'-d', t_volts,
'-d', t_temp,
'-d', t_volts1,
'-d', t_dcPavg,
'-d', t_acPavg,
'-d', t_dcPmax,
'-d', t_acPmax,
'-H', 'X-Pvoutput-Apikey: ' + APIKey,
'-H', 'X-Pvoutput-SystemId: ' + str(SystemID),
'http://pvoutput.org/service/r1/addstatus.jsp']
print cmd
ret = subprocess.call (cmd)
['/usr/bin/curl', '-d', 'd=20140116', '-d', 't=09:05', '-d', 'v1=441', '-d', 'v2=850', '-d', 'v6=236', '-d', 'v5=42', '-d', 'v7=274', '-d', 'v8=864', '-d', 'v9=830', '-d', 'v10=3654', '-d', 'v11=850', '-H', 'X-Pvoutput-Apikey: 0000000000000000000000000000000000000000
', '-H', 'X-Pvoutput-SystemId: 00000', 'http://pvoutput.org/service/r1/addstatus.jsp']
Since the begging of this post the code has change as I moved from the stable release to the trunk release for additional class structures developed for WSL
Here are the current instruction on getting WSL working with a Delta inverter.
1) 1) Upgrade WSL to the latest trunk
2) 2) Add the code in notes section of http://tracker.websolarlog.com/view.php?id=164
· ./classes/services/DeviceService.php:101
· ./classes/objects/Device.php:68
· ./js/templates/misc.hb:35
3) Download http://tracker.websolarlog.com/file_download.php?file_id=27&type=bug and put:
· DeltaSolivia.php in ./classes/devices
· DeltaSoliviaConverter.php in ./classes/converters
4) Download https://github.com/bprice/DeltaPVOutput into ./classes/devices/DeltaSoliviaPy Eg:
· Cd ./classes/devices
· git clone https://github.com/bprice/DeltaPVOutput.git DeltaSoliviaPy
5) Add a communication record to WSL::Configuration::Communication
· Add a name
· Add the connection port your Pi uses to talk to your inverter (default should be /dev/ttyUSB0)
6) Add a device record to WSL::Configuration::Devices
· Device Api should be DeltaSolivia
· communication: should be the communication record name you set up in step 5
· (RS485/IP) address should be the delta id of the inverter (default is 1 in setup menu on Delta Solivia inverter)
Hopefully in the near future all the php (http://tracker.websolarlog.com/view.php?id=164) will be included in the trunk and all that will be required is to download the python code and add the 2 setup records.
Hope this helps.