Difference between revisions of "JSON API"

From Cosmostreamer Wiki
Jump to navigation Jump to search
Line 1: Line 1:
Store automovement preset value
Store automovement preset value <br>
{"cmd":"updateconfig","param":"automovement","value":"store","value2":"1"}
{"cmd":"updateconfig","param":"automovement","value":"store","value2":"1"}
<br>


Go to automovement preset
Go to automovement preset<br>
{"cmd":"updateconfig","param":"automovement","value":"move","value2":"1"}
{"cmd":"updateconfig","param":"automovement","value":"move","value2":"1"}
<br>


Enable automovement routine
Enable automovement routine<br>
{"cmd":"updateconfig","param":"automovement","value":"setstate","value2":"1"}
{"cmd":"updateconfig","param":"automovement","value":"setstate","value2":"1"}
Disable automovement routine
<br>
Disable automovement routine<br>
{"cmd":"updateconfig","param":"automovement","value":"setstate","value2":"1"}
{"cmd":"updateconfig","param":"automovement","value":"setstate","value2":"1"}
<br>


Move gimbal to normal position (center)
Move gimbal to normal position (center)<br>
!{"cmd":"position","param":"normal"}
!{"cmd":"position","param":"normal"}
<br>


Move gimbal to selfie position (if available)
Move gimbal to selfie position (if available)<br>
!{"cmd":"position","param":"selfit"}
!{"cmd":"position","param":"selfit"}
<br>


Change gimbal mode (0 - 2)
Change gimbal mode (0 - 2)<br>
!{"cmd":"gimbal","param":"mode","value":"1"}
!{"cmd":"gimbal","param":"mode","value":"1"}
<br>


 
Move gimbal. value - pan speed, value2 - tilt speed, value3 - roll speed. From -1.0 to 1.0, 0 - stop <br>
Move gimbal. value - pan speed, value2 - tilt speed, value3 - roll speed. From -1.0 to 1.0, 0 - stop  
{"cmd":"gimbal","param":"move","value":"-1.0","value2":"0.0","value3":"0.0"}
{"cmd":"gimbal","param":"move","value":"-1.0","value2":"0.0","value3":"0.0"}
<br>


Set gimbal mode. value - mode. From 0 to 2
Set gimbal mode. value - mode. From 0 to 2<br>
!{"cmd":"gimbal","param":"mode","value":"0"}
!{"cmd":"gimbal","param":"mode","value":"0"}
<br>
== Wiral Lite ==
Enable/disable Tic-tac mode. value2 = 1 - enable, 0 - disable <br>
!{"cmd":"wiral","param":"mode","value":"tic-tac","value2":"1","value3":"-1"}
<br>

Revision as of 19:59, 22 April 2022

Store automovement preset value
{"cmd":"updateconfig","param":"automovement","value":"store","value2":"1"}

Go to automovement preset
{"cmd":"updateconfig","param":"automovement","value":"move","value2":"1"}

Enable automovement routine
{"cmd":"updateconfig","param":"automovement","value":"setstate","value2":"1"}
Disable automovement routine
{"cmd":"updateconfig","param":"automovement","value":"setstate","value2":"1"}

Move gimbal to normal position (center)
!{"cmd":"position","param":"normal"}

Move gimbal to selfie position (if available)
!{"cmd":"position","param":"selfit"}

Change gimbal mode (0 - 2)
!{"cmd":"gimbal","param":"mode","value":"1"}

Move gimbal. value - pan speed, value2 - tilt speed, value3 - roll speed. From -1.0 to 1.0, 0 - stop
{"cmd":"gimbal","param":"move","value":"-1.0","value2":"0.0","value3":"0.0"}

Set gimbal mode. value - mode. From 0 to 2
!{"cmd":"gimbal","param":"mode","value":"0"}


Wiral Lite

Enable/disable Tic-tac mode. value2 = 1 - enable, 0 - disable
!{"cmd":"wiral","param":"mode","value":"tic-tac","value2":"1","value3":"-1"}