-
Notifications
You must be signed in to change notification settings - Fork 25
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
Invalid rain statistics values #202
Comments
@tonbor I need your debug log file to analyze this. |
18:54:39.536 -> [115316][D][RainGauge.cpp:194] prefs_load(): lastUpdate =1732730077 |
19:18:59.586 -> [426578][D][RainGauge.cpp:194] prefs_load(): lastUpdate =1732731517 |
Which |
non, comment out sleep |
What is the interval between messages containing valid rain values then? The short log snippets you provided do not show this. |
Will look in my source tomorrow. Did buy Heltec T190 with sx1262, will adjust source and adjust config file for this board. See if get the same outcome for rain and not blocking messages from other source then my weatherstation and Bresser sensors. |
Another - most likely - cause for the wrong rain values could be the reception of another weather sensor's rain value (or some radio signal which is misinterpreted as that). To check this, please have a look at the message decoding in the debug log. |
Well I have at the monent two readers running. One compiled half year ago a Heltec V3 sx1262. With yet correct readings. One yesterday compiled with the latest Bresser update an ESP32 S3 with RW95 (sx1276) with now wrong rain readings and multi readings channels. Before the compiler update it was working fine. |
debug:10:30:28.152 -> [181904][D][WeatherSensor.cpp:351] getMessage(): [SX1276] R [D4] RSSI: -91.5 |
We'd need more debug output like
and the parameters passed to |
A brand new Heltec T190 and this is the rain start |
@tonbor I noticed from a GitHub mail that you reported that the issue was caused by an unstable power supply, but I cannot find your comment in any of the issues you created. Can this issue be closed then? |
Well the problem is starting the first time reading the sensor when the sensor has a value from the past and the module has none. Then hour, day week and month gets the wrong values. |
The software should handle this correctly:
Since I'm implemented some unit tests for this part of the software (which are run as GitHub actions CI), nobody else reported any problems and I use the library in my own projects, I assume that it works correctly. The only thing which is not quite correct is the handling of BresserWeatherSensorReceiver/src/RainGauge.h Line 236 in 617a1f1
You should pass a pointer to a bool valid; variable to it and use the function's return value only if valid is true.
Besides, I am quite confused by the mix of information you provided - three issues, different boards, library versions, IDE versions, example codes snippets (MQTT vs. Domoticz), power supply issues, ... I you still think there is a SW issue (I don't say this is impossible...), please provide a complete log file spanning over a few transmission cycles, with accurate information (as requested in the issue templates) and point me in the right direction... Otherwise I'm not inclined to spend my spare time on analyzing small bits of the big picture... |
Still a problem, erased memory with Erase All Flash Before Sketch Upload: Enabled, no more ssi in memory, still false rain info ->
Originally posted by @tonbor in #190 (comment)
The text was updated successfully, but these errors were encountered: