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
Possible solution to Cumulative totals resetting #1632
base: master
Are you sure you want to change the base?
Conversation
Thanks @borpin and sorry for the slow reply. Just noting that I've seen this at this point. Dont want to add it in without careful consideration, its strange that the redis entry exists and is then incorrect. You would expect the redis entry to not exist and for the last value to then be fetched from the feed data.. but it sounds like it's getting out of sync somehow.. |
I think the point is it can exist, but be an invalid value - if that wasn't true the checks would not already exist. Trouble is, currently, all the code does is set the time and value to This code attempts to then recover the situation. |
I have this kind of issue when I reboot my Emoncms instance (I host it on a VM). When I reboot, all my accumulators reset. If I download the data, it looks like this:
I will try the proposed modification. |
This issue (cumulative totals resetting) happened to me also.
I also opened a pull request: #1818 This solution works very well for me, I haven't found any side effect. I kindly ask to add it to the master branch, to give benefit to all users. |
Hello @borpin , |
This comment was marked as resolved.
This comment was marked as resolved.
I'm interested too |
@nicsergio @And2IT |
I haven't updated yet, I was following what was reported by @And2IT |
Sorry to all, I did a mistake saying that version 11.3.0 solved the issue. I confirm that 11.3.0 HAS the issue. |
I also confirm this. @nicsergio fix is still needed and is still working |
@TrystanLea Bump. |
Hello, |
@borpin |
I have seen this happen to me; i.e. the cumulative process resetting to zero.
Community discussion
https://community.openenergymonitor.org/t/correcting-cumulative-kwh-reset-with-post-process-module/4631/12
nicsergio suggested a fix to the get_timevalue() function. I have pulled that in here for discussion.
As it relates to one of your comments @chaveiro perhaps you could look at the logic. I am not suggesting this is correct just the user reports that the issue stopped for him when using this code.
Another user has noted this happening as well. https://community.openenergymonitor.org/t/how-is-post-processing-supposed-to-work/15478