riogrande75 / infinipoll10k

PV Logger for Infinisolar 10k hybrid and compatible inverters
8 stars 3 forks source link

PHP Warning: fwrite() expects parameter 1 to be resource #1

Closed blacksocket closed 2 years ago

blacksocket commented 3 years ago

Hello,

I just started the script and getting the following error below. Do you know what could be wrong ?

PHP Warning: mkdir(): No such file or directory in /etc/infinipoll10k/infinipoll10k.php on line 14 infinipoll10k.php[22441]: INFINIPOLL 10K Neustart 2021-11-24 19:22:17: INFINIPOLL 10K Neustart PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 ProtocolID: 17 Serial: 96162011100284 CPU Version: VERFW:00001.01 CPU secondary Version: VERFW2:00001.01 Modell: MPI Hybrid 10KW/3P VA: 010000 PowerFactor: 99 BattPCs: 04 BattV: 12 echo "MPI Hybrid 10KW/3P Serial:96162011100284 SW:VERFW:00001.01 Protokoll:17 VERFW:00001.01 VERFW2:00001.01" 2021-11-24 19:22:19: DEBUG: aktuelle Systemzeit: 20211124192219 PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:19: DEBUG: aktuelle Zeit im WR: 20211124192132 PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:19: ***NEW HOURSPOWER0 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:19: ***NEW HOURSPOWER0 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:19: ***NEW HOURSPOWER0 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:20: ***NEW HOURSPOWER0 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:20: ***NEW HOURSPOWER0 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:20: ***NEW HOURSPOWER0 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:20: ***NEW HOURSPOWER4 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:21: ***NEW HOURSPOWER47 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:21: ***NEW HOURSPOWER391 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:21: ***NEW HOURSPOWER912 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:21: ***NEW HOURSPOWER1432 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:22: ***NEW HOURSPOWER2019 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:22: ***NEW HOURSPOWER2616 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:22: ***NEW HOURSPOWER2907 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:22: ***NEW HOURSPOWER3010 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:23: ***NEW HOURSPOWER3045 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:23: ***NEW HOURSPOWER3049 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:23: ***NEW HOURSPOWER3049 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:23: ***NEW HOURSPOWER3049 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:24: ***NEW HOURSPOWER3049 Wh

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:24: DEBUG: Today's power calced from hourscounter: 3049 Wh PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:24: START:Daycounter not valid - get it from inverter PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 kWh-11-24 19:22:24: START:Got KwH_total from inverter: 00000▒ PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:24: START: Got WH_today from INV: 00 Wh PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 PHP Notice: A non well formed numeric value encountered in /etc/infinipoll10k/infinipoll10k.php on line 130 2021-11-24 19:22:24: START: Calcualted PV_GES at start: 0 Wh PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 PHP Notice: A non well formed numeric value encountered in /etc/infinipoll10k/infinipoll10k.php on line 132 2021-11-24 19:22:24: START: Daybase at start: 0 Wh PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:24: START: daypower_old was set to 003049 Wh PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 2021-11-24 19:22:24: =====>>>>WR ist im PowerOn-Modus, daher sind Abfragen verboten! PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 fehlerbit 0 ist 0 fehlerbit 2 ist ▒ Fehler beim Emfang: Bit 2 = ▒ fehlerbit 4 ist Fehler beim Emfang: Bit 4 = fehlerbit 6 ist D Fehler beim Emfang: Bit 6 = D fehlerbit 8 ist 4 Fehler beim Emfang: Bit 8 = 4 fehlerbit 10 ist 1 fehlerbit 12 ist 1 fehlerbit 14 ist 0 fehlerbit 16 ist 0 fehlerbit 18 ist 0 fehlerbit 20 ist 0 fehlerbit 22 ist 0 fehlerbit 24 ist 0 fehlerbit 26 ist 0 fehlerbit 28 ist 0 fehlerbit 30 ist 0 fehlerbit 32 ist 0 fehlerbit 34 ist 0 fehlerbit 36 ist 0 fehlerbit 38 ist 0 fehlerbit 40 ist 0 fehlerbit 42 ist 0 Fehler:Battery low 2021-11-24 19:22:24: WR im ALARMZUSTAND: Battery low

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546 Fehler:Battery open 2021-11-24 19:22:24: WR im ALARMZUSTAND: Battery open

PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /etc/infinipoll10k/infinipoll10k.php on line 546

riogrande75 commented 2 years ago

It seems that the script does not have the right to write into the logfile (/etc/infinipoll10k/log/infinipoll10k). Either you create the directory and grant access or you change the directory in line 26.

For the backup of the counters you need to adapt line 12 and 14 (/home/user/inv1/).

blacksocket commented 2 years ago

Hello riogrande75,

Many thanks for your help! I just corrected it and now I am getting this:

infinipoll10k.php[29566]: INFINIPOLL 10K Neustart 2022-01-19 17:17:06: INFINIPOLL 10K Neustart ProtocolID: 17 Serial: 96162011100284 CPU Version: VERFW:00001.01 CPU secondary Version: VERFW2:00001.01 Modell: MPI Hybrid 10KW/3P VA: 010000 PowerFactor: 99 BattPCs: 04 BattV: 12 echo "MPI Hybrid 10KW/3P Serial:96162011100284 SW:VERFW:00001.01 Protokoll:17 VERFW:00001.01 VERFW2:00001.01" 2022-01-19 17:17:08: DEBUG: aktuelle Systemzeit: 20220119171708 2022-01-19 17:17:08: DEBUG: aktuelle Zeit im WR: 20220119171720 2022-01-19 17:17:08: ***NEW HOURSPOWER0 Wh

2022-01-19 17:17:08: ***NEW HOURSPOWER0 Wh

2022-01-19 17:17:08: ***NEW HOURSPOWER0 Wh

2022-01-19 17:17:09: ***NEW HOURSPOWER0 Wh

2022-01-19 17:17:09: ***NEW HOURSPOWER0 Wh

2022-01-19 17:17:09: ***NEW HOURSPOWER0 Wh

2022-01-19 17:17:09: ***NEW HOURSPOWER0 Wh

2022-01-19 17:17:10: ***NEW HOURSPOWER41 Wh

2022-01-19 17:17:10: ***NEW HOURSPOWER395 Wh

2022-01-19 17:17:10: ***NEW HOURSPOWER1062 Wh

2022-01-19 17:17:10: ***NEW HOURSPOWER3234 Wh

2022-01-19 17:17:11: ***NEW HOURSPOWER6477 Wh

2022-01-19 17:17:11: ***NEW HOURSPOWER10748 Wh

2022-01-19 17:17:11: ***NEW HOURSPOWER15268 Wh

2022-01-19 17:17:11: ***NEW HOURSPOWER18827 Wh

2022-01-19 17:17:12: ***NEW HOURSPOWER20605 Wh

2022-01-19 17:17:12: ***NEW HOURSPOWER20703 Wh

2022-01-19 17:17:12: ***NEW HOURSPOWER20703 Wh

2022-01-19 17:17:12: DEBUG: Today's power calced from hourscounter: 20703 Wh 2022-01-19 17:17:12: START:Daycounter not valid - get it from inverter kWh-01-19 17:17:12: START:Got KwH_total from inverter: 00000▒ 2022-01-19 17:17:12: START: Got WH_today from INV: 00 Wh PHP Notice: A non well formed numeric value encountered in /etc/infinipoll10k/infinipoll10k.php on line 130 2022-01-19 17:17:12: START: Calcualted PV_GES at start: 0 Wh PHP Notice: A non well formed numeric value encountered in /etc/infinipoll10k/infinipoll10k.php on line 132 2022-01-19 17:17:12: START: Daybase at start: 0 Wh 2022-01-19 17:17:12: START: daypower_old was set to 020703 Wh 2022-01-19 17:17:13: =====>>>>WR ist im Bypass-Modus, daher sind Abfragen verboten! fehlerbit 0 ist 0 fehlerbit 2 ist ▒ Fehler beim Emfang: Bit 2 = ▒ fehlerbit 4 ist Fehler beim Emfang: Bit 4 = fehlerbit 6 ist D Fehler beim Emfang: Bit 6 = D fehlerbit 8 ist 4 Fehler beim Emfang: Bit 8 = 4 fehlerbit 10 ist 1 fehlerbit 12 ist 1 fehlerbit 14 ist 0 fehlerbit 16 ist 0 fehlerbit 18 ist 0 fehlerbit 20 ist 0 fehlerbit 22 ist 0 fehlerbit 24 ist 0 fehlerbit 26 ist 0 fehlerbit 28 ist 0 fehlerbit 30 ist 0 fehlerbit 32 ist 0 fehlerbit 34 ist 0 fehlerbit 36 ist 0 fehlerbit 38 ist 0 fehlerbit 40 ist 0 fehlerbit 42 ist 0 Fehler:Battery low 2022-01-19 17:17:13: WR im ALARMZUSTAND: Battery low

Fehler:Battery open 2022-01-19 17:17:13: WR im ALARMZUSTAND: Battery open

2022-01-19 17:17:23: TOTAL:Got KwH_total from inverter: 0004325y kWh 2022-01-19 17:17:23: =====>>>> TOTAL:0004325y KWH gelesen <<<====

blacksocket commented 2 years ago

and then also the below errors:

2022-01-19 17:26:23: ERROR: Daypower_old was set to summed hour powers PV1_Power: 0000W PV2_Power: 0000W GridPower1: ,+00W GridPower2: 15,+W GridPower3: 0016W GridPower: +0005W ApperentPower1: ,000W ApperentPower2: ,000W ApperentPower3: ,000W ApperentPower: ,0000W AC-Out: connected PowerOutputPercentage: 00,% BatteryStatus: Laden PHP Notice: Undefined variable: dcaccode in /etc/infinipoll10k/infinipoll10k.php on line 356 DC-AC Power direction: LinePowerDirection: input Power Today: 20703 2022-01-19 17:26:25: ERROR: ERROR HAPPENED!!! Flush data and redo! 2022-01-19 17:26:25: ================================================ 2022-01-19 17:26:25: DEBUG: Modus: Hybrid (Line mode, Grid mode) SolarInput1: 0V SolarInput2: 0V SolarInput1: 0A SolarInput2: 0A BattVoltage: 54V BattCap: 099% BattAmp: 1.4A GridVolt1: 230.5V GridVolt2: 231.8V GridVolt3: 230.5V GridFreq: 50Hz GridAmps1: 0A GridAmps2: 0A GridAmps3: 0A OutVolt1: 230.5V OutVolt2: 232.2V OutVolt3: 230.5V OutFreq: 49.99Hz InnerTemp: 028° CompMaxTemp: 031° BattTemp: 000° 2022-01-19 17:26:26: ERROR: Wrong Daypower received: ,1 while old daypower was: 20703

riogrande75 commented 2 years ago

I had similar problems with inverters running older fw versions. Ok, give it a shot with latest version I just uploaded.

blacksocket commented 2 years ago

What FW version are you using now ? Seems the error looks similar. Maybe the issue is concerning the ETH-RS232 converter ? I am using USR-W610 https://www.pusr.com/download/WIFI/USR-W610-User-Manual-V1.0.1.01.pdf

For the moment I have setup my inverter in "Grid-tie with backup" mode. image

riogrande75 commented 2 years ago

Your inverter does not respond with a valid total counter. Did you use my latest upload from today?

blacksocket commented 2 years ago

Sorry I mixed the versions. Now it works very well however I am getting some other errors. Many thanks for your help! ;-)

infinipoll10k.php[7730]: INFINIPOLL 10K A Neustart 2022-01-20 21:56:40: INFINIPOLL 10K A Neustart 2022-01-20 21:56:41: DEBUG: aktuelle Systemzeit: 20220120215641 2022-01-20 21:56:41: DEBUG: aktuelle Zeit im WR: 20220120215634 2022-01-20 21:56:42: ***NEW HOURSPOWER for hour 2022012000 0 Wh

2022-01-20 21:56:42: ***NEW HOURSPOWER for hour 2022012001 0 Wh

2022-01-20 21:56:42: ***NEW HOURSPOWER for hour 2022012002 0 Wh

2022-01-20 21:56:42: ***NEW HOURSPOWER for hour 2022012003 0 Wh

2022-01-20 21:56:42: ***NEW HOURSPOWER for hour 2022012004 0 Wh

2022-01-20 21:56:43: ***NEW HOURSPOWER for hour 2022012005 0 Wh

2022-01-20 21:56:43: ***NEW HOURSPOWER for hour 2022012006 0 Wh

2022-01-20 21:56:43: ***NEW HOURSPOWER for hour 2022012007 23 Wh

2022-01-20 21:56:43: ***NEW HOURSPOWER for hour 2022012008 82 Wh

2022-01-20 21:56:44: ***NEW HOURSPOWER for hour 2022012009 1528 Wh

2022-01-20 21:56:44: ***NEW HOURSPOWER for hour 2022012010 3679 Wh

2022-01-20 21:56:44: ***NEW HOURSPOWER for hour 2022012011 4033 Wh

2022-01-20 21:56:44: ***NEW HOURSPOWER for hour 2022012012 4086 Wh

2022-01-20 21:56:45: ***NEW HOURSPOWER for hour 2022012013 4230 Wh

2022-01-20 21:56:45: ***NEW HOURSPOWER for hour 2022012014 7345 Wh

2022-01-20 21:56:45: ***NEW HOURSPOWER for hour 2022012015 8764 Wh

2022-01-20 21:56:45: ***NEW HOURSPOWER for hour 2022012016 8794 Wh

2022-01-20 21:56:46: ***NEW HOURSPOWER for hour 2022012017 8794 Wh

2022-01-20 21:56:46: ***NEW HOURSPOWER for hour 2022012018 8794 Wh

2022-01-20 21:56:46: ***NEW HOURSPOWER for hour 2022012019 8794 Wh

2022-01-20 21:56:46: ***NEW HOURSPOWER for hour 2022012020 8794 Wh

2022-01-20 21:56:47: ***NEW HOURSPOWER for hour 2022012021 8794 Wh

2022-01-20 21:56:47: DEBUG: Today's power calced from hourscounter: 8794 Wh 2022-01-20 21:56:47: START:Daycounter not valid - get it from inverter 2022-01-20 21:56:47: START:Got KwH_total from inverter: 00004334 kWh 2022-01-20 21:56:47: START: Got WH_today from INV: 008794 Wh 2022-01-20 21:56:47: START: Calcualted PV_GES at start: 4334794 Wh 2022-01-20 21:56:47: START: Daybase at start: 4326 Wh 2022-01-20 21:56:47: START: daypower_old was set to 008794 Wh 2022-01-20 21:56:47: ================================================ 2022-01-20 21:56:47: DEBUG: Modus: Hybrid (Line mode, Grid mode) 2022-01-20 21:56:49: DEBUG: PV_GES: 4334.794 2022-01-20 21:56:49: DEBUG Wert ACV1: 232.6 2022-01-20 21:56:49: DEBUG Wert ACV2: 234.1 2022-01-20 21:56:49: DEBUG Wert ACV3: 232.2 2022-01-20 21:56:49: DEBUG Wert ACC1: 0 2022-01-20 21:56:49: DEBUG Wert ACC2: 0 2022-01-20 21:56:49: DEBUG Wert ACC3: 0 2022-01-20 21:56:49: DEBUG Wert ACF: 50.01 2022-01-20 21:56:49: DEBUG Wert INTEMP: 028 2022-01-20 21:56:49: DEBUG Wert BOOT: 031 2022-01-20 21:56:49: DEBUG Wert DCINV1: 0 2022-01-20 21:56:49: DEBUG Wert DCINV2: 0 2022-01-20 21:56:49: DEBUG Wert DCINC1: 0 2022-01-20 21:56:49: DEBUG Wert DCINC2: 0 2022-01-20 21:56:49: DEBUG Wert DCPOW1: 0000 2022-01-20 21:56:49: DEBUG Wert DCPOW2: 0000 2022-01-20 21:56:49: DEBUG Wert BATTV: 54 2022-01-20 21:56:49: DEBUG Wert BATTCHAMP: 1.4 2022-01-20 21:56:49: DEBUG Wert BATTCAP: 099 2022-01-20 21:56:49: DEBUG Wert BATTPOWER: 75.6 2022-01-20 21:56:49: DEBUG Wert POWERDIR: input 2022-01-20 21:56:49: DEBUG: ges. PV in KWh: 4334.794 2022-01-20 21:56:49: DEBUG: akt. Leistung in Watt: 0 PHP Notice: Undefined variable: battstat in /etc/infinipoll10k/infinipoll10k.php on line 436 2022-01-20 21:56:49: DEBUG: Batterie Status: 2022-01-20 21:56:49: DEBUG: daypower_old: 008794 2022-01-20 21:56:49: DEBUG: daypower: 008794 2022-01-20 21:56:49: DEBUG: daybase: 4326 2022-01-20 21:56:49: DEBUG: INGS: 0020,0019,0019,0005,0006,0007,4079,4077,4077,4077,000 PHP Notice: Undefined variable: battstat in /etc/infinipoll10k/infinipoll10k.php on line 467 2022-01-20 21:56:49: Fehler beim Schreiben in die _string Datei /tmp/inv1/BATTSTAT.txt Start (weitere Meldungen werden unterdrueckt)! PHP Notice: Undefined variable: dcaccode in /etc/infinipoll10k/infinipoll10k.php on line 468 2022-01-20 21:56:49: Fehler beim Schreiben bereinigt! 2022-01-20 21:56:49: DEBUG: storage_dat: 20220120-21:56.49 75.6 099 2022-01-20 21:56:51: ================================================ 2022-01-20 21:56:51: DEBUG: Modus: Hybrid (Line mode, Grid mode) 2022-01-20 21:56:53: DEBUG: PV_GES: 4334.794 2022-01-20 21:56:53: DEBUG Wert ACV1: 232.4 2022-01-20 21:56:53: DEBUG Wert ACV2: 233.7 2022-01-20 21:56:53: DEBUG Wert ACV3: 232.2 2022-01-20 21:56:53: DEBUG Wert ACC1: 0 2022-01-20 21:56:53: DEBUG Wert ACC2: 0 2022-01-20 21:56:53: DEBUG Wert ACC3: 0 2022-01-20 21:56:53: DEBUG Wert ACF: 49.99 2022-01-20 21:56:53: DEBUG Wert INTEMP: 028 2022-01-20 21:56:53: DEBUG Wert BOOT: 031 2022-01-20 21:56:53: DEBUG Wert DCINV1: 0 2022-01-20 21:56:53: DEBUG Wert DCINV2: 0 2022-01-20 21:56:53: DEBUG Wert DCINC1: 0 2022-01-20 21:56:53: DEBUG Wert DCINC2: 0 2022-01-20 21:56:53: DEBUG Wert DCPOW1: 0000 2022-01-20 21:56:53: DEBUG Wert DCPOW2: 0000 2022-01-20 21:56:53: DEBUG Wert BATTV: 54 2022-01-20 21:56:53: DEBUG Wert BATTCHAMP: 1.4 2022-01-20 21:56:53: DEBUG Wert BATTCAP: 099 2022-01-20 21:56:53: DEBUG Wert BATTPOWER: 75.6 2022-01-20 21:56:53: DEBUG Wert POWERDIR: input 2022-01-20 21:56:53: DEBUG: ges. PV in KWh: 4334.794 2022-01-20 21:56:53: DEBUG: akt. Leistung in Watt: 0 PHP Notice: Undefined variable: battstat in /etc/infinipoll10k/infinipoll10k.php on line 436 2022-01-20 21:56:53: DEBUG: Batterie Status: 2022-01-20 21:56:53: DEBUG: daypower_old: 008794 2022-01-20 21:56:53: DEBUG: daypower: 008794 2022-01-20 21:56:53: DEBUG: daybase: 4326 2022-01-20 21:56:53: DEBUG: INGS: 0020,0019,0019,0005,0006,0007,4080,4079,4079,4080,000 PHP Notice: Undefined variable: battstat in /etc/infinipoll10k/infinipoll10k.php on line 467 2022-01-20 21:56:53: Fehler beim Schreiben in die _string Datei /tmp/inv1/BATTSTAT.txt Start (weitere Meldungen werden unterdrueckt)! PHP Notice: Undefined variable: dcaccode in /etc/infinipoll10k/infinipoll10k.php on line 468 2022-01-20 21:56:53: Fehler beim Schreiben bereinigt! 2022-01-20 21:56:53: DEBUG: storage_dat: 20220120-21:56.53 75.6 099 2022-01-20 21:56:55: ================================================ 2022-01-20 21:56:55: DEBUG: Modus: Hybrid (Line mode, Grid mode) 2022-01-20 21:56:57: DEBUG: PV_GES: 4334.794 2022-01-20 21:56:57: DEBUG Wert ACV1: 231.8 2022-01-20 21:56:57: DEBUG Wert ACV2: 233.5 2022-01-20 21:56:57: DEBUG Wert ACV3: 231.6 2022-01-20 21:56:57: DEBUG Wert ACC1: 0 2022-01-20 21:56:57: DEBUG Wert ACC2: 0 2022-01-20 21:56:57: DEBUG Wert ACC3: 0 2022-01-20 21:56:57: DEBUG Wert ACF: 50.04 2022-01-20 21:56:57: DEBUG Wert INTEMP: 028 2022-01-20 21:56:57: DEBUG Wert BOOT: 031 2022-01-20 21:56:57: DEBUG Wert DCINV1: 0 2022-01-20 21:56:57: DEBUG Wert DCINV2: 0 2022-01-20 21:56:57: DEBUG Wert DCINC1: 0 2022-01-20 21:56:57: DEBUG Wert DCINC2: 0 2022-01-20 21:56:57: DEBUG Wert DCPOW1: 0000 2022-01-20 21:56:57: DEBUG Wert DCPOW2: 0000 2022-01-20 21:56:57: DEBUG Wert BATTV: 54 2022-01-20 21:56:57: DEBUG Wert BATTCHAMP: 1.4 2022-01-20 21:56:57: DEBUG Wert BATTCAP: 099 2022-01-20 21:56:57: DEBUG Wert BATTPOWER: 75.6 2022-01-20 21:56:57: DEBUG Wert POWERDIR: input 2022-01-20 21:56:57: DEBUG: ges. PV in KWh: 4334.794 2022-01-20 21:56:57: DEBUG: akt. Leistung in Watt: 0 PHP Notice: Undefined variable: battstat in /etc/infinipoll10k/infinipoll10k.php on line 436 2022-01-20 21:56:57: DEBUG: Batterie Status: 2022-01-20 21:56:57: DEBUG: daypower_old: 008794 2022-01-20 21:56:57: DEBUG: daypower: 008794 2022-01-20 21:56:57: DEBUG: daybase: 4326 2022-01-20 21:56:57: DEBUG: INGS: 0020,0019,0019,0005,0006,0007,4079,4077,4077,4077,000 PHP Notice: Undefined variable: battstat in /etc/infinipoll10k/infinipoll10k.php on line 467 2022-01-20 21:56:57: Fehler beim Schreiben in die _string Datei /tmp/inv1/BATTSTAT.txt Start (weitere Meldungen werden unterdrueckt)! PHP Notice: Undefined variable: dcaccode in /etc/infinipoll10k/infinipoll10k.php on line 468 2022-01-20 21:56:57: Fehler beim Schreiben bereinigt! 2022-01-20 21:56:57: DEBUG: storage_dat: 20220120-21:56.57 75.6 099 2022-01-20 21:57:00: ================================================

riogrande75 commented 2 years ago

Your inverter seems to have a problem with battery state of query P003PS. Can you pls. add the following debug command @line 302 (right after $antw = answer();): echo "**Blacksocket P003: $antw \n"; Pls. start script and send me the output of this command.

blacksocket commented 2 years ago

Below you can find the output. Please keep in mind that my battery is not connected via RS-485 yet.

PHP Warning: mkdir(): File exists in /etc/infinipoll10k/infinipoll10k.php on line 15 infinipoll10k.php[4695]: INFINIPOLL 10K A Neustart 2022-01-21 17:59:27: INFINIPOLL 10K A Neustart 2022-01-21 17:59:29: DEBUG: aktuelle Systemzeit: 20220121175929 2022-01-21 17:59:29: DEBUG: aktuelle Zeit im WR: 20220121175923 2022-01-21 17:59:29: ***NEW HOURSPOWER for hour 2022012100 0 Wh

2022-01-21 17:59:29: ***NEW HOURSPOWER for hour 2022012101 0 Wh

2022-01-21 17:59:29: ***NEW HOURSPOWER for hour 2022012102 0 Wh

2022-01-21 17:59:29: ***NEW HOURSPOWER for hour 2022012103 0 Wh

2022-01-21 17:59:30: ***NEW HOURSPOWER for hour 2022012104 0 Wh

