HTTP API Examples

Example HTTP API implementations and expected outputs can be found below. Please refer to the MicaSense API Documentation for more detailed information.

Set Auto-Capture Mode

http://192.168.10.254/config?auto_cap_mode=timer

# Options: "disabled", "overlap", "timer", "ext"

{
"agc_minimum_mean": 0.17,
"audio_enable": true,
"audio_select_bitfield": 4294967295,
"auto_cap_mode": "timer",
"enable_man_exposure": false,
"enabled_bands_jpeg": 0,
"enabled_bands_raw": 63,
"ext_trigger_mode": "rising",
"ext_trigger_out_pulse_high": false,
"gain_exposure_crossover": 0.002,
"injected_gps_delay": 0.2,
"ip_address": "192.168.1.83",
"network_mode": "main",
"operating_alt": 150,
"operating_alt_tolerance": 20,
"overlap_along_track": 75,
"overlap_cross_track": 50,
"pin_modes": {
"0": 2,
"1": 1,
"2": 0
},
"preview_band": "multi",
"pwm_trigger_threshold": 1.5,
"raw_format": "DNG",
"streaming_allowed": true,
"streaming_enable": false,
"timer_period": 3
}

Set Timer Period

http://192.168.10.254/config?timer_period=5

{
"agc_minimum_mean": 0.17,
"audio_enable": true,
"audio_select_bitfield": 4294967295,
"auto_cap_mode": "timer",
"enable_man_exposure": false,
"enabled_bands_jpeg": 0,
"enabled_bands_raw": 63,
"ext_trigger_mode": "rising",
"ext_trigger_out_pulse_high": false,
"gain_exposure_crossover": 0.002,
"injected_gps_delay": 0.2,
"ip_address": "192.168.1.83",
"network_mode": "main",
"operating_alt": 150,
"operating_alt_tolerance": 20,
"overlap_along_track": 75,
"overlap_cross_track": 50,
"pin_modes": {
"0": 2,
"1": 1,
"2": 0
},
"preview_band": "multi",
"pwm_trigger_threshold": 1.5,
"raw_format": "DNG",
"streaming_allowed": true,
"streaming_enable": false,
"timer_period": 5
}

Start/Stop Timer Capture

http://192.168.10.254/timer?enable=true

# Set to false to stop capture

{
"auto_cap_active": true,
"message": "Timer enabled"
}

Start Panel Capture

http://192.168.10.254/capture?detect_panel=true

{
"id": "cf2xAeFHvXJQD4DnWnMQ",
"status": "pending"
}

Latch Altitude Now

http://192.168.10.254/ground_altitude_monitor?latch_now=true

{
"ground_altitude_latched": 79.706,
"latch_now": "true"
}

Example Video

Manual NUC

Note: The following command will disable automatic NUCing until the camera is power cycled.

http://192.168.10.254/thermal_nuc?nuc_now=true

Access GPS

http://192.168.10.254/gps

{
"altitude": 74.44200000000001,
"fix3d": true,
"latitude": 0.7966635219541396,
"longitude": -2.138228037756725,
"p_acc": 2.940000057220459,
"utc_time": "2022-08-31T22:18:57.800445Z",
"utc_time_valid": true,
"v_acc": 2.427999973297119,
"vel_d": 0.06,
"vel_e": 0.02,
"vel_n": 0.1
}

Access DLS2 IMU

http://192.168.10.254/dls_imu

{
"accel": [
-0.038,
-0.043,
9.677
],
"gyro": [
-0.00002050564886347268,
-0.00003808351390715598,
-0.00004101226542341855
],
"mag": [
0.00003852,
0.00001266,
0.00012797
],
"pitch": 0.006939463312150713,
"roll": -0.00204804082311566,
"yaw": -0.3432463061670734
}

Prepare for Shutdown

Note: This commend will not power down the camera but will prepare it for power to be disconnected safely.

http://192.168.10.254/powerdownready?power_down=true

{
"ready_for_power_down": true
}

 

Have more questions? Submit a request