User Manual
Version 7.6
×

Get discrete sensor data

 
Options:
cmd : get_discrete_sensor_data
start:  sampling start time in UniTimesTamp format
imei: car imei
agent_id : agent ID
stop: end time of sampling in UniTimesTamp format
tag_id:  sensor tag id
 
Example request:
https://<url>/api/api.php?cmd=get_discrete_sensor_data&imei=350424062310402&stop=1677761845&start=1677682645&tag_id=1158
 
Answer:
{
"sensor_data": {
"966960": {
"1677682772": {
"sensor_id": 966960,
"unixtimestamp": 1677682772,
"calibrated_value": "95.09",
"speed": "0"
},
"1677682950": {
"sensor_id": 966960,
"unixtimestamp": 1677682950,
"calibrated_value": "94.9",
"speed": "12"
}
}
}
 
 
Data can be requested for no more than a day (24 hours).
Also important! Only discrete data, fuel, temperature, weight, etc.