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

Log on web interface not showing last line in logfile #52

Closed ronbuist closed 3 years ago

ronbuist commented 3 years ago

Hi all,

First of all: thanks for this wonderful project. My dad has a TL4000 inverter and was using a Zeversolar PMU in combination with the Zevercloud website. This worked reasonably well for quite some time albeit with some glitches, but somewhere last month it stopped working altogether. I had a Raspberry Pi B laying around, so I installed the Eversolar monitor software and got the right hardware. It's working very well and I'm using the JSON output to feed the data into a separate RPi 3B+ running Home Assistant.

There's just one weird thing I encountered: the web interface does not show the very last line of the log file (which should be shown as the very first in the web interface since the order of the lines is reversed). Even if I refresh the web page, I'm not getting the most recent log line in the web interface. I tried manually adding a line in /var/log/eversolar and after a refresh, everything was shown again except for the last line. Am I the only one seeing this?

I'm using a RPi B, have the latest version of Raspbian Lite installed on it and installed the Eversolar Monitor by following the Wiki page.

solmoller commented 3 years ago

Interesting, I haven't been able to test so far, but you can try debugging around database entry first - an SQL statement that returns latest line every minute or so from a command line should allow you to see if it's a display problem, and that is what I gather it is