2022-01-21 17:59:30: ***NEW HOURSPOWER for hour 2022012105 0 Wh

2022-01-21 17:59:30: ***NEW HOURSPOWER for hour 2022012106 0 Wh

2022-01-21 17:59:30: ***NEW HOURSPOWER for hour 2022012107 19 Wh

2022-01-21 17:59:31: ***NEW HOURSPOWER for hour 2022012108 125 Wh

2022-01-21 17:59:31: ***NEW HOURSPOWER for hour 2022012109 413 Wh

2022-01-21 17:59:31: ***NEW HOURSPOWER for hour 2022012110 866 Wh

2022-01-21 17:59:31: ***NEW HOURSPOWER for hour 2022012111 1541 Wh

2022-01-21 17:59:32: ***NEW HOURSPOWER for hour 2022012112 3404 Wh

2022-01-21 17:59:32: ***NEW HOURSPOWER for hour 2022012113 4822 Wh

2022-01-21 17:59:32: ***NEW HOURSPOWER for hour 2022012114 5208 Wh

2022-01-21 17:59:32: ***NEW HOURSPOWER for hour 2022012115 5242 Wh

2022-01-21 17:59:33: ***NEW HOURSPOWER for hour 2022012116 5254 Wh

2022-01-21 17:59:33: ***NEW HOURSPOWER for hour 2022012117 5254 Wh

