Windscreen

getState([, propertyNames])

Declaration

hmkit.commands.Windscreen.getState()

Parameters

propertyNames

(optional) Array of names of the properties you want returned.

Returns

WindscreenResponse

Example

hmkit.telematics.sendCommand(
  hmkit.commands.Windscreen.getState(),
  accessCertificate
);

WindscreenResponse

Parameters

windscreenDamage(Object)
data.value

(String) (enum)

timestamp

(Date)

windscreenDamageConfidence(Object)
data.value

(Number) (double) Confidence of damage detection, 0% if no impact detected

timestamp

(Date)

windscreenDamageDetectionTime(Object)
data.value

(Date) (timestamp) Windscreen damage detection date

timestamp

(Date)

windscreenDamageZone(Object)
data.value

(Object) Representing the position in the zone, seen from the inside of the vehicle (1-based index)

timestamp

(Date)

windscreenNeedsReplacement(Object)
data.value

(String) (enum)

timestamp

(Date)

windscreenZoneMatrix(Object)
data.value

(Object) Representing the size of the matrix, seen from the inside of the vehicle

timestamp

(Date)

wipersIntensity(Object)
data.value

(String) (enum)

timestamp

(Date)

wipersStatus(Object)
data.value

(String) (enum)

timestamp

(Date)

Example

{
  "windscreenDamage": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": "impact_but_no_damage_detected"
    }
  },
  "windscreenDamageConfidence": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": 0.95
    }
  },
  "windscreenDamageDetectionTime": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": "2017-01-10T16:32:05.000Z"
    }
  },
  "windscreenDamageZone": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "horizontal": {
        "value": 1
      },
      "vertical": {
        "value": 2
      }
    }
  },
  "windscreenNeedsReplacement": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": "no_replacement_needed"
    }
  },
  "windscreenZoneMatrix": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "horizontal": {
        "value": 4
      },
      "vertical": {
        "value": 3
      }
    }
  },
  "wipersIntensity": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": "level_3"
    }
  },
  "wipersStatus": {
    "timestamp": "2021-06-01T15:48:04.887Z",
    "data": {
      "value": "automatic"
    }
  }
}

getAvailability([, propertyNames])

Declaration

hmkit.commands.Windscreen.getAvailability()

Parameters

propertyNames

(optional) Array of names of the properties you want returned.

Example

// Get availability for all properties
hmkit.telematics.sendCommand(
  hmkit.commands.Windscreen.getAvailability(),
  accessCertificate
);
// Get availability for specific properties
hmkit.telematics.sendCommand(
  hmkit.commands.Windscreen.getAvailability(['wipersStatus']),
  accessCertificate
);

Response

Parameters

availability(Object)
updateRate.value

(String) enum

rateLimit.value

(Number)

rateLimit.unit

(String)

appliesPer.value

(String)

Discussion

The response contains an availability object for each property, as shown in the example

Example

{
  "wipersStatus": {
    "availability": {
      "updateRate": {
        "value": "trip_high"
      },
      "rateLimit": {
        "value": 64,
        "unit": "hertz"
      },
      "appliesPer": {
        "value": "vehicle"
      }
    }
  }
}

controlWipers({ wipersIntensity, wipersStatus })

Parameters

wipersIntensity

(String) (enum)

wipersStatus

(String) (enum)

Example

hmkit.telematics.sendCommand(
  hmkit.commands.Windscreen.controlWipers({
    "wipersIntensity": "level_3",
    "wipersStatus": "automatic"
  }),
  accessCertificate
);

setWindscreenDamage({ windscreenDamage, windscreenDamageZone })

Parameters

windscreenDamage

(String) (enum)

windscreenDamageZone

(Object) Representing the position in the zone, seen from the inside of the vehicle (1-based index)

Example

hmkit.telematics.sendCommand(
  hmkit.commands.Windscreen.setWindscreenDamage({
    "windscreenDamage": "impact_but_no_damage_detected",
    "windscreenDamageZone": {
      "horizontal": 1,
      "vertical": 2
    }
  }),
  accessCertificate
);

setWindscreenReplacementNeeded({ windscreenNeedsReplacement })

Parameters

windscreenNeedsReplacement

(String) (enum)

Example

hmkit.telematics.sendCommand(
  hmkit.commands.Windscreen.setWindscreenReplacementNeeded({
    "windscreenNeedsReplacement": "no_replacement_needed"
  }),
  accessCertificate
);