Tibber: use 15min interval (#24105)
This commit is contained in:
parent
290207a8c1
commit
36464708ca
2 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue