evcc-io/tariff/amber/types.go
2024-03-29 13:27:03 +01:00

19 lines
622 B
Go

package amber
const URI = "https://api.amber.com.au/v1/sites/%s/prices?resolution=30"
type PriceInfo struct {
Type string `json:"type"`
Date string `json:"date"`
Duration int `json:"duration"`
StartTime string `json:"startTime"`
EndTime string `json:"endTime"`
NemTime string `json:"nemTime"`
PerKwh float64 `json:"perKwh"`
Renewables float64 `json:"renewables"`
SpotPerKwh float64 `json:"spotPerKwh"`
ChannelType string `json:"channelType"`
SpikeStatus string `json:"spikeStatus"`
Descriptor string `json:"descriptor"`
Estimate bool `json:"estimate"`
}