tronity

package
v0.0.0-...-da4a797 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ReadCharge           = "tronity_charging" // Know whether vehicle is charging
	ReadLocation         = "tronity_location" // Last known location
	ReadOdometer         = "tronity_odometer" // Retrieve total distance traveled
	ReadRange            = "tronity_range"    // Last known range information
	WriteChargeStartStop = "tronity_control_charging"
)
View Source
const URI = "https://api.tronity.tech"

Variables

This section is empty.

Functions

func OAuth2Config

func OAuth2Config(id, secret string) (*oauth2.Config, error)

Types

type Bulk

type Bulk struct {
	Odometer  float64
	Range     float64
	Level     float64
	Charging  string
	Plugged   bool
	Latitude  float64
	Longitude float64
	Timestamp int64
}

type EVBatteryLevel

type EVBatteryLevel struct {
	Range     float64
	Level     float64
	Timestamp int64
}

type EVChargingStatus

type EVChargingStatus struct {
	Charging  string
	Timestamp int64
}

type Location

type Location struct {
	// Latitude  float64/string
	// Longitude float64/string
	Timestamp int64
}

type Odometer

type Odometer struct {
	Odometer  float64
	Timestamp float64
}

type Vehicle

type Vehicle struct {
	ID          string
	VIN         string
	DisplayName string
	Manufacture string
	Scopes      []string
}

type Vehicles

type Vehicles struct {
	Data []Vehicle
}

Jump to

Keyboard shortcuts

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