Test with KOSTAL PIKO 7 inverter

others protocols
fulbrich
Posts: 7
Joined: Thu Sep 12, 2013 7:27 am
Location: Germany

Test with KOSTAL PIKO 7 inverter

Post by fulbrich » Thu Sep 12, 2013 8:02 am

https://groups.google.com/forum/#!topic ... p65WK0xENA

Hi,
I would like to point to my findings regarding the "KOSTAL PIKO 7 inverter" in 123Solar 1.5.4.1

fulbrich
Posts: 7
Joined: Thu Sep 12, 2013 7:27 am
Location: Germany

Re: Test with KOSTAL PIKO 7 inverter

Post by fulbrich » Thu Mar 06, 2014 12:22 pm

Hi,
I will do a testinstallation with 123solar 1.6.0 on a second raspberry to see if the "piko" protokoll as working and to find out what is maybe missing.
I plan to install meterN as well. I am not sure what changed in contrast to meterp. Hopefully solardata is still included.
Thanks for continuing the development.

Best wishes
Frank

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

Re: Test with KOSTAL PIKO 7 inverter

Post by jeanmarc » Thu Mar 06, 2014 1:28 pm

Hi Frank,
Thanks for your testing, tell me if something is missing.
About meterP, it was aimed for pulse-meters only. meterN is about meter'ing all meters :)

fulbrich
Posts: 7
Joined: Thu Sep 12, 2013 7:27 am
Location: Germany

Re: Test with KOSTAL PIKO 7 inverter

Post by fulbrich » Wed Mar 26, 2014 1:37 pm

Hi Jeanmarc,
it doens't work out of the box a s far as I see.
I modified ther piko.py script in the past to extract the data and format I need for 123solar.
In the moment I set up 123solar 1.6.0 on a second Raspberry but I have a LAN issue at home.
I will continue testing and post the changes, when my network is up again.
This may hopefully happen next week.

sovking
Posts: 76
Joined: Fri Feb 27, 2015 12:02 am

Re: Test with KOSTAL PIKO 7 inverter

Post by sovking » Sat Nov 26, 2016 5:52 pm

Hi,
I would like to test 123solar with Piko 10 Inverter, can you send me or attach here the latest script to communicate with 123solar ?

Thanks

server2006
Posts: 32
Joined: Tue May 23, 2017 7:54 am

Re: Test with KOSTAL PIKO 7 inverter

Post by server2006 » Sun May 13, 2018 10:31 pm

Hello!
There is an instruction on the installation and start of monitoring for kostal piko 7.
Thank you!

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

Re: Test with KOSTAL PIKO 7 inverter

Post by jeanmarc » Mon May 14, 2018 6:32 am

Hi,
You first need to be able to retrieve data with Piko stats, then edit scripts/protocols/piko.php

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

Re: Test with KOSTAL PIKO 7 inverter

Post by jeanmarc » Mon May 14, 2018 7:19 am

Rather try this as piko.php

Code: Select all

<?php
//if(!defined('checkaccess')){die('Direct access not permitted');}
// For Piko stats http://sourceforge.net/projects/piko/
// With the help of Frank Ulbrich 

if (!$DEBUG) {
    $CMD_POOLING = "piko --host=192.168.1.10 -s -p -t -i -d";
} else {
    $CMD_POOLING = "piko --host=192.168.1.10 -s -p -t -i -d";
}
$datareturn = exec($CMD_POOLING);
/*
$datareturn = " 
Inverter Status : 3 (Running)
Total energy : 801296 Wh
Today energy : 4841 Wh
DC Power : 2613 W
AC Power : 2414 W
Efficiency : 92.4%
DC String 1 : 640.4 V 3.24 A 2075 W T=a660 (41.21 C) S=4009
DC String 2 : 599.6 V 0.89 A 538 W T=a680 (41.14 C) S=c00a
DC String 3 : 0.0 V 0.00 A 0 W T=a660 (41.21 C) S=0003
AC Phase 1 : 234.8 V 3.45 A 791 W T=9a20 (48.21 C)
AC Phase 2 : 235.3 V 3.43 A 792 W T=9a20 (48.21 C)
AC Phase 3 : 241.6 V 3.54 A 831 W T=9a20 (48.21 C)
AC Status : 28 (001c ---L123)";
*/

$array = preg_replace("/[^0-9.[:space:]]+/", "", $datareturn);
$array = preg_split('/[[:space:]]+/', $array);
//print_r($array);

if (isset($array[48])) {
    //$SDTE = $array[0];
    $I1V  = (float) $array[8];
    $I1A  = (float) $array[9];
    $I1P  = (float) $array[10];
    $I2V  = (float) $array[15];
    $I2A  = (float) $array[16];
    $I2P  = (float) $array[17];
    $G1V  = (float) $array[29];
    $G1A  = (float) $array[30];
    $G1P  = (float) $array[31];
    $G2V  = (float) $array[35];
    $G2A  = (float) $array[36];
    $G2P  = (float) $array[37];
    $G3V  = (float) $array[41];
    $G3A  = (float) $array[42];
    $G3P  = (float) $array[43];
    $FRQ  = null;
    $EFF  = (float) $array[6];
    $INVT = $array[12];
    $BOOT = (float) $array[39];
    $KWHT = (float) $array[2];
    $RET  = 'OK';
} else {
    $RET = '';
}
?>


server2006
Posts: 32
Joined: Tue May 23, 2017 7:54 am

Re: Test with KOSTAL PIKO 7 inverter

Post by server2006 » Fri May 18, 2018 8:30 pm

jeanmarc wrote:
Mon May 14, 2018 6:32 am
Hi,
You first need to be able to retrieve data with Piko stats, then edit scripts/protocols/piko.php
Hello!
Could you write more in detail. Where to install the script "Piko.py" and how it will be launched?
Thank you!

server2006
Posts: 32
Joined: Tue May 23, 2017 7:54 am

Re: Test with KOSTAL PIKO 7 inverter

Post by server2006 » Fri May 18, 2018 9:09 pm

He did this:
chmod +x /usr/local/sbin/Piko.py
ln -s /usr/local/sbin/Piko.py /bin/piko

Has earned!

Code: Select all

root@orangepizero:~# piko --version
piko v1.4.1 - 20160218
root@orangepizero:~# piko --help
Usage: piko --host IP [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -v, --verbose         Verbose mode, print headers
  -q, --quiet           Quiet mode, print only values
  --timestamp           Output timestamp
  --db=DB NAME          database name

  SQL connection management:
    Management functions to connect to an SQL Server

    --my                Connect to a MySQL server
    --my-srv=SERVER     Mysql server IP or hostname
    --my-usr=USERNAME   Mysql username
    --my-pwd=PASSWORD   Mysql password

  Inverter online communication options:
    Define the inverter IP (or DNS name) and the port to connect to

    --host=HOSTNAME     IP address or DNS name
    --port=81           TCP online port
    --id=255            RS485 bus address
    --tref=c800         Temp reference
    --debug             Show data frames

  Inverter history communication options:
    Define the inverter http credential
................................................................................
................................................................................
We work further.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest