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

Number of fixes to the Metervalue implementation for 2.0.1 #448

Merged
merged 7 commits into from
Feb 14, 2024

Conversation

marcemmers
Copy link
Contributor

  • Configurable rounding of clock aligned timestamps
  • Filtering of tx ended meter values after the transaction has ended
  • Correctly aligning the sampled data to the start of the transaction
  • Clearing of accumulated metervalues before starting a transaction to clear out the idle metervalues
  • Fix edge case where transaction start time is before an interval and code is run after an interval

@marcemmers marcemmers requested a review from Pietfried February 8, 2024 13:08
}
],
"description": "If enabled the metervalues configured with the AlignedDataCtrlr will be rounded to the exact time intervals",
"default": "0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"default": "0",
"default": true,

I just noticed that this is an issue at several other places

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep that's what made me unsure if this was right. Shall I change those as well?

Also, I thought to leave it off by default or would you rather have it enabled?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, would be great if you can change all of them, thanks 👍 . Leave it off by default is fine for me

marcemmers and others added 7 commits February 14, 2024 15:22
… data: start from the transaction start date/time. Also include the clock aligned metervalue if it the timestamp is the same as the started timestamp

Signed-off-by: Maaike Zijderveld, Alfen <[email protected]>
Signed-off-by: Marc Emmers <[email protected]>
@marcemmers marcemmers force-pushed the me-clock-aligned-metervalues branch from 8ba99fd to 7653123 Compare February 14, 2024 14:39
@marcemmers marcemmers merged commit 674a5b7 into main Feb 14, 2024
4 checks passed
@marcemmers marcemmers deleted the me-clock-aligned-metervalues branch February 14, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clock aligned metervalues are not really clock aligned. Add configureable alignment of timestamps.
3 participants