tesla

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by github.com/DIMO-Network/model-garage DO NOT EDIT.

Code generated by github.com/DIMO-Network/model-garage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChassisAxleRow1WheelLeftTirePressureFromTesla

func ChassisAxleRow1WheelLeftTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

ChassisAxleRow1WheelLeftTirePressureFromTesla converts the given JSON data to a float64.

func ChassisAxleRow1WheelRightTirePressureFromTesla

func ChassisAxleRow1WheelRightTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

ChassisAxleRow1WheelRightTirePressureFromTesla converts the given JSON data to a float64.

func ChassisAxleRow2WheelLeftTirePressureFromTesla

func ChassisAxleRow2WheelLeftTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

ChassisAxleRow2WheelLeftTirePressureFromTesla converts the given JSON data to a float64.

func ChassisAxleRow2WheelRightTirePressureFromTesla

func ChassisAxleRow2WheelRightTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

ChassisAxleRow2WheelRightTirePressureFromTesla converts the given JSON data to a float64.

func CurrentLocationLatitudeFromTesla

func CurrentLocationLatitudeFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

CurrentLocationLatitudeFromTesla converts the given JSON data to a float64.

func CurrentLocationLongitudeFromTesla

func CurrentLocationLongitudeFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

CurrentLocationLongitudeFromTesla converts the given JSON data to a float64.

func ExteriorAirTemperatureFromTesla

func ExteriorAirTemperatureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

ExteriorAirTemperatureFromTesla converts the given JSON data to a float64.

func PowertrainRangeFromTesla

func PowertrainRangeFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

PowertrainRangeFromTesla converts the given JSON data to a float64.

func PowertrainTractionBatteryChargingAddedEnergyFromTesla

func PowertrainTractionBatteryChargingAddedEnergyFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

PowertrainTractionBatteryChargingAddedEnergyFromTesla converts the given JSON data to a float64.

func PowertrainTractionBatteryChargingChargeLimitFromTesla

func PowertrainTractionBatteryChargingChargeLimitFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

PowertrainTractionBatteryChargingChargeLimitFromTesla converts the given JSON data to a float64.

func PowertrainTractionBatteryChargingIsChargingFromTesla

func PowertrainTractionBatteryChargingIsChargingFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

PowertrainTractionBatteryChargingIsChargingFromTesla converts the given JSON data to a float64.

func PowertrainTractionBatteryCurrentPowerFromTesla

func PowertrainTractionBatteryCurrentPowerFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

PowertrainTractionBatteryCurrentPowerFromTesla converts the given JSON data to a float64.

func PowertrainTractionBatteryStateOfChargeCurrentFromTesla

func PowertrainTractionBatteryStateOfChargeCurrentFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

PowertrainTractionBatteryStateOfChargeCurrentFromTesla converts the given JSON data to a float64.

func PowertrainTransmissionTravelledDistanceFromTesla

func PowertrainTransmissionTravelledDistanceFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

PowertrainTransmissionTravelledDistanceFromTesla converts the given JSON data to a float64.

func SignalsFromTesla

func SignalsFromTesla(baseSignal vss.Signal, jsonData []byte) ([]vss.Signal, []error)

SignalsFromV1Data creates a slice of vss.Signal from the given v1 status JSON data. On error, partial results may be returned.

func SpeedFromTesla

func SpeedFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)

SpeedFromTesla converts the given JSON data to a float64.

func ToChassisAxleRow1WheelLeftTirePressure0

func ToChassisAxleRow1WheelLeftTirePressure0(originalDoc []byte, val float64) (float64, error)

ToChassisAxleRow1WheelLeftTirePressure0 converts data from field 'vehicle_state.tpms_pressure_fl' of type float64 to 'Vehicle.Chassis.Axle.Row1.Wheel.Left.Tire.Pressure' of type float64. Vehicle.Chassis.Axle.Row1.Wheel.Left.Tire.Pressure: Tire pressure in kilo-Pascal. Unit: 'kPa'

