-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[energidataservice] Add support for variable spot price resolution #18379
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
Conversation
44a4e38 to
e3699e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
bundles/org.openhab.binding.energidataservice/src/main/java/org/openhab/binding/energidataservice/internal/provider/cache/SpotPriceSubscriptionCache.java:86
- Verify that subtracting the price duration from midnight correctly defines the caching boundary for both hourly and 15-minute resolutions, ensuring that edge cases are handled as intended.
Instant end = ZonedDateTime.of(date.plusDays(1), LocalTime.MIDNIGHT, NORD_POOL_TIMEZONE).minus(priceDuration).toInstant();
...penhab/binding/energidataservice/internal/provider/cache/SpotPriceSubscriptionCacheTest.java
Show resolved
Hide resolved
Signed-off-by: Jacob Laursen <[email protected]>
e3699e9 to
b3ed4c4
Compare
lsiepel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
This is some preliminary work in preparation for spot prices in 15-minute resolution.