Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main graph does not load #1

Open
hardtomakeanadress opened this issue Jun 19, 2017 · 4 comments
Open

Main graph does not load #1

hardtomakeanadress opened this issue Jun 19, 2017 · 4 comments

Comments

@hardtomakeanadress
Copy link

Hello!
I want to thank you for this project, it was exactly what I was looking for, you saved me a lot of time and I really appreciate your work on this.

This is my setup:
DHTPIN 2
RELAYPIN = 3

I am using an ESP8266 (ESP-01) and I am forced to use the RX pin (GPIO3) as an OUPUT, because if I try to use the existing PIN GPIO0, the module would not boot. Because of using the RX PIN, I had to delete all reference to Serial and also make small modifications in the code ( I am not really a C++ programmer :) ) . After running for a couple of minutes, the main graph fails to load, and if i Clear the data, then is OK again, for some time. I do not think i browser related, but something with the sensor, I am not really sure.
I hope you can look into this, thank you again.

1
2
3
4
5
ESP8266-DHT_modified.txt

@dmainmon
Copy link
Owner

Hi. Thanks for the feedback. It's been a while since I've looked at the code for this project. However, I still use it in my pump house every winter to keep things from freezing up. It still works great.

However, I do recall having an issue that sound exactly like the one you are having. Clearing the data always seemed to fix the issue. I'll try to do some testing to prod my memory. It had something to do with Data Sample Rate. I think if this was set to Low (fast sampling) the data would become corrupted. If the value is raised, it should stop happening. I think. I'll have to test to be sure. This is why clearing the data would solve the problem, for a while, until it became corrupted again. Possibly due to trying to write data before the other write operation has finished. Or the maximum data storage is reached. Again, just guessing without testing.

@dmainmon
Copy link
Owner

dmainmon commented Aug 21, 2018

Just took a closer look at your picture with the "undefined" error. Another guess. The data sample rate is too fast. It looks like the data received from the sensor is incomplete, perhaps it is being called too fast.

@hardtomakeanadress
Copy link
Author

hardtomakeanadress commented Aug 22, 2018 via email

@frilovic
Copy link

the problem is that "fs.h" has a bug, (known)
opening the temp file doesn't open it clean.
and in the first line strange characters are added to the end of the data.
solution: when saving the data add a blank space, and when deleting a line write only up to blank space instead of up to "\ n"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants