Get Flight Logs
API is a service that allows users to retrieve historical flight logs recorded by a drone during its missions. These logs typically contain detailed information about the drone's flight.
Last updated
Was this helpful?
Was this helpful?
curl --location 'https://ags.aeromegh.com/AeroMegh/AeroStack/flightLogs/${pageSize}/${pageNumber}?flightID=${flightid}&keys=${keys} ' \
--header 'Authorization: Bearer <API_key>'
//Please install 'axios' module first
//Set your API key before making the request
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://ags.aeromegh.com/AeroMegh/AeroStack/flightLogs/0/8?keys=AS_TELE_DATA&flightID=902252eb-f926-47a3-8996-becb7e6d0144',
headers: {
'Authorization': 'Bearer <API_KEY>'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
//Please install 'requests' package first
//Set your API key before making the request
import requests
url = "https://ags.aeromegh.com/AeroMegh/AeroStack/flightLogs/0/8?keys=AS_TELE_DATA&flightID=902252eb-f926-47a3-8996-becb7e6d0144"
payload = {}
headers = {
'Authorization': 'Bearer <API_KEY>'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
{
"logs": [
{
"id": "c50087e9-11b7-48dd-b3f2-f6627abd24f4",
"key": "AS_TELE_DATA",
"droneid": "P00001DESKTOP-E762V7V",
"timestamp": "2023-08-19T12:16:08.000Z",
"aerostackid": "21baf594-0400-4afa-a214-dff78990751e",
"data": "{\"alt\":\"0.0\",\"bat\":\"12.587\",\"dir\":\"178.00\",\"lat\":\"-35.3638563\",\"lon\":\"149.1655674\",\"mod\":\"4\",\"pit\":\"-0.1300536986872789\",\"rol\":\"-0.6019573781579175\",\"sat\":\"10\",\"vel\":\"0.01667754352092743\",\"yaw\":\"178.28035462124387\",\"timestamp\":\"1692447368\",\"liquidConsumed\":\"00\",\"remainingLiquidPercentage\":\"0\",\"sprayedArea\":\"0.0000\",\"sprayedDistance\":\"0.000\",\"sprayPumpRate\":\"10\",\"flowRate\":\"0\",\"liveObstacleDistance\":\"0\"}",
"flight_id": "923dbb64-39e5-4751-88ad-4ef3496f4afa",
"totalCount": {
"count": "1584"
}
},
{
"id": "6ec20f32-b516-4edd-890e-d32011a8dea5",
"key": "AS_TELE_DATA",
"droneid": "P00001DESKTOP-E762V7V",
"timestamp": "2023-08-19T12:16:08.000Z",
"aerostackid": "21baf594-0400-4afa-a214-dff78990751e",
"data": "{\"alt\":\"0.0\",\"bat\":\"12.587\",\"dir\":\"178.00\",\"lat\":\"-35.3638563\",\"lon\":\"149.1655674\",\"mod\":\"4\",\"pit\":\"-0.1300536986872789\",\"rol\":\"-0.6019573781579175\",\"sat\":\"10\",\"vel\":\"0.016485927626490593\",\"yaw\":\"178.28035462124387\",\"timestamp\":\"1692447368\",\"liquidConsumed\":\"00\",\"remainingLiquidPercentage\":\"0\",\"sprayedArea\":\"0.0000\",\"sprayedDistance\":\"0.000\",\"sprayPumpRate\":\"10\",\"flowRate\":\"0\",\"liveObstacleDistance\":\"0\"}",
"flight_id": "923dbb64-39e5-4751-88ad-4ef3496f4afa"
},
{
"id": "a3fb8377-da26-4fc4-94b2-9e78a69a08de",
"key": "AS_TELE_DATA",
"droneid": "P00001DESKTOP-E762V7V",
"timestamp": "2023-08-19T12:16:08.000Z",
"aerostackid": "21baf594-0400-4afa-a214-dff78990751e",
"data": "{\"alt\":\"0.0\",\"bat\":\"12.587\",\"dir\":\"178.00\",\"lat\":\"-35.3638563\",\"lon\":\"149.1655674\",\"mod\":\"4\",\"pit\":\"-0.1300536986872789\",\"rol\":\"-0.6019573781579175\",\"sat\":\"10\",\"vel\":\"0.016485927626490593\",\"yaw\":\"178.28035462124387\",\"timestamp\":\"1692447368\",\"liquidConsumed\":\"00\",\"remainingLiquidPercentage\":\"0\",\"sprayedArea\":\"0.0000\",\"sprayedDistance\":\"0.000\",\"sprayPumpRate\":\"10\",\"flowRate\":\"0\",\"liveObstacleDistance\":\"0\"}",
"flight_id": "923dbb64-39e5-4751-88ad-4ef3496f4afa"
}
]
}