diff --git a/meter/tibber/types.go b/meter/tibber/types.go index 00fe38e92..33d24b836 100644 --- a/meter/tibber/types.go +++ b/meter/tibber/types.go @@ -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 { diff --git a/tariff/tibber.go b/tariff/tibber.go index 1d4a0940b..ee93c9347 100644 --- a/tariff/tibber.go +++ b/tariff/tibber.go @@ -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)