vitotai / BrewPiLess

Use an ESP8266 to replace RPI and Arduino. Running BrewPi without Pi, therefore, BrewPi-Less
352 stars 130 forks source link

Large log file size prevents graph populating #258

Open FermentHorizon opened 4 years ago

FermentHorizon commented 4 years ago

I'm having an issue where after a week or so, the graph stops populating. Speaking to others suggested it was a log file size issue and as soon as I deleted my log and created a new one, the graph populated again straight away.

Screen Shot 2020-08-07 at 9 00 37 pm
allthepies commented 4 years ago

I commented on the Facebook group thread about this issue;

When I had a similar problem I found that the logfile size was getting to the point where the UI Javascript was timing out accessing the logfile (could see this in chrome developer tools). I no longer use logging due to this.

I did wonder if a clever algorithm could be used to reduce the logfile size when being accessed for UI purposes but didn't explore further.

vitotai commented 4 years ago

I knew it would happen. I had this issue from the very beginning when testing HTML/JS files of 100k+ size. Formatting SPIFFS every few brews to keep SPIFFS in good shape would help. However, LittleFS is the way to go.

https://github.com/esp8266/Arduino/pull/7263

lbussy commented 4 years ago

I moved to LittleFS for Brew Bubbles and the documentation to change the words took longer than the code changes. Unless you are doing something Uber-esoteric, it should be a handful of changes.