solmoller / eversolar-monitor

Script to capture data and create statistics from Eversolar/zeversolar Solar Inverters. Includes easy install image files for Raspberry Pi. Working edition since 2012 :-)
https://github.com/solmoller/eversolar-monitor/blob/wiki/Introduction.md
MIT License
30 stars 20 forks source link

Webserver only showing log window #43

Closed Reneke43 closed 4 years ago

Reneke43 commented 4 years ago

I've had this problem for quite some time now. I didn't look into it, because the values are pushed to my Domoticz server correctly. But I would like to know what's happening here. I only see the log window and no live output.

Schermafbeelding 2019-10-25 om 21 00 29
solmoller commented 4 years ago

Interesting, I've just checked mine, and it works fine. It appears though, that it loads the log first. Try disabling the log display and see if the other parts load..

Reneke43 commented 4 years ago

Uhm, and how/where would I do that? 😳 In the mean time I've tried Safari, Chrome and Firefox on my Mac and IE, Edge, Chrome and Firefox on Windows; I think it's fair to conclude it's not a browser/OS related issue...

solmoller commented 4 years ago

Sry for the delay. Go into the code and comment out the log display.

kiekerjan commented 4 years ago

I got the same issue. It seems that at least the option [database] log = 0 causes this. I think because only when log is enabled, the $inverters{$inverter}{"data"} structure is filled, which is used by the webserver to display data.

Reneke43 commented 4 years ago

I just saw your comment kiekerjan. I just found out the same after reinstalling the script on a clean Ubuntu server. To prevent a lot of writes to my SSD disk, I disabled the log. The first time I did this on my RPi, I didn't check the web interface. So when I did check it a few weeks later, I didn't connect the dots anymore. However, I'm no expert at Perl scripting. Is there a way to solve this and get the values for the web view somewhere else? Straight from the variables in stead of the database/log?

solmoller commented 4 years ago

do you have a db.sqlite file at all? That may be the culprit

Reneke43 commented 4 years ago

Yep, dB.sqlite is present and is being updated, as long as I have set “log = 1” in the ini file. As soon as I set “log = 0”, the webinterface changes.

kiekerjan commented 4 years ago

@Reneke43 I solved this in the referenced pull request. Unfortunately, It has become quite an involved change, including some database juggling and what not. If you only want that change, you'll still need some perl knowledge. But, I did not have that either when I started this so it shouldn't be too difficult. I have tested this for about 10 days, and it seems to be working as expected.