2022-01-21 17:59:33: DEBUG: Today's power calced from hourscounter: 5254 Wh 2022-01-21 17:59:33: START:Daycounter not valid - get it from inverter 2022-01-21 17:59:33: START:Got KwH_total from inverter: 00004339 kWh 2022-01-21 17:59:33: START: Got WH_today from INV: 005254 Wh 2022-01-21 17:59:33: START: Calcualted PV_GES at start: 4339254 Wh 2022-01-21 17:59:33: START: Daybase at start: 4334 Wh 2022-01-21 17:59:33: START: daypower_old was set to 005254 Wh 2022-01-21 17:59:34: ================================================ 2022-01-21 17:59:34: DEBUG: Modus: Hybrid (Line mode, Grid mode) *Blacksocket P003: ^D10100000,00000,,+00020,+00017,+00019,+00056,0000,0000,0000,00000,0115,0138,0161,00414,004,1,0,0,1,1,1y▒ 2022-01-21 17:59:35: DEBUG: PV_GES: 4339.254 2022-01-21 17:59:35: DEBUG Wert ACV1: 230.7 2022-01-21 17:59:35: DEBUG Wert ACV2: 231.8 2022-01-21 17:59:35: DEBUG Wert ACV3: 230.9 2022-01-21 17:59:35: DEBUG Wert ACC1: 0 2022-01-21 17:59:35: DEBUG Wert ACC2: 0 2022-01-21 17:59:35: DEBUG Wert ACC3: 0 2022-01-21 17:59:35: DEBUG Wert ACF: 50.04 2022-01-21 17:59:35: DEBUG Wert INTEMP: 028 2022-01-21 17:59:35: DEBUG Wert BOOT: 031 2022-01-21 17:59:35: DEBUG Wert DCINV1: 0 2022-01-21 17:59:35: DEBUG Wert DCINV2: 0 2022-01-21 17:59:35: DEBUG Wert DCINC1: 0 2022-01-21 17:59:35: DEBUG Wert DCINC2: 0 2022-01-21 17:59:35: DEBUG Wert DCPOW1: 0000 2022-01-21 17:59:35: DEBUG Wert DCPOW2: 0000 2022-01-21 17:59:35: DEBUG Wert BATTV: 54 2022-01-21 17:59:35: DEBUG Wert BATTCHAMP: 1.4 2022-01-21 17:59:35: DEBUG Wert BATTCAP: 099 2022-01-21 17:59:35: DEBUG Wert BATTPOWER: 75.6 2022-01-21 17:59:35: DEBUG Wert POWERDIR: input 2022-01-21 17:59:35: DEBUG: ges. PV in KWh: 4339.254 2022-01-21 17:59:35: DEBUG: akt. Leistung in Watt: 0 PHP Notice: Undefined variable: battstat in /etc/infinipoll10k/infinipoll10k.php on line 437 2022-01-21 17:59:35: DEBUG: Batterie Status: 2022-01-21 17:59:35: DEBUG: daypower_old: 005254 2022-01-21 17:59:35: DEBUG: daypower: 005254 2022-01-21 17:59:35: DEBUG: daybase: 4334 2022-01-21 17:59:35: DEBUG: INGS: 0020,0019,0019,0005,0006,0007,4080,4080,4077,4079,000 PHP Notice: Undefined variable: battstat in /etc/infinipoll10k/infinipoll10k.php on line 468 2022-01-21 17:59:35: Fehler beim Schreiben in die _string Datei /tmp/inv1/BATTSTAT.txt Start (weitere Meldungen werden unterdrueckt)! PHP Notice: Undefined variable: dcaccode in /etc/infinipoll10k/infinipoll10k.php on line 469 2022-01-21 17:59:35: Fehler beim Schreiben bereinigt! 2022-01-21 17:59:35: DEBUG: storage_dat: 20220121-17:59.35 75.6 099 2022-01-21 17:59:38: ================================================

riogrande75 commented 2 years ago

Your answer of the command 003PS is a bit different to mine. Anyhow, the parsing mechanism was implemented (very) poorly, I will improve that soon.

blacksocket commented 2 years ago

Yes, indeed it works pretty well! ;-) Many thanks for your help! Just one question namely do you have any solution to present or visualizing these data in example with Grafana / influxDB or Home Assistant or Domoticz via mqtt ? I saw smoething similar i.e. here but for different inverter: https://github.com/ned-kelly/docker-voltronic-homeassistant/blob/master/config/mqtt.json https://github.com/ned-kelly/docker-voltronic-homeassistant/tree/master/sources/inverter-mqtt

riogrande75 commented 2 years ago

No, unfortunately not. But it should not be a big problem to adapt the scripts for your need.

I rewrote parsing mechanism and uploaded a new version of infinipoll10k. Pls. try it and give feedback.

blacksocket commented 2 years ago

Now it looks very well without any errors! I think you can close the case. Many thanks! ;-)

