User Manual
Version 7.6
×

API  ECO driving

Example:
 
https://<url>/api/api.php?cmd=mileco_drive&start=&stop=&vehid=&time_diff_type=1
 
Parameters:
• cmd = mileco_drive.
• start - data start date.
• stop - data end date.
• vehid - vehicle identifier for which data should be retrieved (can be an array).
• time_diff_type - how to generate a time-based query (by default, it is calculated for each day).
• 1 - split by +7 days
• 2 - split by +1 month
 
Request:
https://<url>/api/api.php?cmd=mileco_drive&start=1709896109&stop=1711534335&vehid=2,3&time_diff_type=1
 
Response:
{{ "2": { "03/08/2024_11:08|03/15/2024_11:08": { "date": "Friday, 03/08/2024 11:08 - Friday, 03/15/2024 11:08", "vah_id": 2, "distance": 261.99664682, "eco_data": { "speed":
 
{ "msg": "Speed", "cnt": 0, "val": 1290, "fee": 12 }
} }, "03/15/2024_11:08|03/22/2024_11:08": { "date": "Friday, 03/15/2024 11:08 - Friday, 03/22/2024 11:08", "vah_id": 2, "distance": 131.74353265, "eco_data": [] }, "03/22/2024_11:08|03/27/2024_10:12": { "date": "Friday, 03/22/2024 11:08 - Wednesday, 03/27/2024 10:12", "vah_id": 2, "distance": 73.49498385, "eco_data": [] } }}