daheimladen

package
v0.0.0-...-fe68c91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AVAILABLE ChargePointStatus = "Available"
	PREPARING ChargePointStatus = "Preparing"
	CHARGING  ChargePointStatus = "Charging"
	FINISHING ChargePointStatus = "Finishing"
	FAULTED   ChargePointStatus = "Faulted"

	REMOTE_START_ACCEPTED RemoteStartStatus = "Accepted"
	REMOTE_START_REJECTED RemoteStartStatus = "Rejected"

	REMOTE_STOP_ACCEPTED RemoteStopStatus = "Accepted"
	REMOTE_STOP_REJECTED RemoteStopStatus = "Rejected"

	CHANGE_CONFIG_ACCEPTED ChangeConfigStatus = "Accepted"
	CHANGE_CONFIG_REJECTED ChangeConfigStatus = "Rejected"

	CHARGE_RATE ConfigKey = "ChargeRate"

	EVCC_IDTAG string = "evcc"
)
View Source
const BASE_URL string = "https://api.daheimladen.com/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeConfigStatus

type ChangeConfigStatus string

type ChangeConfigurationRequest

type ChangeConfigurationRequest struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type ChangeConfigurationResponse

type ChangeConfigurationResponse struct {
	Status string `json:"status"`
}

type ChargePointStatus

type ChargePointStatus string

type ConfigKey

type ConfigKey string

type GetConfigurationRequest

type GetConfigurationRequest struct {
	Key string `json:"key"`
}

type GetConfigurationResponse

type GetConfigurationResponse struct {
	ReadOnly bool   `json:"readonly"`
	Value    string `json:"value"`
}

type GetLatestInProgressTransactionResponse

type GetLatestInProgressTransactionResponse struct {
	TransactionID int32 `json:"transaction_id"`
}

type GetLatestMeterValueResponse

type GetLatestMeterValueResponse struct {
	ChargingStationID          string  `json:"charging_station_id"`
	ConnectorID                int32   `json:"connector_id"`
	ActivePowerImport          float32 `json:"active_power_import"`
	CurrentImportPhaseL1       float32 `json:"current_import_phasel1"`
	CurrentImportPhaseL2       float32 `json:"current_import_phasel2"`
	CurrentImportPhaseL3       float32 `json:"current_import_phasel3"`
	EnergyActiveImportRegister float32 `json:"energy_active_import_register"`
	Timestamp                  string  `json:"timestamp"`
}

type GetLatestStatus

type GetLatestStatus struct {
	ChargingStationID    string  `json:"charging_station_id"`
	Status               string  `json:"status"`
	ActivePowerImport    float32 `json:"active_power_import"`
	TotalMeterValue      int64   `json:"total_meter_value"`
	VoltagePhaseL1L2     float32 `json:"voltage_phase_l1l2"`
	VoltagePhaseL2L3     float32 `json:"voltage_phase_l2l3"`
	VoltagePhaseL3L1     float32 `json:"voltage_phase_l3l1"`
	CurrentImportPhaseL1 float32 `json:"current_import_phase_l1"`
	CurrentImportPhaseL2 float32 `json:"current_import_phase_l2"`
	CurrentImportPhaseL3 float32 `json:"current_import_phase_l3"`
	Temperature          int32   `json:"charging_station_temperature"`
	CurrentTime          string  `json:"current_time"`
	TransactionStartAt   string  `json:"transaction_start_at"`
	TranasctionPowerUsed int64   `json:"transaction_power_used"`
}

type RemoteStartRequest

type RemoteStartRequest struct {
	ConnectorID int32  `json:"connector_id"`
	IdTag       string `json:"idtag"`
}

type RemoteStartResponse

type RemoteStartResponse struct {
	Status string `json:"status"`
}

type RemoteStartStatus

type RemoteStartStatus string

type RemoteStopRequest

type RemoteStopRequest struct {
	TransactionID int32 `json:"transaction_id"`
}

type RemoteStopResponse

type RemoteStopResponse struct {
	Status string `json:"status"`
}

type RemoteStopStatus

type RemoteStopStatus string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL