-
Notifications
You must be signed in to change notification settings - Fork 1
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
Query timing changes data reported #8
Comments
Timing is hard here: to obtain "correct" timestamps, data must be obtained from EBAM, written to file, and queried by RPi-Monitor within the first minute of each hour. To consider:
Current plan:
|
Examples of the timing mismatch producing nonsense values: -32.195 in this case, where it should be either 4 or -99. (XREF XavierBerger/RPi-Monitor#276)
|
Calling data script at minute 0 instead of 1, with 5 second query delay, does not produce latest data record because of EBAM clock offset (10:59:49 vs 11:00:05 = 16sec behind):
Best (?) solution: set EBAM clock to intentionally run ~10sec ahead of RPi, so that data record is ready by start of new minute (xref #9)
|
The 5-min offset for data retrieval, combined with only hourly updates causes RPi-Monitor to interpolate the Status values, which makes decoding the flags very difficult.
Not sure how long the EBAM takes to generate an hourly report, but probably <5min.
To complicate data retrieval timing, the EBAM clock drifts independently of the Pi and needs to be accomodated.
The text was updated successfully, but these errors were encountered: