Delta Solivia

others protocols
TonyP62
Posts: 97
Joined: Fri May 01, 2015 11:07 pm

Delta Solivia

Post by TonyP62 » Thu Jul 02, 2015 8:58 am

Hello jeanmarc.
I want ask you if it's possible to write a protocol file for the DeltaSolivia inverters. I found a script (DeltaPVOutput) that is a python script that can extract data from this inverter and send them to pvoutput site.
Do you think it's possible to do a protocol file for this kind of inverters ?
I desire install 123solar on the my friend's raspberry.
Thanks in advance.

jeanmarc
Posts: 1580
Joined: Thu Aug 29, 2013 7:16 am

Re: Delta Solivia

Post by jeanmarc » Thu Jul 02, 2015 1:35 pm

Hello,
Yes, if you are able at least to get the total kWh counter and power. You can check how other protocols files are created to get an idea. Good luck ;)

TonyP62
Posts: 97
Joined: Fri May 01, 2015 11:07 pm

Re: Delta Solivia

Post by TonyP62 » Fri Jul 03, 2015 8:44 am

jeanmarc wrote:Hello,
Yes, if you are able at least to get the total kWh counter and power. You can check how other protocols files are created to get an idea. Good luck ;)
JeanMarc, i am not able to do a protocol file. I ask if You can do a protocol file for this inverter.
You can see how data where are stored observing the DeltaPVOutput Python. If you can add this protocol to your fantastic software, i simply be able to install 123solar on my friend's raspberry. This is the only thing i can do. Thanks in advance.

jeanmarc
Posts: 1580
Joined: Thu Aug 29, 2013 7:16 am

Re: Delta Solivia

Post by jeanmarc » Thu Jul 09, 2015 5:05 pm

Hi,
Sorry i can't reply now. I am abroad (Italy lago di garda) with almost no connection..

TonyP62
Posts: 97
Joined: Fri May 01, 2015 11:07 pm

Re: Delta Solivia

Post by TonyP62 » Sun Jul 12, 2015 7:27 am

jeanmarc wrote:Hi,
Sorry i can't reply now. I am abroad (Italy lago di garda) with almost no connexion..
You must relax now. You must enjoy Italy and its food. I am an italian man ( Sardina Island ).

But I hope that, when you return home, you can study for the new protocol, because it's very important for us.

Good vacations in Italy.

jeanmarc
Posts: 1580
Joined: Thu Aug 29, 2013 7:16 am

Re: Delta Solivia

Post by jeanmarc » Sun Jul 19, 2015 7:00 am

Hi Tony,
I am back. Could you provide some data sample outputs of this sript ?
Thanks

TonyP62
Posts: 97
Joined: Fri May 01, 2015 11:07 pm

Re: Delta Solivia

Post by TonyP62 » Sun Jul 19, 2015 9:39 am

Hello JeanMarc.
I hope you have spent happy Days in Italy.

If you examine the DeltaPVOutput.py file, you can see that it don't write any output file.
Perhaps it write directly on the MySQL Database and then send data to pvoutput.org.
The only way i have found , is a verbose mode that give this output on screen:

python DeltaPVOutput.py -v

Date: d=20150719, Time: t=10:36
Energy Today: v1=8142Wh, Instantaneous Power: v2=2570W
Volts: v6=239, Temp: v5=47 oC
OK 200: Added Status
pi@raspberrypi ~/DeltaPVOutput $

I hope you can find any solution, because i'll be very happy if my friend can use your fantastic software.
thanks for your patience.
Regards,
Tony

jeanmarc
Posts: 1580
Joined: Thu Aug 29, 2013 7:16 am

Re: Delta Solivia

Post by jeanmarc » Sun Jul 19, 2015 11:04 am

Hi,
Italy was pleasant, thanks 8-)

You may try this in protocols/scripts/delta.php. Make sure DeltaPVOutput.py is executable as http user

Code: Select all

<?php
if (!defined('checkaccess')) {
// comment this line to test from command line
    die('Direct access not permitted');
}

$CMD_RETURN = '';

$CMD_POOLING = 'python DeltaPVOutput.py -v';
$CMD_RETURN = exec($CMD_POOLING);

/* Test line
$CMD_RETURN = "
Date: d=20150719, Time: t=10:36
Energy Today: v1=8142Wh, Instantaneous Power: v2=2570W
Volts: v6=239, Temp: v5=47 oC
OK 200: Added Status";
*/

$dataarray = preg_split('/[[:space:]]+/', $CMD_RETURN);
// uncomment this line to test
//print_r($dataarray);

if ($dataarray[16] == 'OK') {
  
    $KWHT = $dataarray[7];
    $KWHT = substr($KWHT, 3);
    settype($KWHT, 'float');
    
    $G1P = $dataarray[10];
    $G1P = substr($G1P, 3);
    settype($G1P, 'float');
    
    $G1V = $dataarray[12];
    $G1V = substr($G1V, 3);
    settype($G1V, 'float');
    
    $INVT = $dataarray[14];
    $INVT = substr($INVT, 3);
    settype($INVT, 'float');
    // uncomment this line to test
    //echo "kwh $KWHT g1p $G1P g1v $G1V temp $INVT ";
    $RET = 'OK';
} else {
    $RET = 'NOK';
}
?>
That would be better to request from the db though.
Also create this scripts/protocols/delta_startup.php

Code: Select all

<?php
if(!defined('checkaccess')){die('Direct access not permitted');}
// Info file
$CMD_INFO = 'no info';

// Sync inverter
$CMD_SYNC = '';
?>
and as delta_checks.php

Code: Select all

<?php
if(!defined('checkaccess')){die('Direct access not permitted');}

// State
$STATE = "no invt status";

// Alarms
$ALARM = null;
$MESSAGE = null;

// Riso, iLeak - Peak Powers
$RISO = 0;
$ILEAK = 0;
$PPEAK= 0;
$PPEAKOTD= 0;
?>

jeanmarc
Posts: 1580
Joined: Thu Aug 29, 2013 7:16 am

Re: Delta Solivia

Post by jeanmarc » Sun Jul 19, 2015 11:55 am

btw, it look like the DeltaPVOutput script only request data on 5min basis. So, you won't have real live values.. :?

TonyP62
Posts: 97
Joined: Fri May 01, 2015 11:07 pm

Re: Delta Solivia

Post by TonyP62 » Sun Jul 19, 2015 10:15 pm

You're simply the best.
My friend and I , don't know how to thanks you for your good work.
The protocol return me an error ( / ) but i'm sure that i can understand where is the problem and i can solve it.
Now i have another AUTH problem with his apache server and i have removed Apache2.
I want try to install NGINX on my firnd's raspi , next week and try to reinstall 123solar. I hope this fresh install can work fine with new protocol.
Many many thanks, JeanMarc.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest