User Manual
Version 7.6
×

Fuel Consumption

 
Example:
https://<address>/backend/api.php?cmd=fuel
 
Parameters:
cmd : fuel
ts: start date in unixtimrstamp
te: end date in unixtimrstamp
agentid - AGENT_ID
 
Request:
https://<address>/backend/api.php?cmd=fuel&te=1458043980&ts=1458022428&agentid=2914
 
 
Answer:
{
"code": 0,
"data": {
"fill": 100, // Filling up
"fuel": 84, //Consumed
"stale": 0, // Drain off
"start": 27, // Fuel sensor value at the start
"stop": 43 // Fuel sensor value at the stop
},
"msg": "OK"
}
 
 
This feature is currently only available to partners.
Use your partner's login and password.