roos-fs tasks #365
openIntegrate Geotab API Call for "KM to Oil Change" per vechicle
0%
Description
General
Enable users in ROOS to click a button and instantly see the remaining kilometers until next oil change for a selected vehicle, based on its VIN number.
We need to integrate the Geotab MyGeotab API into ROOS to fetch the current odometer value of a vehicle (using VIN → Device lookup) and calculate the kilometers remaining until the next oil change.
What data to be fetched and displayed
We need to fetch these data for the vechicled based on its VIN

Flow
- User selects a vehicle (with VIN stated inside)
- go to a seperate tab with the name "GeoTab data".
- User clicks “Check Oil Change” button.
System performs:
- Authenticate with Geotab (if session expired).
- Get Device by VIN.
- Get Odometer Diagnostic Id (or cached globally).
- Get KV and due date
Business logic:
- Retrieve KM statement (see screenshot)
- Retrieve the data for the due oil change dated
Display result to user in the vichicle overview window in a seperate tab.

API DOCUMENTATION
https://developers.geotab.com
TEST
VIN VSSZZZ5FZKR052148
Authentication
user michal.slavik@roos-fs.com
database roos_intern
password Sarka772360MH@@
Files