Documentation
¶
Index ¶
Constants ¶
View Source
const ( ApiURI = "https://pc-api.polestar.com/eu-north-1" ApiURIv2 = ApiURI + "/mystar-v2" )
View Source
const ( OAuthURI = "https://polestarid.eu.polestar.com" ClientID = "l3oopkc_10" RedirectURI = "https://www.polestar.com/sign-in-callback" )
OAuth endpoints and credentials
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatteryData ¶
type CarTelemetryData ¶
type CarTelemetryData struct { Battery BatteryData Odometer OdometerData }
type ConsumerCar ¶
type EventUpdatedTimestamp ¶
type Identity ¶
type Identity struct { *request.Helper oauth2.TokenSource // contains filtered or unexported fields }
func NewIdentity ¶
NewIdentity creates Polestar identity
type OdometerData ¶
type OdometerData struct { OdometerMeters float64 EventUpdatedTimestamp EventUpdatedTimestamp }
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) FinishTime ¶
FinishTime via car telemetry
Click to show internal directories.
Click to hide internal directories.