List of vehicles
Example:
https://<address>/api/api.php?cmd=list
Parameters:
cmd : list
The format of requested data:
an array of vehicles
{
code: 0
"message": "OK",
"list":[
{
"agentid":9003, // vehicle identifier in the PILOT system
"imei":"356307046873054", //IMEI
"typeid":1, // vehicle type identifier
"type":"Car", // type
"vehiclenumber":"X444MP123", // license plate, name
"folder":"Head office", // folder
"created_time":1414224633, //time stamp of adding a car to the system
"current_mileage": 881,
status:{
"unixtimestamp":"1418744535", // latest update
"latitude": "43.5562",
"lon": "39.9084",
speed:0,
"dir": 268,
"alto": 246,
"satin view": 16,
"sensors":[ // list of sensors
{
"name":"Stop",
"description":"SPEED TEST"
},
{
"name":"Fuel sensor",
"description":"Fuel sensor"
},
{
"name":"External power",
"description":"External power"
},
{
"name":"Ignition sensor",
"description":"Ignition sensor"
}
],
"sensors_status":[ // sensors status
{
"name":"Ignition sensor", // sensor name
"id":"1187852", // sensor ID
"hum_value":"off", // readable calibrated value
"dig_value":"0", // digital calibrated value
"raw_value":"0", // raw uncalibrated value
"change_ts":"1627467122", // change time unixtimestamp
"group":"" // sensor group (optional)
},
{
"name":"External power",
"identifier": "1187851",
"hum_value":"26.27 V",
"dig_value":"26,27",
"raw_value": "26272",
"change_ts":"1627467122",
Group":""
},
{
"name":"Fuel sensor",
"identifier": "1187850",
"hum_value": "1l",
"copy_value":"1",
"raw_value": "1",
"change_ts":"1626336197",
Group":""
}
]
}
}
]
}