code:json
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
code:json [2017/01/19 19:17] – jtello | — | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | The following commands are available with the JSON API: | ||
- | |||
- | |change_constraints|change_script|[[# | ||
- | |cnst_time|consts|create_target|dec|[[# | ||
- | |deviceinfo|[[# | ||
- | |hasimage|inc|labellist|labels|[[# | ||
- | |messages|night|obytid|plan|runscript| | ||
- | |satisfied|script|selval|[[# | ||
- | |sunalt|taltitudes|tbydistance|tbyid|tbylabel| | ||
- | |tbyname|tbystring|tlabs_add|tlabs_delete|tlabs_set| | ||
- | |[[# | ||
- | |||
- | Info about them can be figured out from the relevant code: | ||
- | |||
- | [[https:// | ||
- | [[https:// | ||
- | |||
- | ====== cmd ====== | ||
- | This can be used to send commands to the different devices in RTS2. | ||
- | For example to observe the target 8 next: | ||
- | http:// | ||
- | note the URL code %20 is used to pass on the space between the command and the parameters. | ||
- | |||
- | |||
- | ====== devbytype ====== | ||
- | This will list the devices by type with the modifier being an interger t: | ||
- | for example: | ||
- | http:// | ||
- | will output mounts attached to this rts2 instance. | ||
- | |||
- | 2: mounts, 3: cameras, 4: domes, | ||
- | |||
- | ====== devices ====== | ||
- | This will list the devices connected to rts2 | ||
- | |||
- | ====== lastimage ====== | ||
- | This theoretically tells you which was the last image to be taken. Using the modifier ' | ||
- | However if this fails (claims not a single image has been taken) | ||
- | Looking at the status of the camera device will often state the last_image as a value. | ||
- | |||
- | |||
- | ====== set ====== | ||
- | This will allow you to set values in rts2 devices. Modifiers are: | ||
- | ' | ||
- | |||
- | ====== status ====== | ||
- | This will give the values of a specific module. Known modifier is: ' | ||
- | |||
- | |||
- | ====== update_target ====== | ||
- | This can be used to change values in a target including its coordinates | ||
- | http:// | ||
code/json.txt · Last modified: 2017/02/07 00:00 (external edit)