Vehicle status
Example:
https://<address>/api/api.php?cmd= status
Parameters:
cmd : status
imei : list of IMEI of object in system or one IMEI
agents: list of agentid or one agentid
veh_numbers : list of vehicle numbers or one vehicle number
One of imei or agents or veh_numbers parameters is mandatory.
In case of request with agents parameter, field data in response will be array with results on each requested object
Request:
https://<address>/api/api.php?cmd=status&imei=121617i
Answer:
{
"code":0,
"msg":"OK",
"data":[
{
"agentid":44841, // agent id
"imei":"865473034076573", // imei
"typeid":27, // internal type id
"type":"Teltonika FM2200", // device type
"vehiclenumber":"NURKA", // vehiclenumber
"folder":"REAL", // containing folder (branch)
"created_time":1518167398, // created time unixtimestamp
"uniqid":"865473034076573", // uniqid (same as imei)
"current_mileage":65345, // current mileage at moment
"driver_name":null, // driver name (optional)
"driver_phone":null, // driver phone(optional)
"model":"VAZ (Lada) Kalina", // vehicle model
"info":"test", // vehicle info
"status":{ // status section
"active":1, // statue of activity
"speed":0, // current speed
"direction":27, // current direction
"lat":"47.119755", //current latitude
"lon":"39.667492", //current longitude
"alt":0, //current altitude
"satsinview":16, // visible satellites
"unixtimestamp":"1621432378", // last update time unixtimestamp
"moving":0, // moving time in seconds (if moved)
"parking":9267 // parking time in seconds (if parked)
},
"sensors_status":[ // sensors status section
{
"name":"Ignition sensor", // sensor name
"id":"150549", //sensor id
"hum_value":"off", // human readable calibrated value
"dig_value":"0", // digital calibrated value
"raw_value":"12494", // raw not calibrated value
"change_ts":"1621423461", // last change time unixtimestamp
"group":"GROUP!" // sensor group (optional)
},
{
"name":"Fuel sensor",
"id":"368013",
"hum_value":"1249.4 -",
"dig_value":"1249.4",
"raw_value":"12494",
"change_ts":"1621432378",
"group":"myGroup"
},
{
"name":"External power",
"id":"150550",
"hum_value":"12.49 volts",
"dig_value":"12.49",
"raw_value":"12494",
"change_ts":"1621432378",
"group":"GROUP!"
},
{
"name":"Selector",
"id":"319780",
"hum_value":"norm",
"dig_value":"0",
"raw_value":"12494",
"change_ts":"1621423281",
"group":"GROUP!"
},
{
"name":"Weight sensor",
"id":"1115279",
"hum_value":"12494 -",
"dig_value":"12494",
"raw_value":"12494",
"change_ts":"1621432378",
"group":""
}
]
}
],
"request_time":0.0642
}
https://gps.sharptracking.com/api/api.php?cmd=status&imei=357073296325265 (expample rebrend)
{
"code": 0,
"msg": "OK",
"data": [
{
"agentid": 51594,
"imei": "357073296325265",
"configuration": "Teltonika FMB120",
"typeid": 2,
"type": "Truck",
"vehiclenumber": " 2336",
"folder": "555",
"created_time": 1644923519,
"uniqid": "357073296325265",
"current_mileage": 288388,
"initial_mileage": 0,
"driver_name": null,
"driver_phone": null,
"model": "",
"info": "",
"status": {
"active": 1,
"speed": 76,
"direction": 282,
"lat": "26.1792800",
"lon": "44.2942916",
"alt": 665,
"satsinview": 19,
"unixtimestamp": "1726562829",
"moving": 10040,
"parking": 0,
"firing": 1
},
"sensors_status": [
{
"name": "Ignition sensor",
"id": "228109",
"hum_value": "On",
"dig_value": "1",
"raw_value": "1",
"change_ts": "1698972212",
"group": ""
},
{
"name": "External power supply",
"id": "228111",
"hum_value": "27999 v",
"dig_value": "27999",
"raw_value": "",
"change_ts": "1726562829",
"group": ""
},
{
"name": "weight",
"id": "228110",
"hum_value": "16716 kg",
"dig_value": "16716",
"raw_value": "3008",
"change_ts": "1726521582",
"group": ""
}
]
}
],
"request_time": 0.0315
}