TeamO hat geschrieben: ↑Di 30. Mär 2021, 11:10
Ich habe es in einem anderen Thread schon geschrieben, aber hier auch noch mal.
Falls jemand von sich aus testen möchte hier mal die angepasste kostal_pico.php
Es wird innerhalb der Datei gefragt, ob die IP 0.0.0.0 ist und dann weiterhin über USB-RS485 ausgelesen.
Ist die IP vom Piko eingetragen, wird der Piko über LAN ausgelesen.
Es werden hierbei jedoch weniger Daten ausgelesen!
Alles auf eigene Gefahr und ohne Gewährleistung
kostal_pico.php
Hallo TeamO,
ich hab Dein kostal_pico.php mal bei mir intergriert um auch meine kleine noch nicht ganz fertig gestellte Gartenhausanlage mit in die Solaranzeige zu bekommen.
Aber ich lauf da auf einen Fehler (schreibt nix in die DB) und kann damit nich so recht was anfangen bzw. weiß nicht warum ??
Hier mal ein Auszug aus dem Log.
Vielleicht kannst Du mir einen Tip geben wo der Wurm drin ist
15.05. 13:59:23 -Verarbeitung von: '4.user.config.php' Regler: 21
15.05. 13:59:23 |---------------- Start kostal_piko.php ---------------------
15.05. 13:59:23 + -Die Daten werden ausgelesen...
15.05. 13:59:23 ->>>> Kopfdaten:
15.05. 13:59:23 -Name = "PIKO 1.5-1 MP plus"
15.05. 13:59:23 -Type = "Inverter"
15.05. 13:59:23 -Platform = "Net16"
15.05. 13:59:23 -HmiPlatform = "HMI17"
15.05. 13:59:23 -NominalPower = "1500"
15.05. 13:59:23 -UserPowerLimit = "nan"
15.05. 13:59:23 -CountryPowerLimit = "nan"
15.05. 13:59:23 -Serial = "xxxxxxxxxxxxxxx"
15.05. 13:59:23 -OEMSerial = "10351311"
15.05. 13:59:23 -BusAddress = "1"
15.05. 13:59:23 -NetBiosName = "INV007673840024"
15.05. 13:59:23 -WebPortal = "PIKO Solar Portal"
15.05. 13:59:23 -ManufacturerURL = "kostal-solar-electric.com"
15.05. 13:59:23 -IpAddress = "192.168.0.25"
15.05. 13:59:23 -DateTime = "2021-05-15T13:58:46"
15.05. 13:59:23 -MilliSeconds = "111"
15.05. 13:59:23 ->>>> aktuelle Werte:
15.05. 13:59:23 -Value: 234.3 Unit: V Type: AC_Voltage
15.05. 13:59:23 -Value: Unit: A Type: AC_Current
15.05. 13:59:23 -Value: Unit: W Type: AC_Power
15.05. 13:59:23 -Value: Unit: W Type: AC_Power_fast
15.05. 13:59:23 -Value: 50.004 Unit: Hz Type: AC_Frequency
15.05. 13:59:23 -Value: 2.0 Unit: V Type: DC_Voltage
15.05. 13:59:23 -Value: Unit: A Type: DC_Current
15.05. 13:59:23 -Value: 0.6 Unit: V Type: LINK_Voltage
15.05. 13:59:23 -Value: Unit: W Type: GridPower
15.05. 13:59:23 -Value: Unit: W Type: GridConsumedPower
15.05. 13:59:23 -Value: Unit: W Type: GridInjectedPower
15.05. 13:59:23 -Value: Unit: W Type: OwnConsumedPower
15.05. 13:59:23 -Value: 100.0 Unit: % Type: Derating
15.05. 13:59:23 -WattstundenGesamtHeute: 0
15.05. 13:59:23 -InfluxDB => [ AC Spannung_R=234.3,Spannung_S=0,Spannung_T=0,Strom_R=,Strom_S=0,Strom_T=0,Leistung_R=,Leistung_S=0,Leistung_T=0 1621079951
PV String1_Spannung=,String2_Spannung=,String3_Spannung=0,String1_Strom=,String2_Strom=,String3_Strom=0,String1_Leistung=0,String2_Leistung=0,String3_Leistung=0,String1_Nummer="1",String2_Nummer="2",String3_Nummer="3",Leistung=0 1621079951
Service FehlerCode=0,Status=0,Fehler=0,Strings=0,Phasen=0 1621079951
Summen Wh_Heute=0,Wh_Gesamt=0,AC_Leistung_Gesamt=0,PV_Leistung_Gesamt=0 1621079951
]
15.05. 13:59:23 -Daten nicht zur lokalen InfluxDB gesendet! info: array (
'url' => '
http://localhost/write?db=Piko15&precision=s',
'content_type' => 'application/json',
'http_code' => 404,
'header_size' => 315,
'request_size' => 671,
'filetime' => -1,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 0.002924,
'namelookup_time' => 0.001062,
'connect_time' => 0.001405,
'pretransfer_time' => 0.001612,
'size_upload' => 520.0,
'size_download' => 43.0,
'speed_download' => 21500.0,
'speed_upload' => 260000.0,
'download_content_length' => 43.0,
'upload_content_length' => 520.0,
'starttransfer_time' => 0.002852,
'redirect_time' => 0.0,
'redirect_url' => '',
'primary_ip' => '::1',
'certinfo' =>
array (
),
'primary_port' => 8086,
'local_ip' => '::1',
'local_port' => 52160,
'http_version' => 2,
'protocol' => 1,
'ssl_verifyresult' => 0,
'scheme' => 'HTTP',
'appconnect_time_us' => 0,
'connect_time_us' => 1405,
'namelookup_time_us' => 1062,
'pretransfer_time_us' => 1612,
'redirect_time_us' => 0,
'starttransfer_time_us' => 2852,
'total_time_us' => 2924,
)
15.05. 13:59:28 -InfluxDB => [ AC Spannung_R=234.3,Spannung_S=0,Spannung_T=0,Strom_R=,Strom_S=0,Strom_T=0,Leistung_R=,Leistung_S=0,Leistung_T=0 1621079951
PV String1_Spannung=,String2_Spannung=,String3_Spannung=0,String1_Strom=,String2_Strom=,String3_Strom=0,String1_Leistung=0,String2_Leistung=0,String3_Leistung=0,String1_Nummer="1",String2_Nummer="2",String3_Nummer="3",Leistung=0 1621079951
Service FehlerCode=0,Status=0,Fehler=0,Strings=0,Phasen=0 1621079951
Summen Wh_Heute=0,Wh_Gesamt=0,AC_Leistung_Gesamt=0,PV_Leistung_Gesamt=0 1621079951
]
15.05. 13:59:28 -Daten nicht zur lokalen InfluxDB gesendet! info: array (
'url' => '
http://localhost/write?db=Piko15&precision=s',
'content_type' => 'application/json',
'http_code' => 404,
'header_size' => 315,
'request_size' => 671,
'filetime' => -1,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 0.000847,
'namelookup_time' => 0.000101,
'connect_time' => 0.000103,
'pretransfer_time' => 0.000267,
'size_upload' => 520.0,
'size_download' => 43.0,
'speed_download' => 43000.0,
'speed_upload' => 520000.0,
'download_content_length' => 43.0,
'upload_content_length' => 520.0,
'starttransfer_time' => 0.000796,
'redirect_time' => 0.0,
'redirect_url' => '',
'primary_ip' => '::1',
'certinfo' =>
array (
),
'primary_port' => 8086,
'local_ip' => '::1',
'local_port' => 52160,
'http_version' => 2,
'protocol' => 1,
'ssl_verifyresult' => 0,
'scheme' => 'HTTP',
'appconnect_time_us' => 104,
'connect_time_us' => 103,
'namelookup_time_us' => 101,
'pretransfer_time_us' => 267,
'redirect_time_us' => 0,
'starttransfer_time_us' => 796,
'total_time_us' => 847,
)
15.05. 13:59:33 -Multi-Regler-Ausgang. -1
15.05. 13:59:33 -OK. Datenübertragung erfolgreich.
15.05. 13:59:33 |---------------- Stop kostal_piko.php --------------------
15.05. 13:59:33 -Multi Regler Auslesen [Stop].