cmd

package
v0.0.0-...-7c563b5 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetTeslaVehicle

func GetTeslaVehicle() struct{ *tesla.Vehicle }

GetTeslaVehicle returns a Tesla vehicle object with active API connection

func KwhCapacity

func KwhCapacity(v struct{ *tesla.Vehicle }) int

KwhCapacity determines the max battery capacity in kWh based on option codes

func KwhRemaining

func KwhRemaining(v struct{ *tesla.Vehicle }) float64

KwhRemaining calculates the vehicle's remaining kWh

Types

This section is empty.

Jump to

Keyboard shortcuts

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