Skip to content

Commit

Permalink
[energidataservice] Fix JRuby tabs (openhab#17005)
Browse files Browse the repository at this point in the history
* Fix JRuby tabs
* Fix Rule DSL example after breaking changes in PersistenceExtensions

Signed-off-by: Jacob Laursen <[email protected]>
  • Loading branch information
jlaur authored and matchews committed Oct 18, 2024
1 parent 990f862 commit d5f2ffe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bundles/org.openhab.binding.energidataservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ var result = edsActions.calculateCheapestPeriod(time.Instant.now(), time.Instant

:::

::: tabs JRuby
::: tab JRuby

```ruby
duration_phases = [37, 8, 4, 2, 4, 36, 41, 104].map { |duration| duration.minutes }
Expand Down Expand Up @@ -528,7 +528,7 @@ var result = edsActions.calculateCheapestPeriod(time.Instant.now(), time.Instant

:::

::: tabs JRuby
::: tab JRuby

```ruby
duration_phases = [37, 8, 4, 2, 4, 36, 41].map { |duration| duration.minutes }
Expand Down Expand Up @@ -899,7 +899,7 @@ result = eds.calculate_cheapest_period(ZonedDateTime.now.to_instant,

```java
var hourStart = now.plusHours(2).truncatedTo(ChronoUnit.HOURS)
var price = SpotPrice.historicState(hourStart).state
var price = SpotPrice.persistedState(hourStart).state
logInfo("Spot price two hours from now", price.toString)
```

Expand Down

0 comments on commit d5f2ffe

Please sign in to comment.