func ToChassisAxleRow1WheelRightTirePressure0

func ToChassisAxleRow1WheelRightTirePressure0(originalDoc []byte, val float64) (float64, error)

ToChassisAxleRow1WheelRightTirePressure0 converts data from field 'vehicle_state.tpms_pressure_fr' of type float64 to 'Vehicle.Chassis.Axle.Row1.Wheel.Right.Tire.Pressure' of type float64. Vehicle.Chassis.Axle.Row1.Wheel.Right.Tire.Pressure: Tire pressure in kilo-Pascal. Unit: 'kPa'

func ToChassisAxleRow2WheelLeftTirePressure0

func ToChassisAxleRow2WheelLeftTirePressure0(originalDoc []byte, val float64) (float64, error)

ToChassisAxleRow2WheelLeftTirePressure0 converts data from field 'vehicle_state.tpms_pressure_rl' of type float64 to 'Vehicle.Chassis.Axle.Row2.Wheel.Left.Tire.Pressure' of type float64. Vehicle.Chassis.Axle.Row2.Wheel.Left.Tire.Pressure: Tire pressure in kilo-Pascal. Unit: 'kPa'

func ToChassisAxleRow2WheelRightTirePressure0

func ToChassisAxleRow2WheelRightTirePressure0(originalDoc []byte, val float64) (float64, error)

ToChassisAxleRow2WheelRightTirePressure0 converts data from field 'vehicle_state.tpms_pressure_rr' of type float64 to 'Vehicle.Chassis.Axle.Row2.Wheel.Right.Tire.Pressure' of type float64. Vehicle.Chassis.Axle.Row2.Wheel.Right.Tire.Pressure: Tire pressure in kilo-Pascal. Unit: 'kPa'

func ToCurrentLocationLatitude0

func ToCurrentLocationLatitude0(originalDoc []byte, val float64) (float64, error)

ToCurrentLocationLatitude0 converts data from field 'drive_state.latitude' of type float64 to 'Vehicle.CurrentLocation.Latitude' of type float64. Vehicle.CurrentLocation.Latitude: Current latitude of vehicle in WGS 84 geodetic coordinates, as measured at the position of GNSS receiver antenna. Unit: 'degrees' Min: '-90' Max: '90'

func ToCurrentLocationLongitude0

func ToCurrentLocationLongitude0(originalDoc []byte, val float64) (float64, error)

ToCurrentLocationLongitude0 converts data from field 'drive_state.longitude' of type float64 to 'Vehicle.CurrentLocation.Longitude' of type float64. Vehicle.CurrentLocation.Longitude: Current longitude of vehicle in WGS 84 geodetic coordinates, as measured at the position of GNSS receiver antenna. Unit: 'degrees' Min: '-180' Max: '180'

func ToExteriorAirTemperature0

func ToExteriorAirTemperature0(originalDoc []byte, val float64) (float64, error)

ToExteriorAirTemperature0 converts data from field 'climate_state.outside_temp' of type float64 to 'Vehicle.Exterior.AirTemperature' of type float64. Vehicle.Exterior.AirTemperature: Air temperature outside the vehicle. Unit: 'celsius'

func ToPowertrainRange0

func ToPowertrainRange0(originalDoc []byte, val float64) (float64, error)

ToPowertrainRange0 converts data from field 'charge_state.battery_range' of type float64 to 'Vehicle.Powertrain.Range' of type float64. Vehicle.Powertrain.Range: Remaining range in meters using all energy sources available in the vehicle. Unit: 'm'

func ToPowertrainTractionBatteryChargingAddedEnergy0

func ToPowertrainTractionBatteryChargingAddedEnergy0(originalDoc []byte, val float64) (float64, error)

