Documentation
¶
Index ¶
- Constants
- func NewIdentity(log *util.Logger, oc *oauth2.Config, token *oauth2.Token) (oauth2.TokenSource, error)
- func OAuth2Config(id, secret string) *oauth2.Config
- type CommandResponse
- type Controller
- type Identity
- type Provider
- func (v *Provider) ChargedEnergy() (float64, error)
- func (v *Provider) FinishTime() (time.Time, error)
- func (v *Provider) GetLimitSoc() (int64, error)
- func (v *Provider) Odometer() (float64, error)
- func (v *Provider) Range() (int64, error)
- func (v *Provider) Soc() (float64, error)
- func (v *Provider) Status() (api.ChargeStatus, error)
- func (v *Provider) WakeUp() error
- type Region
- type RegionResponse
- type Vehicle
- type VehicleData
Constants ¶
View Source
const ProxyBaseUrl = "https://api.myteslamate.com"
Variables ¶
This section is empty.
Functions ¶
func NewIdentity ¶
func OAuth2Config ¶
OAuth2Config is the OAuth2 configuration for authenticating with the Tesla API.
Types ¶
type CommandResponse ¶
type CommandResponse = tesla.CommandResponse
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(vehicle *tesla.Vehicle) *Controller
NewController creates a vehicle current and charge controller
func (*Controller) ChargeEnable ¶
func (v *Controller) ChargeEnable(enable bool) error
ChargeEnable implements the api.ChargeController interface
func (*Controller) MaxCurrent ¶
func (v *Controller) MaxCurrent(current int64) error
MaxCurrent implements the api.CurrentController interface
type Identity ¶
type Identity struct { oauth2.TokenSource // contains filtered or unexported fields }
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) ChargedEnergy ¶
ChargedEnergy implements the api.ChargeRater interface
func (*Provider) FinishTime ¶
FinishTime implements the api.VehicleFinishTimer interface
func (*Provider) GetLimitSoc ¶
GetLimitSoc implements the api.SocLimiter interface
type RegionResponse ¶
type RegionResponse struct {
Response Region
}
type VehicleData ¶
type VehicleData = tesla.VehicleData
Click to show internal directories.
Click to hide internal directories.