Skip to content

Conversation

@jlaur
Copy link
Contributor

@jlaur jlaur commented Mar 11, 2025

This is some preliminary work in preparation for spot prices in 15-minute resolution.

@jlaur jlaur added the work in progress A PR that is not yet ready to be merged label Mar 11, 2025
@jlaur jlaur changed the title [energidataservice] Add support for variable spot price duration [energidataservice] Add support for variable spot price resolution Mar 11, 2025
@jlaur jlaur force-pushed the energidataservice-duration branch from 44a4e38 to e3699e9 Compare April 5, 2025 20:57
@jlaur jlaur requested a review from Copilot April 6, 2025 09:10
Copy link
Contributor

Copilot AI left a 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();

@jlaur jlaur force-pushed the energidataservice-duration branch from e3699e9 to b3ed4c4 Compare April 10, 2025 21:20
@jlaur jlaur removed the work in progress A PR that is not yet ready to be merged label Apr 17, 2025
@jlaur jlaur marked this pull request as ready for review April 17, 2025 22:07
@jlaur jlaur requested a review from a team April 17, 2025 22:07
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@lsiepel lsiepel merged commit 0063b24 into openhab:main Apr 19, 2025
2 checks passed
@lsiepel lsiepel added this to the 5.0 milestone Apr 19, 2025
@jlaur jlaur deleted the energidataservice-duration branch April 19, 2025 09:46
jlaur added a commit to jlaur/openhab-addons that referenced this pull request Jun 30, 2025
kaikreuzer pushed a commit that referenced this pull request Jul 1, 2025
@jlaur jlaur added the backported A PR that has been cherry-picked to a patch release branch label Jul 1, 2025
phenix1990 pushed a commit to phenix1990/openhab-addons that referenced this pull request Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported A PR that has been cherry-picked to a patch release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants