Tibber: use 15min interval (#24105)

This commit is contained in:
Ingo 2025-10-04 19:20:15 +02:00 • committed by GitHub
parent 290207a8c1
commit 36464708ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ type Address struct {
type Subscription struct {
ID string
Status string
PriceInfo PriceInfo
PriceInfo PriceInfo `graphql:"priceInfo(resolution: QUARTER_HOURLY)"`
}
type PriceInfo struct {

View file

@ -115,7 +115,7 @@ func (t *Tibber) rates(pi []tibber.Price) api.Rates {
}
ar := api.Rate{
Start: r.StartsAt.Local(),
End: r.StartsAt.Add(time.Hour).Local(),
End: r.StartsAt.Add(SlotDuration).Local(),
Value: price,
}
data = append(data, ar)