API Reference
One may control CamAdapter and get info from it using HTTP requests. It is implemented by sending POST or GET request to the specific URL. Response is a JSON message with status information and requested data.
Command
Type | Path | Port | Request Data | Response Data |
---|---|---|---|---|
POST | /api/v1/<parameter> /<value> |
8123 | None | JSON |
Sample Command Request
POST http://localhost:8123/api/v1/mode/photo
Sample Command Response
Status code: 200
{ "success": true }
Info
Type | Path | Port | Response Data |
---|---|---|---|
GET | /api/v1/<parameter> |
8123 | JSON |
Sample Info Request
GET http://localhost:8123/api/v1/app
Sample Info Response
Status code: 200
{ "build_date": "24.01.2017", "safe_sound": 89, "success": true, "uptime": "2 d, 03:35:08", "version": "v0.1.0 build 41" "video_connections": 10, "video_amount": 1234, "video_rate": 123, "canbus_tx": 500, "canbus_rx": 600, "zenmuse": "x3", }
Available parameters are listed below (in alphabetical order).
Contents
- aperture
- app
- attitude
- camera
- color
- color_system
- color_temperature
- date_time
- ev
- exposure_mode
- ffc_mode
- gain_mode
- gimbal
- gimbal_mode
- gimbal_velocity
- image_format
- iso
- isotherm
- isotherm_lower
- isotherm_middle
- isotherm_units
- isotherm_upper
- magnification
- measure_temperature
- mode
- roi
- scene
- scene_ace
- scene_brightness
- scene_contrast
- scene_dde
- scene_sso
- shooting
- shutter
- video_format
- video_size
- white_balance
- zenmuse
- zoom