Comment on page

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.

Query Parameters

Key
Description
Flight_ID
take id from get flights API response
keys
AS_FLIGHT-LOG/AS-TELE-DATA/AS_KEEP_ALIVE
limit
20 records no of each page-wrapper
pagination
1 page number

API Key

Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
Key

Method

GET : get flight log

HTTP Request

URL Parameters

Key
Description
pageSize :
20 records on each page
pageNumber :
1 pageNumber

HTTP Response

Response codes explanation:
Code
Details
200
message: "ok" { response shown on right side }
400
request parameters missing
500
internal server error

Code Snippet

Take a look at how you might call this method using our official libraries, or via curl:
curl
JS
Python
curl GET " https://ags.aeromegh.com/AeroMegh/AeroStack/flightLogs/${pageSize}/${pageNumber}?flightID=${flightid}&keys=${keys}&limit=${limit}&pagination=${pagination} "
-H "Authorization: Bearer <API_key>"
-H "Content-Type: application/json"
-X GET
// require the myapi module and set it up with your API key
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer" <API_key>);
myHeaders.append("Cookie", "connect.sid=s%3AiUif6YWkEAACxZWF4clJNfd5xLkslRsg.dWqhvE3CVLHoEJ9wzpp7HlcKEnPfpKGub8nWCF%2BpIsU");
var requestOptions = {
method:'GET',
headers: myHeaders,
redirect :'follow'
};
fetch("https://ags.aeromegh.com/AeroMegh/AeroStack/flightLogs/0/8?keys=AS_TELE_DATA&flightID=902252eb-f926-47a3-8996-becb7e6d0144&limit=0&pagination=0", requestOptions)
// 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&limit=0&pagination=0"
payload = ""
headers = {
'Authorization' : 'Bearer' <API_key>,
'Cookie' : 'connect.sid=s%3AiUif6YWkEAACxZWF4clJNfd5xLkslRsg.dWqhvE3CVLHoEJ9wzpp7HlcKEnPfpKGub8nWCF%2BpIsU'
}
response = requests.request("GET", url, headers=headers, data=payload)

API Response

{
"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"
}
]
}

Response Parameter Details

  • id : Unique identifier for the log
  • key : Key used to identify if the log entry contains telemetry data or flight data.
  • droneid : Unique identifier for the drone associated with this log entrytimestamp :
  • aerostackid : Identifier associated with an Aerostack system or component.
  • data : The actual drone data or information captured by the log entry.
  • flight_id : Identifier for a specific flight associated with this log entry.