Aggregated Service Field

The field MDI_CC_AGGREGATED_SERVICE aims at containing all service data from all services parameters. It is a string formatted as JSON that can be decoded instead of all other service parameters.

{
  "oil_service": {
    "time_to_next": 630,
    "km_at_last": 420
  },
  "inspection_service": {
    "time_to_next": 631,
    "distance_to_next": 421
  },
  "generic_service": {
    "time_interval": "1080",
  }
}

The MDI_CC_AGGREGATED_SERVICE is a JSON string containing service information grouped into verious categories.

The categories may be:

  • oil_service: all service information related to oil change
  • inspection_service: all service information related to inspection
  • generic_service: all service information related to generic service (may be oil change or inspection, detailed information is not provided by the car)

Each category can contain the following data:

  • distance_interval
  • distance_since_last
  • distance_to_next
  • km_at_last
  • time_at_last
  • time_interval
  • time_since_last
  • time_to_next

Each data is an integer. Distances are in km and times are in days.

List of all MDI_CC fields containted in MDI_CC_AGGREGATED_SERVICE:

  • MDI_CC_DISTANCE_BETWEEN_INSPECTION_SERVICES
  • MDI_CC_DISTANCE_FOR_CHANGE_OIL
  • MDI_CC_DISTANCE_FOR_NEXT_INSPECTION
  • MDI_CC_DISTANCE_SINCE_LAST_INSPECTION_SERVICE
  • MDI_CC_DISTANCE_TO_NEXT_INSPECTION_SERVICE
  • MDI_CC_INSPECTION_LAST_DATE
  • MDI_CC_MILEAGE_AT_LAST_INSPECTION
  • MDI_CC_MILEAGE_BETWEEN_INSPECTIONS
  • MDI_CC_MILEAGE_SINCE_LAST_INSPECTION
  • MDI_CC_TIME_BETWEEN_INSPECTIONS
  • MDI_CC_TIME_BETWEEN_INSPECTION_SERVICES
  • MDI_CC_TIME_FOR_CHANGE_OIL
  • MDI_CC_TIME_FOR_NEXT_INSPECTION
  • MDI_CC_TIME_SINCE_LAST_INSPECTION
  • MDI_CC_TIME_SINCE_LAST_INSPECTION_SERVICE
  • MDI_CC_TIME_TO_NEXT_INSPECTION_SERVICE