User Manual
Version 7.6
×

Get vehicle info for 24 hour

 
Example:
https://<address>/api/api.php?cmd=vehinfo_24_hours
 
Parameters:
cmd: vehinfo_24_hours
agent_id: AgentID of vehicle/vehicles OR imei: Device ID.
ts: timestamp
Method: GET
 
Request :
https://<address>/api/api.php?cmd=vehinfo_24_hours&imei=10518,165182&ts=1617710825
 
Answer:
{
   "10518":{
      "full_mileage":745851.27,
      "fuel_start":382.52,
      "fuel_stop":382.52,
      "fuel_fill":409.6,
      "fuel_drain":153.15,
      "fuel_consumption(l)":256.45,
      "fuel_consumption(l\/100km)":35,
      "fuel_consumption_norm(l)":73.439,
      "fuel_consumption_norm(l\/100km)":"10",
      "motohours":0
   },
   "165182":{
      "full_mileage":100946.61,
      "fuel_start":null,
      "fuel_stop":0,
      "fuel_fill":0,
      "fuel_drain":0,
      "fuel_consumption(l)":0,
      "fuel_consumption(l/100km)":0,
      "fuel_consumption_norm(l)":55.7825,
      "fuel_consumption_norm(l/100km)":"25",
      "motohours":0
   }
}