Documentation ¶
Overview ¶
Package autopi holds decoding functions for Ruptela status payloads.
Code generated by github.com/DIMO-Network/model-garage.
Code generated by github.com/DIMO-Network/model-garage DO NOT EDIT.
Code generated by github.com/DIMO-Network/model-garage DO NOT EDIT.
Index ¶
- Constants
- func AngularVelocityYawFromV1Data(jsonData []byte) (ret float64, err error)
- func AngularVelocityYawFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func ChassisAxleRow1WheelLeftSpeedFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow1WheelLeftSpeedFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func ChassisAxleRow1WheelLeftTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow1WheelLeftTirePressureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func ChassisAxleRow1WheelRightSpeedFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow1WheelRightSpeedFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func ChassisAxleRow1WheelRightTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow1WheelRightTirePressureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func ChassisAxleRow2WheelLeftTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow2WheelLeftTirePressureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func ChassisAxleRow2WheelRightTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow2WheelRightTirePressureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func ConvertToCloudEvents(msgData []byte, chainID uint64, ...) ([][]byte, error)
- func CurrentLocationAltitudeFromV1Data(jsonData []byte) (ret float64, err error)
- func CurrentLocationAltitudeFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func CurrentLocationIsRedactedFromV1Data(jsonData []byte) (ret float64, err error)
- func CurrentLocationIsRedactedFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func CurrentLocationLatitudeFromV1Data(jsonData []byte) (ret float64, err error)
- func CurrentLocationLatitudeFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func CurrentLocationLongitudeFromV1Data(jsonData []byte) (ret float64, err error)
- func CurrentLocationLongitudeFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func DIMOAftermarketHDOPFromV1Data(jsonData []byte) (ret float64, err error)
- func DIMOAftermarketHDOPFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func DIMOAftermarketNSATFromV1Data(jsonData []byte) (ret float64, err error)
- func DIMOAftermarketNSATFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func DIMOAftermarketSSIDFromV1Data(jsonData []byte) (ret string, err error)
- func DIMOAftermarketSSIDFromV2Data(originalDoc []byte, result gjson.Result) (ret string, err error)
- func DIMOAftermarketWPAStateFromV1Data(jsonData []byte) (ret string, err error)
- func DIMOAftermarketWPAStateFromV2Data(originalDoc []byte, result gjson.Result) (ret string, err error)
- func ExteriorAirTemperatureFromV1Data(jsonData []byte) (ret float64, err error)
- func ExteriorAirTemperatureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func GetDataVersion(jsonData []byte) string
- func HasV1Data(version string) bool
- func LowVoltageBatteryCurrentVoltageFromV1Data(jsonData []byte) (ret float64, err error)
- func LowVoltageBatteryCurrentVoltageFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDBarometricPressureFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDBarometricPressureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDCommandedEGRFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDCommandedEGRFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDCommandedEVAPFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDCommandedEVAPFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDDistanceSinceDTCClearFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDDistanceSinceDTCClearFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDDistanceWithMILFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDDistanceWithMILFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDEngineLoadFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDEngineLoadFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDFuelPressureFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDFuelPressureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDIntakeTempFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDIntakeTempFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDLongTermFuelTrim1FromV1Data(jsonData []byte) (ret float64, err error)
- func OBDLongTermFuelTrim1FromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDMAPFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDMAPFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDO2WRSensor1VoltageFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDO2WRSensor1VoltageFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDO2WRSensor2VoltageFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDO2WRSensor2VoltageFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDRunTimeFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDRunTimeFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDShortTermFuelTrim1FromV1Data(jsonData []byte) (ret float64, err error)
- func OBDShortTermFuelTrim1FromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func OBDWarmupsSinceDTCClearFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDWarmupsSinceDTCClearFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainCombustionEngineECTFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineECTFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainCombustionEngineEngineOilLevelFromV1Data(jsonData []byte) (ret string, err error)
- func PowertrainCombustionEngineEngineOilLevelFromV2Data(originalDoc []byte, result gjson.Result) (ret string, err error)
- func PowertrainCombustionEngineEngineOilRelativeLevelFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineEngineOilRelativeLevelFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainCombustionEngineMAFFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineMAFFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainCombustionEngineSpeedFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineSpeedFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainCombustionEngineTPSFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineTPSFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainCombustionEngineTorqueFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineTorqueFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainFuelSystemAbsoluteLevelFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainFuelSystemAbsoluteLevelFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainFuelSystemRelativeLevelFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainFuelSystemRelativeLevelFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainFuelSystemSupportedFuelTypesFromV1Data(jsonData []byte) (ret string, err error)
- func PowertrainFuelSystemSupportedFuelTypesFromV2Data(originalDoc []byte, result gjson.Result) (ret string, err error)
- func PowertrainRangeFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainRangeFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainTractionBatteryChargingChargeLimitFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTractionBatteryChargingChargeLimitFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainTractionBatteryChargingIsChargingFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTractionBatteryChargingIsChargingFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainTractionBatteryCurrentPowerFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTractionBatteryCurrentPowerFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainTractionBatteryCurrentVoltageFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTractionBatteryCurrentVoltageFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainTractionBatteryGrossCapacityFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTractionBatteryGrossCapacityFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainTractionBatteryStateOfChargeCurrentFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTractionBatteryStateOfChargeCurrentFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainTractionBatteryTemperatureAverageFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTractionBatteryTemperatureAverageFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainTransmissionCurrentGearFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTransmissionCurrentGearFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainTransmissionTemperatureFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTransmissionTemperatureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainTransmissionTravelledDistanceFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTransmissionTravelledDistanceFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func PowertrainTypeFromV1Data(jsonData []byte) (ret string, err error)
- func PowertrainTypeFromV2Data(originalDoc []byte, result gjson.Result) (ret string, err error)
- func ServiceDistanceToServiceFromV1Data(jsonData []byte) (ret float64, err error)
- func ServiceDistanceToServiceFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func SignalsFromV1Data(baseSignal vss.Signal, jsonData []byte) ([]vss.Signal, []error)
- func SignalsFromV2Data(originalDoc []byte, baseSignal vss.Signal, signalName string, ...) ([]vss.Signal, error)
- func SourceFromData(jsonData []byte) (string, error)
- func SpeedFromV1Data(jsonData []byte) (ret float64, err error)
- func SpeedFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func ToAngularVelocityYaw0(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow1WheelLeftSpeed0(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow1WheelLeftTirePressure0(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow1WheelLeftTirePressure1(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow1WheelRightSpeed0(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow1WheelRightTirePressure0(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow1WheelRightTirePressure1(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow2WheelLeftTirePressure0(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow2WheelLeftTirePressure1(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow2WheelRightTirePressure0(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow2WheelRightTirePressure1(originalDoc []byte, val float64) (float64, error)
- func ToCurrentLocationAltitude0(originalDoc []byte, val float64) (float64, error)
- func ToCurrentLocationIsRedacted0(originalDoc []byte, val bool) (float64, error)
- func ToCurrentLocationLatitude0(originalDoc []byte, val float64) (float64, error)
- func ToCurrentLocationLongitude0(originalDoc []byte, val float64) (float64, error)
- func ToDIMOAftermarketHDOP0(originalDoc []byte, val float64) (float64, error)
- func ToDIMOAftermarketNSAT0(originalDoc []byte, val float64) (float64, error)
- func ToDIMOAftermarketSSID0(originalDoc []byte, val string) (string, error)
- func ToDIMOAftermarketSSID1(originalDoc []byte, val string) (string, error)
- func ToDIMOAftermarketWPAState0(originalDoc []byte, val string) (string, error)
- func ToDIMOAftermarketWPAState1(originalDoc []byte, val string) (string, error)
- func ToExteriorAirTemperature0(originalDoc []byte, val float64) (float64, error)
- func ToExteriorAirTemperature1(originalDoc []byte, val float64) (float64, error)
- func ToLowVoltageBatteryCurrentVoltage0(originalDoc []byte, val float64) (float64, error)
- func ToOBDBarometricPressure0(originalDoc []byte, val float64) (float64, error)
- func ToOBDCommandedEGR0(originalDoc []byte, val float64) (float64, error)
- func ToOBDCommandedEVAP0(originalDoc []byte, val float64) (float64, error)
- func ToOBDDistanceSinceDTCClear0(originalDoc []byte, val float64) (float64, error)
- func ToOBDDistanceWithMIL0(originalDoc []byte, val float64) (float64, error)
- func ToOBDEngineLoad0(originalDoc []byte, val float64) (float64, error)
- func ToOBDFuelPressure0(originalDoc []byte, val float64) (float64, error)
- func ToOBDIntakeTemp0(originalDoc []byte, val float64) (float64, error)
- func ToOBDLongTermFuelTrim10(originalDoc []byte, val float64) (float64, error)
- func ToOBDMAP0(originalDoc []byte, val float64) (float64, error)
- func ToOBDO2WRSensor1Voltage0(originalDoc []byte, val float64) (float64, error)
- func ToOBDO2WRSensor2Voltage0(originalDoc []byte, val float64) (float64, error)
- func ToOBDRunTime0(originalDoc []byte, val float64) (float64, error)
- func ToOBDShortTermFuelTrim10(originalDoc []byte, val float64) (float64, error)
- func ToOBDWarmupsSinceDTCClear0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainCombustionEngineECT0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainCombustionEngineEngineOilLevel0(originalDoc []byte, val float64) (string, error)
- func ToPowertrainCombustionEngineEngineOilLevel1(originalDoc []byte, val float64) (string, error)
- func ToPowertrainCombustionEngineEngineOilRelativeLevel0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainCombustionEngineMAF0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainCombustionEngineSpeed0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainCombustionEngineSpeed1(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainCombustionEngineTPS0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainCombustionEngineTorque0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainFuelSystemAbsoluteLevel0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainFuelSystemRelativeLevel0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainFuelSystemRelativeLevel1(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainFuelSystemSupportedFuelTypes0(originalDoc []byte, val string) (string, error)
- func ToPowertrainRange0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTractionBatteryChargingChargeLimit0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTractionBatteryChargingIsCharging0(originalDoc []byte, val bool) (float64, error)
- func ToPowertrainTractionBatteryCurrentPower0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTractionBatteryCurrentVoltage0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTractionBatteryGrossCapacity0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTractionBatteryStateOfChargeCurrent0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTractionBatteryTemperatureAverage0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTransmissionCurrentGear0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTransmissionTemperature0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTransmissionTravelledDistance0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainType0(originalDoc []byte, val string) (string, error)
- func ToServiceDistanceToService0(originalDoc []byte, val float64) (float64, error)
- func ToSpeed0(originalDoc []byte, val float64) (float64, error)
- func ToSpeed1(originalDoc []byte, val float64) (float64, error)
- func TokenIDFromData(jsonData []byte) (uint32, error)
- type AutopiEvent
Constants ¶
const ( StatusEventType = "com.dimo.device.status.v2" FingerprintEventType = "zone.dimo.aftermarket.device.fingerprint" DataVersion = "v2" )
const ( // StatusV1 is the version string for payloads with the version 1.0 schema. StatusV1 = "v1.0.0" // StatusV1Converted is the version string for payloads that have been converted to the 1.0 schema. StatusV1Converted = "v1.1.0" )
Variables ¶
This section is empty.
Functions ¶
func AngularVelocityYawFromV1Data ¶
AngularVelocityYawFromV1Data converts the given JSON data to a float64.
func AngularVelocityYawFromV2Data ¶
AngularVelocityYawFromData converts the given JSON data to a float64.
func ChassisAxleRow1WheelLeftSpeedFromV1Data ¶
ChassisAxleRow1WheelLeftSpeedFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow1WheelLeftSpeedFromV2Data ¶
func ChassisAxleRow1WheelLeftSpeedFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
ChassisAxleRow1WheelLeftSpeedFromData converts the given JSON data to a float64.
func ChassisAxleRow1WheelLeftTirePressureFromV1Data ¶
ChassisAxleRow1WheelLeftTirePressureFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow1WheelLeftTirePressureFromV2Data ¶
func ChassisAxleRow1WheelLeftTirePressureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
ChassisAxleRow1WheelLeftTirePressureFromData converts the given JSON data to a float64.
func ChassisAxleRow1WheelRightSpeedFromV1Data ¶
ChassisAxleRow1WheelRightSpeedFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow1WheelRightSpeedFromV2Data ¶
func ChassisAxleRow1WheelRightSpeedFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
ChassisAxleRow1WheelRightSpeedFromData converts the given JSON data to a float64.
func ChassisAxleRow1WheelRightTirePressureFromV1Data ¶
ChassisAxleRow1WheelRightTirePressureFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow1WheelRightTirePressureFromV2Data ¶
func ChassisAxleRow1WheelRightTirePressureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
ChassisAxleRow1WheelRightTirePressureFromData converts the given JSON data to a float64.
func ChassisAxleRow2WheelLeftTirePressureFromV1Data ¶
ChassisAxleRow2WheelLeftTirePressureFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow2WheelLeftTirePressureFromV2Data ¶
func ChassisAxleRow2WheelLeftTirePressureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
ChassisAxleRow2WheelLeftTirePressureFromData converts the given JSON data to a float64.
func ChassisAxleRow2WheelRightTirePressureFromV1Data ¶
ChassisAxleRow2WheelRightTirePressureFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow2WheelRightTirePressureFromV2Data ¶
func ChassisAxleRow2WheelRightTirePressureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
ChassisAxleRow2WheelRightTirePressureFromData converts the given JSON data to a float64.
func ConvertToCloudEvents ¶
func ConvertToCloudEvents(msgData []byte, chainID uint64, aftermarketContractAddr, vehicleContractAddr string) ([][]byte, error)
ConvertToCloudEvents converts a message data payload into a slice of CloudEvents. It handles both status and fingerprint events, creating separate CloudEvents for each.
func CurrentLocationAltitudeFromV1Data ¶
CurrentLocationAltitudeFromV1Data converts the given JSON data to a float64.
func CurrentLocationAltitudeFromV2Data ¶
func CurrentLocationAltitudeFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
CurrentLocationAltitudeFromData converts the given JSON data to a float64.
func CurrentLocationIsRedactedFromV1Data ¶
CurrentLocationIsRedactedFromV1Data converts the given JSON data to a float64.
func CurrentLocationIsRedactedFromV2Data ¶
func CurrentLocationIsRedactedFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
CurrentLocationIsRedactedFromData converts the given JSON data to a float64.
func CurrentLocationLatitudeFromV1Data ¶
CurrentLocationLatitudeFromV1Data converts the given JSON data to a float64.
func CurrentLocationLatitudeFromV2Data ¶
func CurrentLocationLatitudeFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
CurrentLocationLatitudeFromData converts the given JSON data to a float64.
func CurrentLocationLongitudeFromV1Data ¶
CurrentLocationLongitudeFromV1Data converts the given JSON data to a float64.
func CurrentLocationLongitudeFromV2Data ¶
func CurrentLocationLongitudeFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
CurrentLocationLongitudeFromData converts the given JSON data to a float64.
func DIMOAftermarketHDOPFromV1Data ¶
DIMOAftermarketHDOPFromV1Data converts the given JSON data to a float64.
func DIMOAftermarketHDOPFromV2Data ¶
func DIMOAftermarketHDOPFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
DIMOAftermarketHDOPFromData converts the given JSON data to a float64.
func DIMOAftermarketNSATFromV1Data ¶
DIMOAftermarketNSATFromV1Data converts the given JSON data to a float64.
func DIMOAftermarketNSATFromV2Data ¶
func DIMOAftermarketNSATFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
DIMOAftermarketNSATFromData converts the given JSON data to a float64.
func DIMOAftermarketSSIDFromV1Data ¶
DIMOAftermarketSSIDFromV1Data converts the given JSON data to a string.
func DIMOAftermarketSSIDFromV2Data ¶
DIMOAftermarketSSIDFromData converts the given JSON data to a string.
func DIMOAftermarketWPAStateFromV1Data ¶
DIMOAftermarketWPAStateFromV1Data converts the given JSON data to a string.
func DIMOAftermarketWPAStateFromV2Data ¶
func DIMOAftermarketWPAStateFromV2Data(originalDoc []byte, result gjson.Result) (ret string, err error)
DIMOAftermarketWPAStateFromData converts the given JSON data to a string.
func ExteriorAirTemperatureFromV1Data ¶
ExteriorAirTemperatureFromV1Data converts the given JSON data to a float64.
func ExteriorAirTemperatureFromV2Data ¶
func ExteriorAirTemperatureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
ExteriorAirTemperatureFromData converts the given JSON data to a float64.
func GetDataVersion ¶
GetDataVersion returns the version string used in the payload.
func LowVoltageBatteryCurrentVoltageFromV1Data ¶
LowVoltageBatteryCurrentVoltageFromV1Data converts the given JSON data to a float64.
func LowVoltageBatteryCurrentVoltageFromV2Data ¶
func LowVoltageBatteryCurrentVoltageFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
LowVoltageBatteryCurrentVoltageFromData converts the given JSON data to a float64.
func OBDBarometricPressureFromV1Data ¶
OBDBarometricPressureFromV1Data converts the given JSON data to a float64.
func OBDBarometricPressureFromV2Data ¶
func OBDBarometricPressureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
OBDBarometricPressureFromData converts the given JSON data to a float64.
func OBDCommandedEGRFromV1Data ¶
OBDCommandedEGRFromV1Data converts the given JSON data to a float64.
func OBDCommandedEGRFromV2Data ¶
OBDCommandedEGRFromData converts the given JSON data to a float64.
func OBDCommandedEVAPFromV1Data ¶
OBDCommandedEVAPFromV1Data converts the given JSON data to a float64.
func OBDCommandedEVAPFromV2Data ¶
OBDCommandedEVAPFromData converts the given JSON data to a float64.
func OBDDistanceSinceDTCClearFromV1Data ¶
OBDDistanceSinceDTCClearFromV1Data converts the given JSON data to a float64.
func OBDDistanceSinceDTCClearFromV2Data ¶
func OBDDistanceSinceDTCClearFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
OBDDistanceSinceDTCClearFromData converts the given JSON data to a float64.
func OBDDistanceWithMILFromV1Data ¶
OBDDistanceWithMILFromV1Data converts the given JSON data to a float64.
func OBDDistanceWithMILFromV2Data ¶
OBDDistanceWithMILFromData converts the given JSON data to a float64.
func OBDEngineLoadFromV1Data ¶
OBDEngineLoadFromV1Data converts the given JSON data to a float64.
func OBDEngineLoadFromV2Data ¶
OBDEngineLoadFromData converts the given JSON data to a float64.
func OBDFuelPressureFromV1Data ¶
OBDFuelPressureFromV1Data converts the given JSON data to a float64.
func OBDFuelPressureFromV2Data ¶
OBDFuelPressureFromData converts the given JSON data to a float64.
func OBDIntakeTempFromV1Data ¶
OBDIntakeTempFromV1Data converts the given JSON data to a float64.
func OBDIntakeTempFromV2Data ¶
OBDIntakeTempFromData converts the given JSON data to a float64.
func OBDLongTermFuelTrim1FromV1Data ¶
OBDLongTermFuelTrim1FromV1Data converts the given JSON data to a float64.
func OBDLongTermFuelTrim1FromV2Data ¶
func OBDLongTermFuelTrim1FromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
OBDLongTermFuelTrim1FromData converts the given JSON data to a float64.
func OBDMAPFromV1Data ¶
OBDMAPFromV1Data converts the given JSON data to a float64.
func OBDMAPFromV2Data ¶
OBDMAPFromData converts the given JSON data to a float64.
func OBDO2WRSensor1VoltageFromV1Data ¶
OBDO2WRSensor1VoltageFromV1Data converts the given JSON data to a float64.
func OBDO2WRSensor1VoltageFromV2Data ¶
func OBDO2WRSensor1VoltageFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
OBDO2WRSensor1VoltageFromData converts the given JSON data to a float64.
func OBDO2WRSensor2VoltageFromV1Data ¶
OBDO2WRSensor2VoltageFromV1Data converts the given JSON data to a float64.
func OBDO2WRSensor2VoltageFromV2Data ¶
func OBDO2WRSensor2VoltageFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
OBDO2WRSensor2VoltageFromData converts the given JSON data to a float64.
func OBDRunTimeFromV1Data ¶
OBDRunTimeFromV1Data converts the given JSON data to a float64.
func OBDRunTimeFromV2Data ¶
OBDRunTimeFromData converts the given JSON data to a float64.
func OBDShortTermFuelTrim1FromV1Data ¶
OBDShortTermFuelTrim1FromV1Data converts the given JSON data to a float64.
func OBDShortTermFuelTrim1FromV2Data ¶
func OBDShortTermFuelTrim1FromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
OBDShortTermFuelTrim1FromData converts the given JSON data to a float64.
func OBDWarmupsSinceDTCClearFromV1Data ¶
OBDWarmupsSinceDTCClearFromV1Data converts the given JSON data to a float64.
func OBDWarmupsSinceDTCClearFromV2Data ¶
func OBDWarmupsSinceDTCClearFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
OBDWarmupsSinceDTCClearFromData converts the given JSON data to a float64.
func PowertrainCombustionEngineECTFromV1Data ¶
PowertrainCombustionEngineECTFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineECTFromV2Data ¶
func PowertrainCombustionEngineECTFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainCombustionEngineECTFromData converts the given JSON data to a float64.
func PowertrainCombustionEngineEngineOilLevelFromV1Data ¶
PowertrainCombustionEngineEngineOilLevelFromV1Data converts the given JSON data to a string.
func PowertrainCombustionEngineEngineOilLevelFromV2Data ¶
func PowertrainCombustionEngineEngineOilLevelFromV2Data(originalDoc []byte, result gjson.Result) (ret string, err error)
PowertrainCombustionEngineEngineOilLevelFromData converts the given JSON data to a string.
func PowertrainCombustionEngineEngineOilRelativeLevelFromV1Data ¶
func PowertrainCombustionEngineEngineOilRelativeLevelFromV1Data(jsonData []byte) (ret float64, err error)
PowertrainCombustionEngineEngineOilRelativeLevelFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineEngineOilRelativeLevelFromV2Data ¶
func PowertrainCombustionEngineEngineOilRelativeLevelFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainCombustionEngineEngineOilRelativeLevelFromData converts the given JSON data to a float64.
func PowertrainCombustionEngineMAFFromV1Data ¶
PowertrainCombustionEngineMAFFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineMAFFromV2Data ¶
func PowertrainCombustionEngineMAFFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainCombustionEngineMAFFromData converts the given JSON data to a float64.
func PowertrainCombustionEngineSpeedFromV1Data ¶
PowertrainCombustionEngineSpeedFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineSpeedFromV2Data ¶
func PowertrainCombustionEngineSpeedFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainCombustionEngineSpeedFromData converts the given JSON data to a float64.
func PowertrainCombustionEngineTPSFromV1Data ¶
PowertrainCombustionEngineTPSFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineTPSFromV2Data ¶
func PowertrainCombustionEngineTPSFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainCombustionEngineTPSFromData converts the given JSON data to a float64.
func PowertrainCombustionEngineTorqueFromV1Data ¶
PowertrainCombustionEngineTorqueFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineTorqueFromV2Data ¶
func PowertrainCombustionEngineTorqueFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainCombustionEngineTorqueFromData converts the given JSON data to a float64.
func PowertrainFuelSystemAbsoluteLevelFromV1Data ¶
PowertrainFuelSystemAbsoluteLevelFromV1Data converts the given JSON data to a float64.
func PowertrainFuelSystemAbsoluteLevelFromV2Data ¶
func PowertrainFuelSystemAbsoluteLevelFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainFuelSystemAbsoluteLevelFromData converts the given JSON data to a float64.
func PowertrainFuelSystemRelativeLevelFromV1Data ¶
PowertrainFuelSystemRelativeLevelFromV1Data converts the given JSON data to a float64.
func PowertrainFuelSystemRelativeLevelFromV2Data ¶
func PowertrainFuelSystemRelativeLevelFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainFuelSystemRelativeLevelFromData converts the given JSON data to a float64.
func PowertrainFuelSystemSupportedFuelTypesFromV1Data ¶
PowertrainFuelSystemSupportedFuelTypesFromV1Data converts the given JSON data to a string.
func PowertrainFuelSystemSupportedFuelTypesFromV2Data ¶
func PowertrainFuelSystemSupportedFuelTypesFromV2Data(originalDoc []byte, result gjson.Result) (ret string, err error)
PowertrainFuelSystemSupportedFuelTypesFromData converts the given JSON data to a string.
func PowertrainRangeFromV1Data ¶
PowertrainRangeFromV1Data converts the given JSON data to a float64.
func PowertrainRangeFromV2Data ¶
PowertrainRangeFromData converts the given JSON data to a float64.
func PowertrainTractionBatteryChargingChargeLimitFromV1Data ¶
func PowertrainTractionBatteryChargingChargeLimitFromV1Data(jsonData []byte) (ret float64, err error)
PowertrainTractionBatteryChargingChargeLimitFromV1Data converts the given JSON data to a float64.
func PowertrainTractionBatteryChargingChargeLimitFromV2Data ¶
func PowertrainTractionBatteryChargingChargeLimitFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainTractionBatteryChargingChargeLimitFromData converts the given JSON data to a float64.
func PowertrainTractionBatteryChargingIsChargingFromV1Data ¶
func PowertrainTractionBatteryChargingIsChargingFromV1Data(jsonData []byte) (ret float64, err error)
PowertrainTractionBatteryChargingIsChargingFromV1Data converts the given JSON data to a float64.
func PowertrainTractionBatteryChargingIsChargingFromV2Data ¶
func PowertrainTractionBatteryChargingIsChargingFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainTractionBatteryChargingIsChargingFromData converts the given JSON data to a float64.
func PowertrainTractionBatteryCurrentPowerFromV1Data ¶
PowertrainTractionBatteryCurrentPowerFromV1Data converts the given JSON data to a float64.
func PowertrainTractionBatteryCurrentPowerFromV2Data ¶
func PowertrainTractionBatteryCurrentPowerFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainTractionBatteryCurrentPowerFromData converts the given JSON data to a float64.
func PowertrainTractionBatteryCurrentVoltageFromV1Data ¶
PowertrainTractionBatteryCurrentVoltageFromV1Data converts the given JSON data to a float64.
func PowertrainTractionBatteryCurrentVoltageFromV2Data ¶
func PowertrainTractionBatteryCurrentVoltageFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainTractionBatteryCurrentVoltageFromData converts the given JSON data to a float64.
func PowertrainTractionBatteryGrossCapacityFromV1Data ¶
PowertrainTractionBatteryGrossCapacityFromV1Data converts the given JSON data to a float64.
func PowertrainTractionBatteryGrossCapacityFromV2Data ¶
func PowertrainTractionBatteryGrossCapacityFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainTractionBatteryGrossCapacityFromData converts the given JSON data to a float64.
func PowertrainTractionBatteryStateOfChargeCurrentFromV1Data ¶
func PowertrainTractionBatteryStateOfChargeCurrentFromV1Data(jsonData []byte) (ret float64, err error)
PowertrainTractionBatteryStateOfChargeCurrentFromV1Data converts the given JSON data to a float64.
func PowertrainTractionBatteryStateOfChargeCurrentFromV2Data ¶
func PowertrainTractionBatteryStateOfChargeCurrentFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainTractionBatteryStateOfChargeCurrentFromData converts the given JSON data to a float64.
func PowertrainTractionBatteryTemperatureAverageFromV1Data ¶
func PowertrainTractionBatteryTemperatureAverageFromV1Data(jsonData []byte) (ret float64, err error)
PowertrainTractionBatteryTemperatureAverageFromV1Data converts the given JSON data to a float64.
func PowertrainTractionBatteryTemperatureAverageFromV2Data ¶
func PowertrainTractionBatteryTemperatureAverageFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainTractionBatteryTemperatureAverageFromData converts the given JSON data to a float64.
func PowertrainTransmissionCurrentGearFromV1Data ¶
PowertrainTransmissionCurrentGearFromV1Data converts the given JSON data to a float64.
func PowertrainTransmissionCurrentGearFromV2Data ¶
func PowertrainTransmissionCurrentGearFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainTransmissionCurrentGearFromData converts the given JSON data to a float64.
func PowertrainTransmissionTemperatureFromV1Data ¶
PowertrainTransmissionTemperatureFromV1Data converts the given JSON data to a float64.
func PowertrainTransmissionTemperatureFromV2Data ¶
func PowertrainTransmissionTemperatureFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainTransmissionTemperatureFromData converts the given JSON data to a float64.
func PowertrainTransmissionTravelledDistanceFromV1Data ¶
PowertrainTransmissionTravelledDistanceFromV1Data converts the given JSON data to a float64.
func PowertrainTransmissionTravelledDistanceFromV2Data ¶
func PowertrainTransmissionTravelledDistanceFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
PowertrainTransmissionTravelledDistanceFromData converts the given JSON data to a float64.
func PowertrainTypeFromV1Data ¶
PowertrainTypeFromV1Data converts the given JSON data to a string.
func PowertrainTypeFromV2Data ¶
PowertrainTypeFromData converts the given JSON data to a string.
func ServiceDistanceToServiceFromV1Data ¶
ServiceDistanceToServiceFromV1Data converts the given JSON data to a float64.
func ServiceDistanceToServiceFromV2Data ¶
func ServiceDistanceToServiceFromV2Data(originalDoc []byte, result gjson.Result) (ret float64, err error)
ServiceDistanceToServiceFromData converts the given JSON data to a float64.
func SignalsFromV1Data ¶
SignalsFromV1Data creates a slice of vss.Signal from the given v1 status JSON data. On error, partial results may be returned.
func SignalsFromV2Data ¶
func SignalsFromV2Data(originalDoc []byte, baseSignal vss.Signal, signalName string, sigResult gjson.Result) ([]vss.Signal, error)
SignalsFromData converts the given JSON data to a slice of signals.
func SourceFromData ¶
SourceFromData gets a source from a V2 payload.
func SpeedFromV1Data ¶
SpeedFromV1Data converts the given JSON data to a float64.
func SpeedFromV2Data ¶
SpeedFromData converts the given JSON data to a float64.
func ToAngularVelocityYaw0 ¶
ToAngularVelocityYaw0 converts data from field 'yawRate' of type float64 to 'Vehicle.AngularVelocity.Yaw' of type float64. Vehicle.AngularVelocity.Yaw: Vehicle rotation rate along Z (vertical). Unit: 'degrees/s'
func ToChassisAxleRow1WheelLeftSpeed0 ¶
ToChassisAxleRow1WheelLeftSpeed0 converts data from field 'frontlLeftWheelSpeed' of type float64 to 'Vehicle.Chassis.Axle.Row1.Wheel.Left.Speed' of type float64. Vehicle.Chassis.Axle.Row1.Wheel.Left.Speed: Rotational speed of a vehicle's wheel. Unit: 'km/h'
func ToChassisAxleRow1WheelLeftTirePressure0 ¶
ToChassisAxleRow1WheelLeftTirePressure0 converts data from field 'tires.frontLeft' 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 ToChassisAxleRow1WheelLeftTirePressure1 ¶
ToChassisAxleRow1WheelLeftTirePressure1 converts data from field 'tiresFrontLeft' 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 ToChassisAxleRow1WheelRightSpeed0 ¶
ToChassisAxleRow1WheelRightSpeed0 converts data from field 'frontRightWheelSpeed' of type float64 to 'Vehicle.Chassis.Axle.Row1.Wheel.Right.Speed' of type float64. Vehicle.Chassis.Axle.Row1.Wheel.Right.Speed: Rotational speed of a vehicle's wheel. Unit: 'km/h'
func ToChassisAxleRow1WheelRightTirePressure0 ¶
ToChassisAxleRow1WheelRightTirePressure0 converts data from field 'tires.frontRight' 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 ToChassisAxleRow1WheelRightTirePressure1 ¶
ToChassisAxleRow1WheelRightTirePressure1 converts data from field 'tiresFrontRight' 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 ¶
ToChassisAxleRow2WheelLeftTirePressure0 converts data from field 'tires.backLeft' 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 ToChassisAxleRow2WheelLeftTirePressure1 ¶
ToChassisAxleRow2WheelLeftTirePressure1 converts data from field 'tiresBackLeft' 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 ¶
ToChassisAxleRow2WheelRightTirePressure0 converts data from field 'tires.backRight' 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 ToChassisAxleRow2WheelRightTirePressure1 ¶
ToChassisAxleRow2WheelRightTirePressure1 converts data from field 'tiresBackRight' 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 ToCurrentLocationAltitude0 ¶
ToCurrentLocationAltitude0 converts data from field 'altitude' of type float64 to 'Vehicle.CurrentLocation.Altitude' of type float64. Vehicle.CurrentLocation.Altitude: Current altitude relative to WGS 84 reference ellipsoid, as measured at the position of GNSS receiver antenna. Unit: 'm'
func ToCurrentLocationIsRedacted0 ¶
ToCurrentLocationIsRedacted0 converts data from field 'isRedacted' of type bool to 'Vehicle.CurrentLocation.IsRedacted' of type float64. Vehicle.CurrentLocation.IsRedacted: Indicates if the latitude and longitude signals at the current timestamp have been redacted using a privacy zone.
func ToCurrentLocationLatitude0 ¶
ToCurrentLocationLatitude0 converts data from field '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 ¶
ToCurrentLocationLongitude0 converts data from field '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 ToDIMOAftermarketHDOP0 ¶
ToDIMOAftermarketHDOP0 converts data from field 'hdop' of type float64 to 'Vehicle.DIMO.Aftermarket.HDOP' of type float64. Vehicle.DIMO.Aftermarket.HDOP: Horizontal dilution of precision of GPS
func ToDIMOAftermarketNSAT0 ¶
ToDIMOAftermarketNSAT0 converts data from field 'nsat' of type float64 to 'Vehicle.DIMO.Aftermarket.NSAT' of type float64. Vehicle.DIMO.Aftermarket.NSAT: Number of sync satellites for GPS
func ToDIMOAftermarketSSID0 ¶
ToDIMOAftermarketSSID0 converts data from field 'ssid' of type string to 'Vehicle.DIMO.Aftermarket.SSID' of type string. Vehicle.DIMO.Aftermarket.SSID: Service Set Identifier for the wifi.
func ToDIMOAftermarketSSID1 ¶
ToDIMOAftermarketSSID1 converts data from field 'wifi.ssid' of type string to 'Vehicle.DIMO.Aftermarket.SSID' of type string. Vehicle.DIMO.Aftermarket.SSID: Service Set Identifier for the wifi.
func ToDIMOAftermarketWPAState0 ¶
ToDIMOAftermarketWPAState0 converts data from field 'wpa_state' of type string to 'Vehicle.DIMO.Aftermarket.WPAState' of type string. Vehicle.DIMO.Aftermarket.WPAState: Indicate the current WPA state for the device's wifi
func ToDIMOAftermarketWPAState1 ¶
ToDIMOAftermarketWPAState1 converts data from field 'wifi.wpaState' of type string to 'Vehicle.DIMO.Aftermarket.WPAState' of type string. Vehicle.DIMO.Aftermarket.WPAState: Indicate the current WPA state for the device's wifi
func ToExteriorAirTemperature0 ¶
ToExteriorAirTemperature0 converts data from field 'ambientAirTemp' of type float64 to 'Vehicle.Exterior.AirTemperature' of type float64. Vehicle.Exterior.AirTemperature: Air temperature outside the vehicle. Unit: 'celsius'
func ToExteriorAirTemperature1 ¶
ToExteriorAirTemperature1 converts data from field 'ambientTemp' of type float64 to 'Vehicle.Exterior.AirTemperature' of type float64. Vehicle.Exterior.AirTemperature: Air temperature outside the vehicle. Unit: 'celsius'
func ToLowVoltageBatteryCurrentVoltage0 ¶
ToLowVoltageBatteryCurrentVoltage0 converts data from field 'batteryVoltage' of type float64 to 'Vehicle.LowVoltageBattery.CurrentVoltage' of type float64. Vehicle.LowVoltageBattery.CurrentVoltage: Current Voltage of the low voltage battery. Unit: 'V'
func ToOBDBarometricPressure0 ¶
ToOBDBarometricPressure0 converts data from field 'barometricPressure' of type float64 to 'Vehicle.OBD.BarometricPressure' of type float64. Vehicle.OBD.BarometricPressure: PID 33 - Barometric pressure Unit: 'kPa'
func ToOBDCommandedEGR0 ¶
ToOBDCommandedEGR0 converts data from field 'commandedEgr' of type float64 to 'Vehicle.OBD.CommandedEGR' of type float64. Vehicle.OBD.CommandedEGR: PID 2C - Commanded exhaust gas recirculation (EGR) Unit: 'percent'
func ToOBDCommandedEVAP0 ¶
ToOBDCommandedEVAP0 converts data from field 'evap' of type float64 to 'Vehicle.OBD.CommandedEVAP' of type float64. Vehicle.OBD.CommandedEVAP: PID 2E - Commanded evaporative purge (EVAP) valve Unit: 'percent'
func ToOBDDistanceSinceDTCClear0 ¶
ToOBDDistanceSinceDTCClear0 converts data from field 'distanceSinceDtcClear' of type float64 to 'Vehicle.OBD.DistanceSinceDTCClear' of type float64. Vehicle.OBD.DistanceSinceDTCClear: PID 31 - Distance traveled since codes cleared Unit: 'km'
func ToOBDDistanceWithMIL0 ¶
ToOBDDistanceWithMIL0 converts data from field 'distanceWMil' of type float64 to 'Vehicle.OBD.DistanceWithMIL' of type float64. Vehicle.OBD.DistanceWithMIL: PID 21 - Distance traveled with MIL on Unit: 'km'
func ToOBDEngineLoad0 ¶
ToOBDEngineLoad0 converts data from field 'engineLoad' of type float64 to 'Vehicle.OBD.EngineLoad' of type float64. Vehicle.OBD.EngineLoad: PID 04 - Engine load in percent - 0 = no load, 100 = full load Unit: 'percent'
func ToOBDFuelPressure0 ¶
ToOBDFuelPressure0 converts data from field 'fuelTankPressure' of type float64 to 'Vehicle.OBD.FuelPressure' of type float64. Vehicle.OBD.FuelPressure: PID 0A - Fuel pressure Unit: 'kPa'
func ToOBDIntakeTemp0 ¶
ToOBDIntakeTemp0 converts data from field 'intakeTemp' of type float64 to 'Vehicle.OBD.IntakeTemp' of type float64. Vehicle.OBD.IntakeTemp: PID 0F - Intake temperature Unit: 'celsius'
func ToOBDLongTermFuelTrim10 ¶
ToOBDLongTermFuelTrim10 converts data from field 'longTermFuelTrim1' of type float64 to 'Vehicle.OBD.LongTermFuelTrim1' of type float64. Vehicle.OBD.LongTermFuelTrim1: PID 07 - Long Term (learned) Fuel Trim - Bank 1 - negative percent leaner, positive percent richer Unit: 'percent'
func ToOBDMAP0 ¶
ToOBDMAP0 converts data from field 'intakePressure' of type float64 to 'Vehicle.OBD.MAP' of type float64. Vehicle.OBD.MAP: PID 0B - Intake manifold pressure Unit: 'kPa'
func ToOBDO2WRSensor1Voltage0 ¶
ToOBDO2WRSensor1Voltage0 converts data from field 'oxygenSensor1' of type float64 to 'Vehicle.OBD.O2WR.Sensor1.Voltage' of type float64. Vehicle.OBD.O2WR.Sensor1.Voltage: PID 2x (byte CD) - Voltage for wide range/band oxygen sensor Unit: 'V'
func ToOBDO2WRSensor2Voltage0 ¶
ToOBDO2WRSensor2Voltage0 converts data from field 'oxygenSensor2' of type float64 to 'Vehicle.OBD.O2WR.Sensor2.Voltage' of type float64. Vehicle.OBD.O2WR.Sensor2.Voltage: PID 2x (byte CD) - Voltage for wide range/band oxygen sensor Unit: 'V'
func ToOBDRunTime0 ¶
ToOBDRunTime0 converts data from field 'runTime' of type float64 to 'Vehicle.OBD.RunTime' of type float64. Vehicle.OBD.RunTime: PID 1F - Engine run time Unit: 's'
func ToOBDShortTermFuelTrim10 ¶
ToOBDShortTermFuelTrim10 converts data from field 'shortTermFuelTrim1' of type float64 to 'Vehicle.OBD.ShortTermFuelTrim1' of type float64. Vehicle.OBD.ShortTermFuelTrim1: PID 06 - Short Term (immediate) Fuel Trim - Bank 1 - negative percent leaner, positive percent richer Unit: 'percent'
func ToOBDWarmupsSinceDTCClear0 ¶
ToOBDWarmupsSinceDTCClear0 converts data from field 'warmupsSinceDtcClear' of type float64 to 'Vehicle.OBD.WarmupsSinceDTCClear' of type float64. Vehicle.OBD.WarmupsSinceDTCClear: PID 30 - Number of warm-ups since codes cleared
func ToPowertrainCombustionEngineECT0 ¶
ToPowertrainCombustionEngineECT0 converts data from field 'coolantTemp' of type float64 to 'Vehicle.Powertrain.CombustionEngine.ECT' of type float64. Vehicle.Powertrain.CombustionEngine.ECT: Engine coolant temperature. Unit: 'celsius'
func ToPowertrainCombustionEngineEngineOilLevel0 ¶
ToPowertrainCombustionEngineEngineOilLevel0 converts data from field 'oil' of type float64 to 'Vehicle.Powertrain.CombustionEngine.EngineOilLevel' of type string. Vehicle.Powertrain.CombustionEngine.EngineOilLevel: Engine oil level.
func ToPowertrainCombustionEngineEngineOilLevel1 ¶
ToPowertrainCombustionEngineEngineOilLevel1 converts data from field 'oilLife' of type float64 to 'Vehicle.Powertrain.CombustionEngine.EngineOilLevel' of type string. Vehicle.Powertrain.CombustionEngine.EngineOilLevel: Engine oil level.
func ToPowertrainCombustionEngineEngineOilRelativeLevel0 ¶
func ToPowertrainCombustionEngineEngineOilRelativeLevel0(originalDoc []byte, val float64) (float64, error)
ToPowertrainCombustionEngineEngineOilRelativeLevel0 converts data from field 'oil' of type float64 to 'Vehicle.Powertrain.CombustionEngine.EngineOilRelativeLevel' of type float64. Vehicle.Powertrain.CombustionEngine.EngineOilRelativeLevel: Engine oil level as a percentage. Unit: 'percent' Min: '0' Max: '100'
func ToPowertrainCombustionEngineMAF0 ¶
ToPowertrainCombustionEngineMAF0 converts data from field 'maf' of type float64 to 'Vehicle.Powertrain.CombustionEngine.MAF' of type float64. Vehicle.Powertrain.CombustionEngine.MAF: Grams of air drawn into engine per second. Unit: 'g/s'
func ToPowertrainCombustionEngineSpeed0 ¶
ToPowertrainCombustionEngineSpeed0 converts data from field 'rpm' of type float64 to 'Vehicle.Powertrain.CombustionEngine.Speed' of type float64. Vehicle.Powertrain.CombustionEngine.Speed: Engine speed measured as rotations per minute. Unit: 'rpm'
func ToPowertrainCombustionEngineSpeed1 ¶
ToPowertrainCombustionEngineSpeed1 converts data from field 'engineSpeed' of type float64 to 'Vehicle.Powertrain.CombustionEngine.Speed' of type float64. Vehicle.Powertrain.CombustionEngine.Speed: Engine speed measured as rotations per minute. Unit: 'rpm'
func ToPowertrainCombustionEngineTPS0 ¶
ToPowertrainCombustionEngineTPS0 converts data from field 'throttlePosition' of type float64 to 'Vehicle.Powertrain.CombustionEngine.TPS' of type float64. Vehicle.Powertrain.CombustionEngine.TPS: Current throttle position. Unit: 'percent' Max: '100'
func ToPowertrainCombustionEngineTorque0 ¶
ToPowertrainCombustionEngineTorque0 converts data from field 'engineTorque' of type float64 to 'Vehicle.Powertrain.CombustionEngine.Torque' of type float64. Vehicle.Powertrain.CombustionEngine.Torque: Current engine torque. Shall be reported as 0 during engine breaking. Unit: 'Nm'
func ToPowertrainFuelSystemAbsoluteLevel0 ¶
ToPowertrainFuelSystemAbsoluteLevel0 converts data from field 'fuelLevelLiters' of type float64 to 'Vehicle.Powertrain.FuelSystem.AbsoluteLevel' of type float64. Vehicle.Powertrain.FuelSystem.AbsoluteLevel: Current available fuel in the fuel tank expressed in liters. Unit: 'l'
func ToPowertrainFuelSystemRelativeLevel0 ¶
ToPowertrainFuelSystemRelativeLevel0 converts data from field 'fuelLevel' of type float64 to 'Vehicle.Powertrain.FuelSystem.RelativeLevel' of type float64. Vehicle.Powertrain.FuelSystem.RelativeLevel: Level in fuel tank as percent of capacity. 0 = empty. 100 = full. Unit: 'percent' Min: '0' Max: '100'
func ToPowertrainFuelSystemRelativeLevel1 ¶
ToPowertrainFuelSystemRelativeLevel1 converts data from field 'fuelPercentRemaining' of type float64 to 'Vehicle.Powertrain.FuelSystem.RelativeLevel' of type float64. Vehicle.Powertrain.FuelSystem.RelativeLevel: Level in fuel tank as percent of capacity. 0 = empty. 100 = full. Unit: 'percent' Min: '0' Max: '100'
func ToPowertrainFuelSystemSupportedFuelTypes0 ¶
ToPowertrainFuelSystemSupportedFuelTypes0 converts data from field 'fuelType' of type string to 'Vehicle.Powertrain.FuelSystem.SupportedFuelTypes' of type string. Vehicle.Powertrain.FuelSystem.SupportedFuelTypes: High level information of fuel types supported
func ToPowertrainRange0 ¶
ToPowertrainRange0 converts data from field '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 ToPowertrainTractionBatteryChargingChargeLimit0 ¶
func ToPowertrainTractionBatteryChargingChargeLimit0(originalDoc []byte, val float64) (float64, error)
ToPowertrainTractionBatteryChargingChargeLimit0 converts data from field 'chargeLimit' 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 ¶
ToPowertrainTractionBatteryChargingIsCharging0 converts data from field 'charging' of type bool 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 ¶
ToPowertrainTractionBatteryCurrentPower0 converts data from field 'charger.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 ToPowertrainTractionBatteryCurrentVoltage0 ¶
ToPowertrainTractionBatteryCurrentVoltage0 converts data from field 'hvBatteryVoltage' of type float64 to 'Vehicle.Powertrain.TractionBattery.CurrentVoltage' of type float64. Vehicle.Powertrain.TractionBattery.CurrentVoltage: Current Voltage of the battery. Unit: 'V'
func ToPowertrainTractionBatteryGrossCapacity0 ¶
ToPowertrainTractionBatteryGrossCapacity0 converts data from field 'batteryCapacity' of type float64 to 'Vehicle.Powertrain.TractionBattery.GrossCapacity' of type float64. Vehicle.Powertrain.TractionBattery.GrossCapacity: Gross capacity of the battery. Unit: 'kWh'
func ToPowertrainTractionBatteryStateOfChargeCurrent0 ¶
func ToPowertrainTractionBatteryStateOfChargeCurrent0(originalDoc []byte, val float64) (float64, error)
ToPowertrainTractionBatteryStateOfChargeCurrent0 converts data from field 'soc' 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 ToPowertrainTractionBatteryTemperatureAverage0 ¶
func ToPowertrainTractionBatteryTemperatureAverage0(originalDoc []byte, val float64) (float64, error)
ToPowertrainTractionBatteryTemperatureAverage0 converts data from field 'hvBatteryCoolantTemperature' of type float64 to 'Vehicle.Powertrain.TractionBattery.Temperature.Average' of type float64. Vehicle.Powertrain.TractionBattery.Temperature.Average: Current average temperature of the battery cells. Unit: 'celsius'
func ToPowertrainTransmissionCurrentGear0 ¶
ToPowertrainTransmissionCurrentGear0 converts data from field 'gearSelection' of type float64 to 'Vehicle.Powertrain.Transmission.CurrentGear' of type float64. Vehicle.Powertrain.Transmission.CurrentGear: The current gear. 0=Neutral, 1/2/..=Forward, -1/-2/..=Reverse.
func ToPowertrainTransmissionTemperature0 ¶
ToPowertrainTransmissionTemperature0 converts data from field 'atfTemperature' of type float64 to 'Vehicle.Powertrain.Transmission.Temperature' of type float64. Vehicle.Powertrain.Transmission.Temperature: The current gearbox temperature. Unit: 'celsius'
func ToPowertrainTransmissionTravelledDistance0 ¶
ToPowertrainTransmissionTravelledDistance0 converts data from field '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 ToPowertrainType0 ¶
ToPowertrainType0 converts data from field 'fuelType' of type string to 'Vehicle.Powertrain.Type' of type string. Vehicle.Powertrain.Type: Defines the powertrain type of the vehicle.
func ToServiceDistanceToService0 ¶
ToServiceDistanceToService0 converts data from field 'serviceInterval' of type float64 to 'Vehicle.Service.DistanceToService' of type float64. Vehicle.Service.DistanceToService: Remaining distance to service (of any kind). Negative values indicate service overdue. Unit: 'km'
func ToSpeed0 ¶
ToSpeed0 converts data from field 'vehicleSpeed' of type float64 to 'Vehicle.Speed' of type float64. Vehicle.Speed: Vehicle speed. Unit: 'km/h'
func ToSpeed1 ¶
ToSpeed1 converts data from field 'speed' of type float64 to 'Vehicle.Speed' of type float64. Vehicle.Speed: Vehicle speed. Unit: 'km/h'
func TokenIDFromData ¶
TokenIDFromData gets a tokenID from a V2 payload.