To get check-engine alerts on a Nissan Rogue, subscribe the vehicle to a DIMO Vehicle Triggers webhook that fires when its trouble code count is above zero, then read the codes themselves from the Telemetry API. On a Nissan Rogue, the DIMO LTE R1 (2010 and newer) reports the trouble code list, the trouble code count and distance with the check-engine light on. The AutoPi (2014 and newer) reports distance with the check-engine light on, but neither the code list nor the count. See the Nissan Rogue vehicle page for the full signal list. For any other vehicle, see how to get check-engine light alerts.
DIMO gives developers API access to vehicle-state data: diagnostics, fault codes, battery and fuel health, odometer, and maintenance signals.
Steps
- Create a Developer License in the Developer Console and note its Client ID, Redirect URI and API Key. Get a Developer JWT, either the system-generated one or one you generate with your API key.
- Get the Rogue shared with your app through DIMO Connect. The owner consents to sharing, so you only receive data for vehicles that have been shared with you. Check which device the Rogue has: the DIMO LTE R1 reports the trouble code list and count for this car.
- Call the Vehicle Triggers API endpoint that lists webhook signal names (
GET /v1/webhooks/signals) with your Developer JWT. Confirm that the trouble code count signal appears in the list before you build on it. - Create a webhook with
serviceset tosignals,metricNameset to the VSS-prefixed trouble code count signal (vss.obdStatusDTCCount), and the conditionvalueNumber > 0. Set acoolDownPeriod, adescription, an HTTPStargetURL, astatusofenabledand averificationToken. Webhooks are in public beta. - Subscribe the Rogue to the webhook by the vehicle's DID, such as
did:erc721:137:0xbA5738a18d83D41847dfFbDC6101d37C69c9B0cF:12345, or subscribe all vehicles that have shared permissions with your Developer License. - When your target URL receives the POST request, use it as the alert. Then exchange your Developer JWT for a Vehicle JWT through the Token Exchange API, requesting privilege 1 (all-time, non-location data), and query the Telemetry API with
signalsLatestto read the trouble code list and the distance with the check-engine light on. - If the Rogue uses an AutoPi (2014 and newer), it reports distance with the check-engine light on, distance since trouble codes were cleared and warmups since trouble codes were cleared. It does not report the trouble code list or count on the Rogue, so set
metricNametovss.obdDistanceWithMILfor that device and expect the alert without the codes.
The count and the lamp signal are separate measurements. obdStatusDTCCount reports how many diagnostic trouble codes are currently active; obdDistanceWithMIL reports distance travelled with the malfunction indicator lamp (MIL) on.
Code
This creates the webhook from step 4 for a Rogue with a DIMO LTE R1. Replace the placeholders with your own values and confirm the metric name against the signals list from step 3.
curl -X POST "https://vehicle-triggers-api.dimo.zone/v1/webhooks" \
-H "Authorization: Bearer <DEV_JWT>" \
-H "Content-Type: application/json" \
-d '{
"service": "signals",
"metricName": "vss.obdStatusDTCCount",
"condition": "valueNumber > 0",
"coolDownPeriod": 3600,
"description": "Fires when a subscribed Rogue reports one or more trouble codes",
"displayName": "Rogue check-engine alert",
"targetURL": "https://example.com/webhook-receiver",
"status": "enabled",
"verificationToken": "<YOUR_VERIFICATION_TOKEN>"
}'
Then, on a DIMO LTE R1 Rogue, fetch the codes. Send Authorization: Bearer <Vehicle JWT> and replace 12345 with your vehicle's token ID.
query GetTroubleCodes {
signalsLatest(tokenId: 12345) {
obdDTCList {
value
timestamp
}
}
}
For the next step, sign up for a Developer License in the Developer Console and work through the authentication guide; the webhook endpoints are in the Vehicle Triggers API reference.
FAQ
Which Nissan Rogue device reports the trouble codes?
The DIMO LTE R1 reports the trouble code list, the trouble code count and distance with the check-engine light on for the Rogue, from model year 2010 and newer. The AutoPi reports distance with the check-engine light on, but not the trouble code list or count.
Can I read the actual trouble codes after an alert?
Yes, on a Rogue with a DIMO LTE R1. Query signalsLatest in the Telemetry API with a Vehicle JWT and request the trouble code list signal, obdDTCList.
Do I need the owner's permission?
Yes. Your app can only access a vehicle that has been shared with it, and you need a Vehicle JWT for that specific vehicle to query the Telemetry API.
How do I avoid repeated alerts for the same fault?
Set the cool-down period on the webhook. It is the minimum number of seconds between successive firings of that webhook.
Methodology: based on the DIMO documentation for Authentication, Building Your First App, the Vehicle Triggers API and the Telemetry API Vehicle Signals reference, and on the device and signal listings on the Nissan Rogue vehicle page.