Список транспортных средств

 
 
Пример:
https://<address>/api/api.php?cmd=list
 
Параметры:
cmd : list
 
Формат запрошенных данных :
 
Массив транспортных средств
{
"code": 0,
"msg": "OK",
"list":[
{
"agentid":9003,
"imei":"356307046873054",
"typeid":1,
"type":"Car",
"vehiclenumber":"Х444МР123",
"folder":"Geo-Center OOO",
"created_time":1414224633,
"current_mileage":881,
"status":{
"unixtimestamp":"1418744535",
"lat":"43.5562",
"lon":"39.9084",
"speed":0,
"dir":268,
"alt":246,
"satsinview":16,
"sensors":[
{
"name":"Parking",
"description":"TEST SPEED"
},
{
"name":"Fuel sensor",
"description":"Fuel sensor"
},
{
"name":"External power supply",
"description":"External power supply"
},
{
"name":"Ignition sensor",
"description":"Ignition sensor"
}
],
"sensors_status":[
{
"name":"Ignition sensor", // sensor name
"id":"1187852", // sensor id
"hum_value":"off", // readable value after calibration
"dig_value":"0", // digital value after calibration
"raw_value":"0", // raw value before calibration
"change_ts":"1627467122", // time of the last value change unixtimestamp
"group":"" // sensor group
},
{
"name":"External power supply",
"id":"1187851",
"hum_value":"26.27 V",
"dig_value":"26.27",
"raw_value":"26272",
"change_ts":"1627467122",
"group":""
},
{
"name":"Fuel sensor",
"id":"1187850",
"hum_value":"1 l",
"dig_value":"1",
"raw_value":"1",
"change_ts":"1626336197",
"group":""
}
]
}
}
]
}