infinipoll10k.php[32563]: INFINIPOLL 10K Neustart 2022-01-24 23:46:13: INFINIPOLL 10K Neustart 2022-01-24 23:46:14: DEBUG: aktuelle Systemzeit: 20220124234614 2022-01-24 23:46:14: DEBUG: aktuelle Zeit im WR: 20220124234617 2022-01-24 23:46:14: HOURSPOWER for hour 2022012400: 00000 Wh 2022-01-24 23:46:14: HOURSPOWER for hour 2022012401: 00000 Wh 2022-01-24 23:46:15: HOURSPOWER for hour 2022012402: 00000 Wh 2022-01-24 23:46:15: HOURSPOWER for hour 2022012403: 00000 Wh 2022-01-24 23:46:15: HOURSPOWER for hour 2022012404: 00000 Wh 2022-01-24 23:46:15: HOURSPOWER for hour 2022012405: 00000 Wh 2022-01-24 23:46:16: HOURSPOWER for hour 2022012406: 00000 Wh 2022-01-24 23:46:16: HOURSPOWER for hour 2022012407: 00026 Wh 2022-01-24 23:46:16: HOURSPOWER for hour 2022012408: 00361 Wh 2022-01-24 23:46:16: HOURSPOWER for hour 2022012409: 01145 Wh 2022-01-24 23:46:17: HOURSPOWER for hour 2022012410: 00693 Wh 2022-01-24 23:46:17: HOURSPOWER for hour 2022012411: 00667 Wh 2022-01-24 23:46:17: HOURSPOWER for hour 2022012412: 00711 Wh 2022-01-24 23:46:17: HOURSPOWER for hour 2022012413: 00608 Wh 2022-01-24 23:46:18: HOURSPOWER for hour 2022012414: 00436 Wh 2022-01-24 23:46:18: HOURSPOWER for hour 2022012415: 00209 Wh 2022-01-24 23:46:18: HOURSPOWER for hour 2022012416: 00026 Wh 2022-01-24 23:46:18: HOURSPOWER for hour 2022012417: 00000 Wh 2022-01-24 23:46:19: HOURSPOWER for hour 2022012418: 00000 Wh 2022-01-24 23:46:19: HOURSPOWER for hour 2022012419: 00000 Wh 2022-01-24 23:46:19: HOURSPOWER for hour 2022012420: 00000 Wh 2022-01-24 23:46:19: HOURSPOWER for hour 2022012421: 00000 Wh 2022-01-24 23:46:20: HOURSPOWER for hour 2022012422: 00000 Wh 2022-01-24 23:46:20: HOURSPOWER for hour 2022012423: 00000 Wh 2022-01-24 23:46:20: DEBUG: Today's power calced from hourscounter: 4882 Wh 2022-01-24 23:46:20: START:Daycounter not valid - get it from inverter 2022-01-24 23:46:20: START:Got KwH_total from inverter: 00004348 kWh 2022-01-24 23:46:20: START: Got WH_today from INV: 004882 Wh 2022-01-24 23:46:20: START: Calcualted PV_GES at start: 4348882 Wh 2022-01-24 23:46:20: START: Daybase at start: 4344 Wh 2022-01-24 23:46:20: START: daypower_old was set to 004882 Wh 2022-01-24 23:46:21: DEBUG: 23:59 Uhr Abends, Tageszähler wird gespeichert 2022-01-24 23:46:21: DEBUG: DAYBASE_YESTERDAY: 4339.254 KWh 2022-01-24 23:46:21: ================================================ 2022-01-24 23:46:21: DEBUG: Modus: Hybrid (Line mode, Grid mode) 2022-01-24 23:46:23: DEBUG: PV_GES: 4348.882 2022-01-24 23:46:23: DEBUG Wert ACV1: 226.8 2022-01-24 23:46:23: DEBUG Wert ACV2: 228.5 2022-01-24 23:46:23: DEBUG Wert ACV3: 226.2 2022-01-24 23:46:23: DEBUG Wert ACC1: 0 2022-01-24 23:46:23: DEBUG Wert ACC2: 0 2022-01-24 23:46:23: DEBUG Wert ACC3: 0 2022-01-24 23:46:23: DEBUG Wert ACF: 50 2022-01-24 23:46:23: DEBUG Wert INTEMP: 028 2022-01-24 23:46:23: DEBUG Wert BOOT: 031 2022-01-24 23:46:23: DEBUG Wert DCINV1: 0 2022-01-24 23:46:23: DEBUG Wert DCINV2: 0 2022-01-24 23:46:23: DEBUG Wert DCINC1: 0 2022-01-24 23:46:23: DEBUG Wert DCINC2: 0 2022-01-24 23:46:23: DEBUG Wert DCPOW1: 00000 2022-01-24 23:46:23: DEBUG Wert DCPOW2: 00000 2022-01-24 23:46:23: DEBUG Wert BATTV: 54 2022-01-24 23:46:23: DEBUG Wert BATTCHAMP: 1.4 2022-01-24 23:46:23: DEBUG Wert BATTCAP: 099 2022-01-24 23:46:23: DEBUG Wert BATTPOWER: 75.6 2022-01-24 23:46:23: DEBUG Wert POWERDIR: input 2022-01-24 23:46:23: DEBUG: ges. PV in KWh: 4348.882 2022-01-24 23:46:23: DEBUG: akt. Leistung in Watt: 0 2022-01-24 23:46:23: DEBUG: Batterie Status: Laden 2022-01-24 23:46:23: DEBUG: daypower_old: 004882 2022-01-24 23:46:23: DEBUG: daypower: 004882 2022-01-24 23:46:23: DEBUG: daybase: 4344 2022-01-24 23:46:23: DEBUG: EMINFO 1:0 ACT:00000 FEED:00000 RES:00000 5:1 2022-01-24 23:46:23: DEBUG: storage_dat: 20220124-23:46.23 75.6 099 2022-01-24 23:46:25: DEBUG: 23:59 Uhr Abends, Tageszähler wird gespeichert 2022-01-24 23:46:25: DEBUG: DAYBASE_YESTERDAY: 4348.882 KWh 2022-01-24 23:46:25: ================================================