User Tools

Site Tools


code:json
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Next revision
code:json [2016/09/28 11:50] – created jtello
Line 1: Line 1:
 +
 +The following commands are available with the JSON API:
 +
 +|change_constraints|change_script|[[#cmd]]|cnst_alt|cnst_alt_v|
 +|cnst_time|consts|create_target|dec|devbytype|
 +|deviceinfo|devices|executor|expose|get|
 +|hasimage|inc|labellist|labels|lastimage|
 +|messages|night|obytid|plan|runscript|
 +|satisfied|script|selval|set|status|
 +|sunalt|taltitudes|tbydistance|tbyid|tbylabel|
 +|tbyname|tbystring|tlabs_add|tlabs_delete|tlabs_set|
 +|[[#update_target]]|violated|
 +
 +
 +====== cmd ======
 +This can be used to send commands to the different devices in RTS2.
 +For example to observe a target next:
 +    http://observatoryserver/apipath/cmd?d=EXEC&c=next 8
 +====== update_target ======
 +This can be used to change values in a target including its coordinates
 +    http://observatoryserver/apipath/update_target?id=15&ra=34&dec=-23
  
code/json.txt · Last modified: 2017/02/07 00:00 (external edit)