code:json
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
code:json [2016/09/28 11:50] – created jtello | code:json [2017/02/07 17:17] – jtello | ||
---|---|---|---|
Line 3: | Line 3: | ||
|change_constraints|change_script|[[# | |change_constraints|change_script|[[# | ||
- | |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| | ||
|[[# | |[[# | ||
+ | Info about them can be figured out from the relevant code: | ||
+ | |||
+ | [[https:// | ||
+ | [[https:// | ||
====== cmd ====== | ====== cmd ====== | ||
This can be used to send commands to the different devices in RTS2. | This can be used to send commands to the different devices in RTS2. | ||
- | For example to observe | + | For example to observe |
- | http:// | + | 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. | ||
+ | Where the differt device types are: | ||
+ | |1|SERVERD|9|GRB|21|IMGPROC| | ||
+ | |2|MOUNT|10|FOCUS|22|SELECTOR| | ||
+ | |3|CCD|11|MIRROR|23|XMLRPC| | ||
+ | |4|DOME|12|CUPOLA|24|INDI| | ||
+ | |5|WEATHER|13|FW|25|LOGD| | ||
+ | |6|ROTATOR|14|AUGERSH|26|SCRIPTOR| | ||
+ | |7|PHOT|15|SENSOR| | | | ||
+ | |8|PLAN|20|EXECUTOR| | | | ||
+ | |||
+ | ====== 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. | ||
+ | |||
+ | ====== runscript ====== | ||
+ | Will run script. | ||
+ | Example: runscript? | ||
+ | (in this case the script has a space which is replaced with ' | ||
+ | |||
+ | ====== 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 ====== | ====== 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:// | http:// | ||
code/json.txt · Last modified: 2017/02/07 00:00 (external edit)