User Manual
Version 7.5
×

Mileage and fuel level in the point in time

 
Example:
https://<address>/api/api.php?cmd=istatus
 
Parameters:
cmd : isstatus
imei : object identifier in the PILOT system
unixtimestamp : point in time
 
Amount of the fuel at the tank in moment of time (l)
"fuel":46.37
Adjusted point in time (if requested is for the date in the future, it is adjusted to the current time, otherwise time is transmited)
"unixtimestamp":1407930273
Motohours (seconds)
"motohours":70645
 
Answer:
{
   "code":0,
   "msg":"OK",
   "total_run":514.23,
   "total_run_by_can":0,
   "motohours":70645,
   "fuel":0,
   "unixtimestamp":1408840780
}
If the object has more than one fuel sensor, then information about the fuel level for all tanks will also be returned, for example:
"code":0,
   "msg":"OK",
   "total_run":548080.46,
   "total_run_by_can":0,
   "motorhours":0,
   "fuel_sensors":
       [{"info":"Right tank","id":167447,"fieldname":"lls2","fuel":"154.81"},
        {"info":"Left tank","id":39609,"fieldname":"t_53lls1","fuel":"373.33"}],
"fuel":528.14,"unixtimestamp":1602450000}