evcc-io/tariff/tibber/api.go
andig 986d73489d
Some checks failed
Build / Build (push) Failing after 6m48s
Build / Build UI (push) Failing after 1m29s
Validate Schema / build (push) Failing after 3s
Build / Publish :latest (push) Has been skipped
Build / Publish :release (push) Has been skipped
Build / Release (push) Has been skipped
Add Awattar and Tibber (#1169)
2021-07-24 11:53:05 +02:00

37 lines
570 B
Go

package tibber
import (
"time"
)
const URI = "https://api.tibber.com/v1-beta/gql"
type Home struct {
ID string
TimeZone string
Address Address
MeteringPointData struct {
GridCompany string
}
}
type Address struct {
Address1, PostalCode, City, Country string
}
type Subscription struct {
ID string
Status string
PriceInfo struct {
Current PriceInfo
Today []PriceInfo
// Tomorrow []PriceInfo
}
}
type PriceInfo struct {
Level string
StartsAt time.Time
Total float64
// Energy, Tax float64
}