Add Flight Log

"Effortlessly record and manage drone flight data with Aeromegh's addFlightLog API endpoint."

The addFlightLog API endpoint allows users to add flight log entries for drone flights. This endpoint facilitates the recording of essential telemetry data and other relevant information associated with each flight, providing a comprehensive record of drone operations.

Authentication with API Keys

This API uses API keys for authentication. To access the API, you'll need to include a valid API key in the Authorization header of your request using the Bearer token scheme. Here's the format:

Authorization: Bearer <YOUR_API_KEY>
  • Replace <YOUR_API_KEY> with your actual API key obtained from Aeromegh.

  • Requests without a valid API key will result in a 401 Unauthorized error.

Method

POST

Post Data Parameters

Example of the teleData object:

{
    "alt": 1.37,
    "bat": "43.631",
    "dir": "18.00",
    "flowRate": "0.00",
    "lat": 28.9852907,
    "liquidConsumed": "00",
    "liveObstacleDistance": "2.5",
    "lon": 78.0017839,
    "mod": "16",
    "pit": -1.6977644338993196,
    "rol": 0.7457296585355124,
    "sat": 28,
    "sprayPumpRate": "41",
    "sprayedArea": "0.0000",
    "sprayedDistance": "1283.448",
    "vel": 0.05128028988838196,
    "yaw": 18.24909237728412
}

HTTP Request

https://ags.aeromegh.com/Aeromegh/addFlightLog

HTTP Response

Response Codes Explanation:

Code Snippet

Take a look at how you might call this method using our official libraries, or via curl:

curl --location 'https://ags.aeromegh.com/Aeromegh/addFlightLog' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>' \
--data '{
    "droneID": "P00001004F002B3131510137383337",
    "teleData": {"alt":1.37,"bat":"43.631","dir":"18.00","flowRate":"0.00","lat":28.9852907,"liquidConsumed":"00","liveObstacleDistance":"2.5","lon":78.0017839,"mod":"16","pit":-1.6977644338993196,"rol":0.7457296585355124,"sat":28,"sprayPumpRate":"41","sprayedArea":"0.0000","sprayedDistance":"1283.448","vel":0.05128028988838196,"yaw":18.24909237728412},
    "flightID": "ebddac29-c44d-481e-90ff-48a344080fa8",
    "key": "AS_TELE_DATA",
    "aerostackID":"999e8416-d5af-4828-8c44-a83f1e556d4e",
    "timestamp":"1715083563"
}

'

Note: Replace <API_KEY> with the actual API_KEY provided by Aeromegh.

API Response

After successfully processing the request to add a flight log, the API returns a message confirming the action with 'Flight log added'. This indicates that the flight log has been added to the Aeromegh system. The added flight log contains comprehensive details about a recent flight, encompassing information such as the date, time, location, and relevant flight data.

{
    "message": "Flight log added"
}

API Response Parameter Details

The API response contains the following parameters:

Last updated