jeanmarc77 / 123solar

123Solar is a lightweight set of PHP/JS files that makes a web logger to monitor your photovoltaic inverter(s). It just need a web server and PHP, no databases are even needed. The philosophy is: To keep it simple, fast, with a low foot print to run on cheap and low powered devices.
GNU General Public License v3.0
36 stars 12 forks source link

Problems with more than one Bosswerk MI-600 inverter in the same grid #24

Closed soe135 closed 1 year ago

soe135 commented 1 year ago

Hello all, I'm using more than one MI-600 inverter in the same grid with 123solar. As I have found out so far is that the recent code in /scripts/protocols/mi600-webif.php is only working correctly with one inverter. In addition, there were often problems in reading the values from the webif of the inverter. So I had many 'jumping' power-values (spikes) in the 'index-chart' of the 123Solar logger. That's why I have adapted and rewritten some parts of the file mi600-webif.php. Now the code is working for me without any problems since a week and I decided to publish the changes for other users. If you find my changes helpful please feel free to implement these into your repository. I have attached my modified file under the following link

mi600-webif.zip

Best regards, soe135

jeanmarc77 commented 1 year ago

Hi Soe,

Thanks for you work, i believe you should push your code into https://github.com/dr-ni/123solar_mi600. Then it will surely push the code into 123s

It is wiser to use this as server path $SRVDIR = $_SERVER['DOCUMENT_ROOT']; $LOGFILE = "$SRVDIR/123solar/data/invt".$invt_num."/mi600.log"; .. Because some have /srv/http, /var/www/html or whatever

Thanks

soe135 commented 1 year ago

Hi jeanmarc77,

Thanks for your reply and the suggestion. I will change the file variables as you mentioned and then push the code into https://github.com/dr-ni/123solar_mi600.

Best regards, soe135