ToPowertrainTractionBatteryChargingAddedEnergy0 converts data from field 'charge_state.charge_energy_added' of type float64 to 'Vehicle.Powertrain.TractionBattery.Charging.AddedEnergy' of type float64. Vehicle.Powertrain.TractionBattery.Charging.AddedEnergy: Amount of charge added to the high voltage battery during the current charging session, expressed in kilowatt-hours. Unit: 'kWh'

func ToPowertrainTractionBatteryChargingChargeLimit0

func ToPowertrainTractionBatteryChargingChargeLimit0(originalDoc []byte, val float64) (float64, error)

ToPowertrainTractionBatteryChargingChargeLimit0 converts data from field 'charge_state.charge_limit_soc' of type float64 to 'Vehicle.Powertrain.TractionBattery.Charging.ChargeLimit' of type float64. Vehicle.Powertrain.TractionBattery.Charging.ChargeLimit: Target charge limit (state of charge) for battery. Unit: 'percent' Min: '0' Max: '100'

func ToPowertrainTractionBatteryChargingIsCharging0

func ToPowertrainTractionBatteryChargingIsCharging0(originalDoc []byte, val string) (float64, error)

ToPowertrainTractionBatteryChargingIsCharging0 converts data from field 'charge_state.charging_state' of type string to 'Vehicle.Powertrain.TractionBattery.Charging.IsCharging' of type float64. Vehicle.Powertrain.TractionBattery.Charging.IsCharging: True if charging is ongoing. Charging is considered to be ongoing if energy is flowing from charger to vehicle.

func ToPowertrainTractionBatteryCurrentPower0

func ToPowertrainTractionBatteryCurrentPower0(originalDoc []byte, val float64) (float64, error)

ToPowertrainTractionBatteryCurrentPower0 converts data from field 'drive_state.power' of type float64 to 'Vehicle.Powertrain.TractionBattery.CurrentPower' of type float64. Vehicle.Powertrain.TractionBattery.CurrentPower: Current electrical energy flowing in/out of battery. Positive = Energy flowing in to battery, e.g. during charging. Negative = Energy flowing out of battery, e.g. during driving. Unit: 'W'

func ToPowertrainTractionBatteryStateOfChargeCurrent0

func ToPowertrainTractionBatteryStateOfChargeCurrent0(originalDoc []byte, val float64) (float64, error)

ToPowertrainTractionBatteryStateOfChargeCurrent0 converts data from field 'charge_state.battery_level' of type float64 to 'Vehicle.Powertrain.TractionBattery.StateOfCharge.Current' of type float64. Vehicle.Powertrain.TractionBattery.StateOfCharge.Current: Physical state of charge of the high voltage battery, relative to net capacity. This is not necessarily the state of charge being displayed to the customer. Unit: 'percent' Min: '0' Max: '100.0'

func ToPowertrainTransmissionTravelledDistance0

func ToPowertrainTransmissionTravelledDistance0(originalDoc []byte, val float64) (float64, error)

ToPowertrainTransmissionTravelledDistance0 converts data from field 'vehicle_state.odometer' of type float64 to 'Vehicle.Powertrain.Transmission.TravelledDistance' of type float64. Vehicle.Powertrain.Transmission.TravelledDistance: Odometer reading, total distance travelled during the lifetime of the transmission. Unit: 'km'

func ToSpeed0

func ToSpeed0(originalDoc []byte, val float64) (float64, error)

ToSpeed0 converts data from field 'drive_state.speed' of type float64 to 'Vehicle.Speed' of type float64. Vehicle.Speed: Vehicle speed. Unit: 'km/h'

Types

This section is empty.

Directories

Path Synopsis
Package fingerprint provides decoding for Tesla fingerprint payloads.
Package fingerprint provides decoding for Tesla fingerprint payloads.
Package status converts Tesla CloudEvents to ClickHouse-ready slices of signals.
Package status converts Tesla CloudEvents to ClickHouse-ready slices of signals.

Jump to

Keyboard shortcuts

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