Replies: 11 comments 9 replies
-
We have discussed this at length here: #539 and here: #542 |
Beta Was this translation helpful? Give feedback.
-
A look at the time interval in the picture above shows it's only two days. |
Beta Was this translation helpful? Give feedback.
-
If you mean our previous discussion regarding the SD card adapter for the NodeMCU, that doesn't really cost me a lot of time compared to refactoring the code the way you suggested it (plus the knowledge of adding SD card functionality to a NodeMCU device can come in handy for other projects). I didn't say that SD card logging is outdated, I said that there is no use-case once you do external logging via MQTT. There are, however, a number of cases where that is not easily possible (for example when running at at site with no (permanent) internet connection, such as a holiday home) and where SD card logging is a viable option. But in that case you don't need to differentiate between SD and MQTT logging intervals. As for your crashes, it's hard to diagnose from afar because as shown in the mentioned threads, we have done testing with far greater datasets without any problems: #539 (comment) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
You're welcome :) - as for the browser crash in Chrome, I remember that sometimes users have reported issues with different browsers (have to check if it was always Chrome), but I wonder if it's just a timeout problem or something else. Could you measure after which time Chrome crashes? If it's a "round" number of seconds/minutes, it might be a setting that can simply be adjusted. I'm not sure if BSB-LAN could change something in the code to prevent that because there is a continuous stream of data coming from BSB-LAN to the browser... |
Beta Was this translation helpful? Give feedback.
-
If it works in Firefox, but crashes in Chrome, it's likely to be a browser issue, not a problem with the BSB-LAN code, and as you seem to have Firefox available, I'd just use that then. What you could do to narrow the problem down is:
How much RAM does Chrome have available on your system? As for the separate log intervals for logging and MQTT: I do something similar by using custom code to send data via UDP to interested devices in my network, at a different interval from what I use for logging in BSB-LAN (different parameters, too) -> https://github.com/DE-cr/BSBmonCR, using "Variant 2". The logging in BSB-LAN I mostly use to analyze the boiler's behavior (and I re-configure the logging every once in a while), my custom one for "home automation" (well, mostly display) purposes. I very much appreciate that I can have the two separate. P.s. Your two days log should be about 2.5 MB large. Mine cannot grow this big, as I have no SD card in my system. However, loading about 90,000 data samples (distributed over 7 parameters) in the external datalog viewer does not crash my current version of Chromium. P.p.s. I'm not aware of a 10 KB filter in the current /DG implementation, only limiting it to a date range via the start/stop date controls. |
Beta Was this translation helpful? Give feedback.
-
Does the "Learn more" link offered by Chrome upon "crashing" provide helpful information? |
Beta Was this translation helpful? Give feedback.
-
Yes the "learn more" link offered by Chrome upon "crashing" provides helpful information! Yes the /D (instead of /DG) works alright and prints the log data directly in a Chrome webpage.
I downloaded locally the log file using wget and then launched your BSBmonCR_log_viewer.html file on a local webserver in Chrome. Is it what you mean? |
Beta Was this translation helpful? Give feedback.
-
Here it is: |
Beta Was this translation helpful? Give feedback.
-
Oh OK. I found the reason why I couldn't plot the log data in Chrome! So strange to me that this innocent extension is responsible for such an issue... |
Beta Was this translation helpful? Give feedback.
-
Is there still something open for discussion here or can I close this topic? |
Beta Was this translation helpful? Give feedback.
-
I am logging data on a SD card.
I am plotting those data using the "Plot log file" webpage (/DG option):
It works perfectly till a certain moment in time when data must be too numerous as after clicking on the "Plot log file" I reach this page:
... that remains the same for a long time till it crashes:
In my situation this occurs after 6 parameters being logged every 30 seconds for about 2 days.
And changing the time interval in that webpage before it crashes doesn't prevent it from crashing anyway (I'll test with a URL command that fixes the time interval to see if it works though).
Beta Was this translation helpful? Give feedback.
All reactions