User Tools

Site Tools


code:json

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
code:json [2016/09/28 12:02] – [cmd] jtellocode:json [2016/11/28 02:35] – added information on a couple more commands jtello
Line 4: Line 4:
 |change_constraints|change_script|[[#cmd]]|cnst_alt|cnst_alt_v| |change_constraints|change_script|[[#cmd]]|cnst_alt|cnst_alt_v|
 |cnst_time|consts|create_target|dec|devbytype| |cnst_time|consts|create_target|dec|devbytype|
-|deviceinfo|devices|executor|expose|get|+|deviceinfo|[[#devices]]|executor|expose|get|
 |hasimage|inc|labellist|labels|lastimage| |hasimage|inc|labellist|labels|lastimage|
 |messages|night|obytid|plan|runscript| |messages|night|obytid|plan|runscript|
-|satisfied|script|selval|set|status|+|satisfied|script|selval|[[#set]]|status|
 |sunalt|taltitudes|tbydistance|tbyid|tbylabel| |sunalt|taltitudes|tbydistance|tbyid|tbylabel|
 |tbyname|tbystring|tlabs_add|tlabs_delete|tlabs_set| |tbyname|tbystring|tlabs_add|tlabs_delete|tlabs_set|
 |[[#update_target]]|violated| |[[#update_target]]|violated|
 +
  
  
Line 18: Line 19:
     http://observatoryserver/apipath/cmd?d=EXEC&c=next%208     http://observatoryserver/apipath/cmd?d=EXEC&c=next%208
 note the URL code %20 is used to pass on the space between the command and the parameters. note the URL code %20 is used to pass on the space between the command and the parameters.
 +
 +
 +====== devices ======
 +This will list the devices connected to rts2
 +
 +====== set ======
 +This will allow you to set values in rts2 devices. Modifiers are:
 +'d': device, 'n': name, 'v': value, 'async': async
 +
 +
 ====== update_target ====== ====== update_target ======
 This can be used to change values in a target including its coordinates This can be used to change values in a target including its coordinates
     http://observatoryserver/apipath/update_target?id=15&ra=34&dec=-23     http://observatoryserver/apipath/update_target?id=15&ra=34&dec=-23
  
code/json.txt · Last modified: 2017/02/07 00:00 (external edit)