package
Version:
v0.0.0-...-3cdd1f1
Opens a new window with list of versions in this module.
Published: Apr 25, 2021
License: EUPL-1.2
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
URL = "https://mijn.easyenergy.com/nl/api/tariff/getapxtariffs"
)
Client is a HTTP client for the EasyEnergy API
NewClient creates a new HTTP client for the EasyEnergy API
Get retrieves the latest data from the EasyEnergy API
GetSenML collects measurements from EasyEnergy and converts them to SenML
type EnergyTariff struct {
Time time.Time `json:"Timestamp"`
SupplierID int `json:"SupplierId"`
TariffUsage float64 `json:"TariffUsage"`
TariffReturn float64 `json:"TariffReturn"`
}
EnergyTariff represents an hourly energy price from a supplier
type Error struct {
Message string
}
Error represents an error message from the API
Error returns the error for this Error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.