Documentation ¶
Overview ¶
Code generated by github.com/DIMO-Network/pkg/ruptela/codegen DO NOT EDIT.
Package ruptela provides a funcions for managing Ruptela 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 ¶
- func ChassisAxleRow1WheelLeftTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow1WheelRightTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow2WheelLeftTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow2WheelRightTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func Convert102(rawValue string) (float64, error)
- func Convert103(rawValue string) (float64, error)
- func Convert107(rawValue string) (float64, error)
- func Convert114(rawValue string) (float64, error)
- func Convert207(rawValue string) (float64, error)
- func Convert483(rawValue string) (float64, error)
- func Convert642(rawValue string) (float64, error)
- func Convert645(rawValue string) (float64, error)
- func Convert722(rawValue string) (float64, error)
- func Convert723(rawValue string) (float64, error)
- func Convert95(rawValue string) (float64, error)
- func Convert96(rawValue string) (float64, error)
- func Convert97(rawValue string) (float64, error)
- func Convert98(rawValue string) (float64, error)
- func Convert99(rawValue string) (float64, error)
- func CurrentLocationAltitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func CurrentLocationAltitudeFromV1Data(jsonData []byte) (ret float64, err error)
- func CurrentLocationLatitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func CurrentLocationLatitudeFromV1Data(jsonData []byte) (ret float64, err error)
- func CurrentLocationLongitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func CurrentLocationLongitudeFromV1Data(jsonData []byte) (ret float64, err error)
- func DIMOAftermarketHDOPFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func DIMOAftermarketHDOPFromV1Data(jsonData []byte) (ret float64, err error)
- func DIMOAftermarketNSATFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func DIMOAftermarketNSATFromV1Data(jsonData []byte) (ret float64, err error)
- func ExteriorAirTemperatureFromV1Data(jsonData []byte) (ret float64, err error)
- func NameFromV2Signal(sigResult gjson.Result) (string, error)
- func OBDDistanceWithMILFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDRunTimeFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineECTFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineEngineOilLevelFromV1Data(jsonData []byte) (ret string, err error)
- func PowertrainCombustionEngineTPSFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainFuelSystemAbsoluteLevelFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainFuelSystemRelativeLevelFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainRangeFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTractionBatteryStateOfChargeCurrentFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTransmissionTravelledDistanceFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTypeFromV1Data(jsonData []byte) (ret string, err error)
- func SignalsFromLocationData(originalDoc []byte, baseSignal vss.Signal, signalName string, ...) ([]vss.Signal, error)
- func SignalsFromLocationPayload(jsonData []byte) ([]vss.Signal, error)
- func SignalsFromV1Data(baseSignal vss.Signal, jsonData []byte) ([]vss.Signal, []error)
- func SignalsFromV1Payload(jsonData []byte) ([]vss.Signal, error)
- func SourceFromData(jsonData []byte) (string, error)
- func SpeedFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func SpeedFromV1Data(jsonData []byte) (ret float64, err error)
- func SubjectFromV1Data(jsonData []byte) (string, error)
- func TimestampFromLocationSignal(sigResult gjson.Result) (time.Time, error)
- func TimestampFromV1Data(jsonData []byte) (time.Time, error)
- func ToChassisAxleRow1WheelLeftTirePressure0(originalDoc []byte, val string) (float64, error)
- func ToChassisAxleRow1WheelRightTirePressure0(originalDoc []byte, val string) (float64, error)
- func ToChassisAxleRow2WheelLeftTirePressure0(originalDoc []byte, val string) (float64, error)
- func ToChassisAxleRow2WheelRightTirePressure0(originalDoc []byte, val string) (float64, error)
- func ToCurrentLocationAltitude0(originalDoc []byte, val float64) (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 ToExteriorAirTemperature0(originalDoc []byte, val string) (float64, error)
- func ToOBDDistanceWithMIL0(originalDoc []byte, val string) (float64, error)
- func ToOBDRunTime0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineECT0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineEngineOilLevel0(originalDoc []byte, val string) (string, error)
- func ToPowertrainCombustionEngineTPS0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainFuelSystemAbsoluteLevel0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainFuelSystemRelativeLevel0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainFuelSystemRelativeLevel1(originalDoc []byte, val string) (float64, error)
- func ToPowertrainRange0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainTractionBatteryStateOfChargeCurrent0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainTransmissionTravelledDistance0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainTransmissionTravelledDistance1(originalDoc []byte, val string) (float64, error)
- func ToPowertrainType0(originalDoc []byte, val string) (string, error)
- func ToPowertrainType1(originalDoc []byte, val string) (string, error)
- func ToSpeed0(originalDoc []byte, val string) (float64, error)
- func ToSpeed1(originalDoc []byte, val float64) (float64, error)
- func TokenIDFromData(jsonData []byte) (uint32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChassisAxleRow1WheelLeftTirePressureFromV1Data ¶
ChassisAxleRow1WheelLeftTirePressureFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow1WheelRightTirePressureFromV1Data ¶
ChassisAxleRow1WheelRightTirePressureFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow2WheelLeftTirePressureFromV1Data ¶
ChassisAxleRow2WheelLeftTirePressureFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow2WheelRightTirePressureFromV1Data ¶
ChassisAxleRow2WheelRightTirePressureFromV1Data converts the given JSON data to a float64.
func Convert102 ¶
Convert102 converts the given raw value to a float64. Unit: 'km' Min: '0' Max: '65535'.
func Convert103 ¶
Convert103 converts the given raw value to a float64. Unit: '%' Min: '0' Max: '255'.
func Convert107 ¶
Convert107 converts the given raw value to a float64. Min: '0' Max: '65535'.
func Convert114 ¶
Convert114 converts the given raw value to a float64. Unit: 'm' Min: '0' Max: '4211081215'.
func Convert207 ¶
Convert207 converts the given raw value to a float64. Unit: '%' Min: '0' Max: '250'.
func Convert483 ¶
Convert483 converts the given raw value to a float64. Unit: '-' Min: '0' Max: '250'.
func Convert642 ¶
Convert642 converts the given raw value to a float64. Unit: 'l' Min: '0' Max: '0xFFFF or 65535'.
func Convert645 ¶
Convert645 converts the given raw value to a float64. Unit: 'km' Min: '0' Max: '0xFFFFFFFF'.
func Convert722 ¶
Convert722 converts the given raw value to a float64. Unit: '%' Min: '0' Max: '255'.
func Convert723 ¶
Convert723 converts the given raw value to a float64. Unit: 'km' Min: '0' Max: '65535'.
func Convert95 ¶
Convert95 converts the given raw value to a float64. Unit: 'km/h' Min: '0' Max: '255'.
func Convert96 ¶
Convert96 converts the given raw value to a float64. Unit: '°C' Min: '0' Max: '255'.
func Convert97 ¶
Convert97 converts the given raw value to a float64. Unit: '°C' Min: '0' Max: '255'.
func Convert98 ¶
Convert98 converts the given raw value to a float64. Unit: '%' Min: '0' Max: '255'.
func CurrentLocationAltitudeFromLocationData ¶ added in v0.3.1
func CurrentLocationAltitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
CurrentLocationAltitudeFromLocationData converts the given JSON data to a float64.
func CurrentLocationAltitudeFromV1Data ¶
CurrentLocationAltitudeFromV1Data converts the given JSON data to a float64.
func CurrentLocationLatitudeFromLocationData ¶ added in v0.3.1
func CurrentLocationLatitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
CurrentLocationLatitudeFromLocationData converts the given JSON data to a float64.
func CurrentLocationLatitudeFromV1Data ¶
CurrentLocationLatitudeFromV1Data converts the given JSON data to a float64.
func CurrentLocationLongitudeFromLocationData ¶ added in v0.3.1
func CurrentLocationLongitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
CurrentLocationLongitudeFromLocationData converts the given JSON data to a float64.
func CurrentLocationLongitudeFromV1Data ¶
CurrentLocationLongitudeFromV1Data converts the given JSON data to a float64.
func DIMOAftermarketHDOPFromLocationData ¶ added in v0.3.1
func DIMOAftermarketHDOPFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
DIMOAftermarketHDOPFromLocationData converts the given JSON data to a float64.
func DIMOAftermarketHDOPFromV1Data ¶
DIMOAftermarketHDOPFromV1Data converts the given JSON data to a float64.
func DIMOAftermarketNSATFromLocationData ¶ added in v0.3.1
func DIMOAftermarketNSATFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
DIMOAftermarketNSATFromLocationData converts the given JSON data to a float64.
func DIMOAftermarketNSATFromV1Data ¶
DIMOAftermarketNSATFromV1Data converts the given JSON data to a float64.
func ExteriorAirTemperatureFromV1Data ¶
ExteriorAirTemperatureFromV1Data converts the given JSON data to a float64.
func NameFromV2Signal ¶ added in v0.3.1
NameFromV2Signal gets a name from a V2 signal.
func OBDDistanceWithMILFromV1Data ¶
OBDDistanceWithMILFromV1Data converts the given JSON data to a float64.
func OBDRunTimeFromV1Data ¶
OBDRunTimeFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineECTFromV1Data ¶
PowertrainCombustionEngineECTFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineEngineOilLevelFromV1Data ¶
PowertrainCombustionEngineEngineOilLevelFromV1Data converts the given JSON data to a string.
func PowertrainCombustionEngineTPSFromV1Data ¶
PowertrainCombustionEngineTPSFromV1Data converts the given JSON data to a float64.
func PowertrainFuelSystemAbsoluteLevelFromV1Data ¶
PowertrainFuelSystemAbsoluteLevelFromV1Data converts the given JSON data to a float64.
func PowertrainFuelSystemRelativeLevelFromV1Data ¶
PowertrainFuelSystemRelativeLevelFromV1Data converts the given JSON data to a float64.
func PowertrainRangeFromV1Data ¶
PowertrainRangeFromV1Data 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 PowertrainTransmissionTravelledDistanceFromV1Data ¶
PowertrainTransmissionTravelledDistanceFromV1Data converts the given JSON data to a float64.
func PowertrainTypeFromV1Data ¶
PowertrainTypeFromV1Data converts the given JSON data to a string.
func SignalsFromLocationData ¶ added in v0.3.1
func SignalsFromLocationData(originalDoc []byte, baseSignal vss.Signal, signalName string, valResult gjson.Result) ([]vss.Signal, error)
SignalsFromLocationData converts the given JSON data to a slice of signals.
func SignalsFromLocationPayload ¶ added in v0.3.1
SignalsFromLocationPayload extracts signals from a V2 payload.
func SignalsFromV1Data ¶
SignalsFromV1Data creates a slice of vss.Signal from the given v1 status JSON data. On error, partial results may be returned.
func SignalsFromV1Payload ¶
SignalsFromV1Payload gets a slice signals from a v1 payload.
func SourceFromData ¶
SourceFromData gets a source from a V2 payload.
func SpeedFromLocationData ¶ added in v0.3.2
SpeedFromLocationData converts the given JSON data to a float64.
func SpeedFromV1Data ¶
SpeedFromV1Data converts the given JSON data to a float64.
func SubjectFromV1Data ¶
SubjectFromV1Data gets a subject from a v1 payload.
func TimestampFromLocationSignal ¶ added in v0.3.1
TimestampFromLocationSignal gets a timestamp from a V2 signal.
func TimestampFromV1Data ¶
TimestampFromV1Data gets a timestamp from a v1 payload.
func ToChassisAxleRow1WheelLeftTirePressure0 ¶
ToChassisAxleRow1WheelLeftTirePressure0 converts data from field 'signals.960' of type string 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 ¶
ToChassisAxleRow1WheelRightTirePressure0 converts data from field 'signals.961' of type string 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 'signals.962' of type string 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 'signals.963' of type string 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 'pos.alt' 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 ToCurrentLocationLatitude0 ¶
ToCurrentLocationLatitude0 converts data from field 'pos.lat' 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 'pos.lon' 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 'pos.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 'pos.sat' of type float64 to 'Vehicle.DIMO.Aftermarket.NSAT' of type float64. Vehicle.DIMO.Aftermarket.NSAT: Number of sync satellites for GPS
func ToExteriorAirTemperature0 ¶
ToExteriorAirTemperature0 converts data from field 'signals.97' of type string to 'Vehicle.Exterior.AirTemperature' of type float64. Vehicle.Exterior.AirTemperature: Air temperature outside the vehicle. Unit: 'celsius'
func ToOBDDistanceWithMIL0 ¶
ToOBDDistanceWithMIL0 converts data from field 'signals.102' of type string to 'Vehicle.OBD.DistanceWithMIL' of type float64. Vehicle.OBD.DistanceWithMIL: PID 21 - Distance traveled with MIL on Unit: 'km'
func ToOBDRunTime0 ¶
ToOBDRunTime0 converts data from field 'signals.107' of type string to 'Vehicle.OBD.RunTime' of type float64. Vehicle.OBD.RunTime: PID 1F - Engine run time Unit: 's'
func ToPowertrainCombustionEngineECT0 ¶
ToPowertrainCombustionEngineECT0 converts data from field 'signals.96' of type string to 'Vehicle.Powertrain.CombustionEngine.ECT' of type float64. Vehicle.Powertrain.CombustionEngine.ECT: Engine coolant temperature. Unit: 'celsius'
func ToPowertrainCombustionEngineEngineOilLevel0 ¶
ToPowertrainCombustionEngineEngineOilLevel0 converts data from field 'signals.964' of type string to 'Vehicle.Powertrain.CombustionEngine.EngineOilLevel' of type string. Vehicle.Powertrain.CombustionEngine.EngineOilLevel: Engine oil level.
func ToPowertrainCombustionEngineTPS0 ¶
ToPowertrainCombustionEngineTPS0 converts data from field 'signals.103' of type string to 'Vehicle.Powertrain.CombustionEngine.TPS' of type float64. Vehicle.Powertrain.CombustionEngine.TPS: Current throttle position. Unit: 'percent' Max: '100'
func ToPowertrainFuelSystemAbsoluteLevel0 ¶
ToPowertrainFuelSystemAbsoluteLevel0 converts data from field 'signals.642' of type string 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 'signals.98' of type string 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 'signals.207' of type string 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 ToPowertrainRange0 ¶
ToPowertrainRange0 converts data from field 'signals.723' of type string 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 ToPowertrainTractionBatteryStateOfChargeCurrent0 ¶
func ToPowertrainTractionBatteryStateOfChargeCurrent0(originalDoc []byte, val string) (float64, error)
ToPowertrainTractionBatteryStateOfChargeCurrent0 converts data from field 'signals.722' of type string 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 ¶
ToPowertrainTransmissionTravelledDistance0 converts data from field 'signals.645' of type string 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 ToPowertrainTransmissionTravelledDistance1 ¶
ToPowertrainTransmissionTravelledDistance1 converts data from field 'signals.114' of type string 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 'signals.99' of type string to 'Vehicle.Powertrain.Type' of type string. Vehicle.Powertrain.Type: Defines the powertrain type of the vehicle.
func ToPowertrainType1 ¶
ToPowertrainType1 converts data from field 'signals.483' of type string to 'Vehicle.Powertrain.Type' of type string. Vehicle.Powertrain.Type: Defines the powertrain type of the vehicle.
func ToSpeed0 ¶
ToSpeed0 converts data from field 'signals.95' of type string to 'Vehicle.Speed' of type float64. Vehicle.Speed: Vehicle speed. Unit: 'km/h'
func ToSpeed1 ¶ added in v0.3.2
ToSpeed1 converts data from field 'pos.spd' 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.
Types ¶
This section is empty.